0% found this document useful (0 votes)
313 views

Using PL SQL Initialization Parameters

This quiz tested knowledge of PL/SQL initialization parameters. The document contained 6 multiple choice questions about parameters such as PLSQL_OPTIMIZE_LEVEL and PLSQL_CODE_TYPE. Key points covered included that PLSQL_OPTIMIZE_LEVEL=2 removes unused code, ALTER SESSION sets PLSQL_CODE_TYPE to NATIVE for fastest speed, and PLSQL_CODE_TYPE determines code type for both PL/SQL and SQL.

Uploaded by

Catalina Achim
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
313 views

Using PL SQL Initialization Parameters

This quiz tested knowledge of PL/SQL initialization parameters. The document contained 6 multiple choice questions about parameters such as PLSQL_OPTIMIZE_LEVEL and PLSQL_CODE_TYPE. Key points covered included that PLSQL_OPTIMIZE_LEVEL=2 removes unused code, ALTER SESSION sets PLSQL_CODE_TYPE to NATIVE for fastest speed, and PLSQL_CODE_TYPE determines code type for both PL/SQL and SQL.

Uploaded by

Catalina Achim
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Test: Quiz: Using PL/SQL Initialization Parameters 1.

When setting PLSQL_OPTIMIZE_LEVEL = 2, the compiled code will remove co de and exceptions that can never be executed. True or False? Mark for Review (1) Points True (*) False

Correct 2. To set the PLSQL_CODE_TYPE to its fastest execution speed, which comman d do you use? Mark for Review (1) Points ALTER SYSTEM SET PLSQL_CODE_TYPE=NATIVE; ALTER SYSTEM SET PLSQL_CODE_TYPE=2; ALTER SESSION SET PLSQL_CODE_TYPE = NATIVE; (*) ALTER SESSION SET PLSQL_CODE_TYPE = INTERPRETED; ALTER SESSION SET PLSQL_CODE_TYPE = 2;

Correct 3. Which are NOT examples of benefits of using PLSQL_OPTIMIZE_LEVEL. (Choo se two) Mark for Review (1) Points (Choose all correct answers) Control what PL/SQL does with useless code. Combining compiled code from one subprogram into another subprogram. Separating compiled code so that separate units may be repeated as neede d. (*) Backward compatible with previous versions of the Oracle database.

Modify source code to optimize frequently-used elements at the top. (*)

Correct 4. What are the valid values for PLSQL_OPTIMIZE_LEVEL in the data dictiona ry? Mark for Review (1) Points 0,1,2,3 (*) 0,1,2,3,4 1,2,3 1,2,3,4

Correct 5. Which data dictionary view allows you to see the setting for PLSQL_OPTI MIZE_LEVEL? Mark for Review (1) Points USER_PLSQL_OBJECTS USER_PLSQL_OPTIMIZE USER_PLSQL_OBJECT_SETTINGS (*) USER_OBJECT_SETTINGS USER_PLSQL_CODE_TYPE

Correct 6. PLSQL_CODE_TYPE determines the type of code for PL/SQL code and for SQL statements, which is what speeds up the execution speed. True or False? Mark for Review (1) Points True False (*)

Correct

You might also like