1Z0-149 practice question 8 of 15
Which two are true about the PLSQL_CODE_TYPE parameter? (Choose two.)
Full set: 65 questionsThe PLSQLCODETYPE parameter controls the compilation method for PL/SQL units. When set to NATIVE (option C), the PL/SQL code is compiled into platform-specific machine code, which is stored in the database and generally executes faster than interpreted code. The REUSE SETTINGS clause (option D) of the ALTER ... COMPILE statement allows a PL/SQL unit to be recompiled using the same compiler settings that were stored with it during its last compilation, thereby ignoring the current session's settings for parameters like PLSQLCODETYPE.
A: Changing the parameter only affects new compilations. Existing units retain their code type until they are explicitly recompiled. B: The default value for the PLSQLCODETYPE parameter is INTERPRETED, not NATIVE. E: NATIVE compilation produces machine code. INTERPRETED compilation produces a platform-independent bytecode format.
- Oracle Database Reference, 19c, Chapter 1, "Initialization Parameters", description of PLSQLCODETYPE. It states the default is INTERPRETED and the values are INTERPRETED or NATIVE.
- Oracle Database PL/SQL Language Reference, 19c, Chapter 1, "Introduction to PL/SQL", Section "PL/SQL Native Compilation". It states: "With native compilation, the PL/SQL source code is translated into native code for the platform... and stored in the database."
- Oracle Database SQL Language Reference, 19c, ALTER PROCEDURE documentation, "COMPILE Clause". It describes REUSE SETTINGS as preserving the existing settings for the subprogram, ignoring session settings.
Keep practicing
Take the free 1Z0-149 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 1Z0-149 practice questions
- Question 3Which two PL/SQL elements can be deprecated using the DEPRECATE pragma? (Choose two.)
- Question 5Which two statements are true about using the OR REPLACE clause when creating named subpr…
- Question 6Which three are true about functions and procedures? (Choose three.)
- Question 9Which three SQL statements, embedded in PL/SQL, typically benefit from using variables de…
- Question 11SERVEROUTPUT is enabled. Which code block will display the values from 1 to 10 in descend…
- Question 15SERVEROUTPUT is enabled. Which is the correct method to use a PACKAGED CONSTANT in SELECT…
