P2Pprogrammer 2 programmer

Home > Interview Question and Answer > Oracle > Oracle Package Procedure and Function

Interview Questions and Answers for Oracle Package Procedure and Function


Oracle Package Procedure and Function Interview Questions and Answers includes, Package Procedure Restricted package procedure, Unrestricted package procedure, SYNCHRONIZE procedure, ERASE package procedure, difference between NAME_IN and COPY, How the command POST does differ from COMMIT, DEBUG mode, global variables, SYSTEM VARIABLES



Oracle Package Procedure and Function Interview Questions and Answers


1. What is a Package Procedure?

A Package procedure is built in PL/SQL procedure.

2. What are the different types of Package Procedure?

  1. Restricted package procedure.
  2. Unrestricted package procedure.

3. What is the difference between restricted and unrestricted package procedure?

  1. Restricted package procedure that affects the basic basic functions of SQL * Forms. It cannot use in all triggers except key triggers.
  2. Unrestricted package procedure that does not interfere with the basic functions of SQL * Forms it can be used in any triggers.

4. Classify the restricted and unrestricted procedure from the following.

  1. Call - unrestricted
  2. User Exit - Unrestricted
  3. Call_query - Unrestricted
  4. Up - Restricted
  5. Execute Query - Restricted
  6. Message - Restricted
  7. Exit_form - Restricted
  8. Post - Restricted
  9. Break - Unrestricted.

5. Can we use a restricted package procedure in ON-VALIDATE-FIELD Trigger?

No.

6. What SYNCHRONIZE procedure does?

It synchoronizes the terminal screen with the internal state of the form.

7. What are the unrestricted procedures used to change the popup screen position during run time?

  1. Anchor-view
  2. Resize -View
  3. Move-View

8. What Enter package procedure does?

Enter Validate-data in the current validation unit.

9. What ERASE package procedure does?

Erase removes an indicated global variable.

10. What is the difference between NAME_IN and COPY?

  1. Copy is package procedure and writes values into a field.
  2. Name in is a package function and returns the contents of the variable to which you apply.

11. Identify package function from the following?

  1. Error-Code -- package function
  2. Break
  3. Call
  4. Error-text -- package function
  5. Form-failure -- package function
  6. Form-fatal -- package function
  7. Execute-query
  8. Anchor_View
  9. Message_code -- package function

12. How the command POST does differ from COMMIT?

Post writes data in the form to the database but does not perform database commit.
Commit permenently writes data in the form to the database.

13. What the PAUSE package procedure does?

Pause suspends processing until the operator presses a function key

14. What package procedure is used for calling another form?

Call (E.g. Call (formname)

15. What package procedure used for invoke sql *plus from sql *forms?

Host (E.g. Host (sqlplus))

16. Error_Code is a package proecdure?

False

17. EXIT_FORM is a restricted package procedure?

True

18. When the form is running in DEBUG mode, If you want to examine the values of global variables and other form variables, What package procedure command you would use in your trigger text?

Break

19. List the system variables related in Block and Field?

  1. System.block_status
  2. System.current_block
  3. System.current_field
  4. System.current_value
  5. System.cursor_block
  6. System.cursor_field
  7. System.field_status

20. What is the difference between system.current_field and system.cursor_field?

  1. System.current_field gives name of the field.
  2. System.cursor_field gives name of the field with block name.

21. The value recorded in system.last_record variable is of type

  1. Number
  2. Boolean
  3. Character
  4. Boolean

22. What is a User Exits?

A user exit is a subroutine which are written in programming languages using pro*C pro *COBOL, etc., that link into the SQL * forms executable.

23. How can a button be used in a report to give a drill down facility?

By setting the action asscoiated with button to Execute pl/sql option and using the SRW.Run_report function.

24. What are the two ways by which data can be generated for a parameter's list of values?

  1. Using static values.
  2. Writing select statement.

25. What are the two panes that Appear in the design time pl/sql interpreter?

Source pane and Interpreter pane

26. What are three panes that appear in the run time pl/sql interpreter?

Source pane, interpreter pane and Navigator pane.

  Go Back to Oracle Interview Qusetion and Answers

More Oracle Database, DBA, Forms and Reports Interview Question and Answers

  1. Oracle Database Administration Interview Questions and Answers
  2. Oracle Cross Products and Matrix Reports Interview Questions and Answers
  3. Oracle Managing Distributed Databases Interview Questions and Answers
  4. Oracle Forms Interview Questions and Answers
  5. Oracle Database Security Interview Questions and Answers
  6. Oracle Database Operation Backup and Recovery Interview Questions and Answers
  7. Oracle Database Security and Administration Interview Questions and Answers
  8. Oracle Data Access Interview Questions and Answers
  9. Oracle Report Triggers Interview Questions and Answers
  10. Oracle Managing Backup and Recovery Interview Questions and Answers
  11. Forms 3.0, 4.0 Basic Interview Questions and Answers
  12. Oracle Package Procedure and Function Interview Questions and Answers
  13. Oracle System Architecture Interview Questions and Answers
  14. Oracle SQL Plus Statements Interview Questions and Answers
  15. Oracle Logical and Physical Architecture of Database Interview Questions and Answers
  16. Oracle Basics of Pl SQL Interview Questions and Answers
  17. Oracle Reports Interview Questions and Answers
  18. Oracle Concepts and Architecture Interview Questions and Answers
  19. Oracle Forms D2K 4.5 and 6i Interview Questions and Answers

Home > Interview Question and Answer > Oracle > Oracle Package Procedure and Function