1Z0-146 Premium Bundle

1Z0-146 Premium Bundle

Oracle 11g: Advanced PL/SQL Certification Exam

4.5 
(21660 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 5, 2024Last update

Oracle 1Z0-146 Free Practice Questions

Q1. You executed this command to gather information about the memory allocation for storing query results: 

SQL> execute dbms_result_cache.memory_report 

View the Exhibit and examine the output for the execution of the 

DBMS_RESULT_CACHE.MEMORY_REPORT procedure. 

Which two statements are true about the output in the Exhibit? (Choose two.) 

A. In total, four blocks are used by the result cache. 

B. Currently 52 KB is allocated to the result cache. 

C. Currently 32 KB is allocated to the result cache. 

D. The result cache can be increased by 65628 bytes. 

Answer: C,D 

Q2. The following command is executed to start tracing in a user session: SQL> EXECUTE DBMS_TRACE.SET_PLSQL_TRACE(DBMS_TRACE.TRACE_ENABLED_EXCEPTIONS); Which statement is true about the effect of the command? 

A. It allows tracing of exceptions raised by all subprograms executed in the session. 

B. It allows tracing of user-defined exceptions raised by all subprograms executed in the session. 

C. It allows tracing of system-defined exceptions raised by all subprograms executed in the session. 

D. It allows tracing of exceptions raised by subprograms compiled with the DEBUG option and executed in the session. 

Answer:

Q3. View the Exhibit and examine the PL/SQL code. 

The code takes a long time to execute. What would you recommend to improve performance? 

A. using NOT NULL constraint when declaring the variables 

B. using the BULK COLLECT option for query instead of cursor 

C. using WHILE.. END LOOP instead of FOR .. END LOOP 

D. using the SIMPLE_INTEGER data type instead of the NUMBER data type 

Answer:

Q4. Which two statements are true about the migration of BasicFile to the SecureFile format by using the DBMS_REDEFINITION package? (Choose two.) 

A. It can be performed only on tables with a single LOB column. 

B. It automatically creates an interim table during the migration process. 

C. It allows the table that is migrated to be accessed throughout the migration process. 

D. It requires free space that is at least equal to the space used by the table that is migrated. 

E. It requires all constraints defined on the original table to be re-created manually after the migration. 

Answer: C,D 

Q5. You have an OE_ACCESS_ORDERS_POLICY security policy implemented on the ORDERS table in the OE schema. The user sessions are able to access only the desired rows. The database administrator (DBA) uses the following command: 

SQL> EXECUTE 

DBMS_RLS.ENABLE_POLICY('OE','ORDERS','OE_ORDERS_ACCESS_POLICY',FALSE); 

Which statement is true about user sessions that are connected currently? 

A. The security policy remains in effect till the end of the current session. 

B. The subsequent queries on the ORDERS table produce an ORA-01031: insufficient privileges error. 

C. The subsequent queries on the ORDERS table within the current session are not controlled by the security policy. 

D. The subsequent queries on the ORDERS table produce an ORA-28112: failed to execute policy function error. 

Answer:

Q6. View the Exhibit and examine the output. 

Which statement is an inference from the output? 

A. The class file is pinned into the Java pool. 

B. The class file has been loaded into the shared library. 

C. Java class methods in the Java class file have been published. 

D. The loadjava command has been executed to load the Java source and class files. 

Answer:

Q7. Which two types of query results cannot be stored in the query result cache? (Choose two.) 

A. subquery results 

B. results of a query having the SYSDATE function 

C. results of a query having the GROUP BY clause 

D. results of a query having the DATE data type in the WHERE clause 

Answer: A,B 

Q8. The PLSQL_OPTIMIZE_LEVEL parameter is set to 2 for the session. 

Examine the section of code given: 

FUNCTION p2 (p boolean) return PLS_INTEGER IS ... 

FUNCTION p2 (x PLS_INTEGER) return PLS_INTEGER IS 

PRAGMA INLINE(p2, 'YES'); 

x := p2(true) + p2(3); 

Which statement is true about the INLINE pragma procedure calls? 

A. Only the call to the P2 function with BOOLEAN as the argument is inlined. 

B. INLINE pragma affects both the functions named P2 and is called inline. 

C. Only the call to the P2 function with PLS_INTEGER as the argument is inlined. 

D. None of the functions are inlined because inlining is not supported for overloaded functions. 

Answer:

Q9. You issue this command to create a table called LOB_STORE: 

CREATE TABLE lob_store 

(lob_id NUMBER(3), 

photo BLOB DEFAULT EMPTY_BLOB(), 

cv CLOB DEFAULT NULL, 

ext_file BFILE DEFAULT NULL) 

What is the outcome? 

A. The table is created successfully. 

B. It generates an error because DEFAULT cannot be set to EMPTY_BLOB() during table creation. 

C. It generates an error because DEFAULT cannot be set to null for a CLOB column during table creation. 

D. It generates an error because DEFAULT cannot be set to null for a BFILE column during table creation. 

Answer:

Q10. Which two statements are true about the extproc process? (Choose two.) 

A. It loads the dynamic library. 

B. It is started by the server process. 

C. It converts the C output back to PL/SQL. 

D. A single extproc process serves all user sessions. 

Answer: A,C 

Q11. Which statements are true about internal LOBs? (Choose all that apply.) 

A. They cannot use redo logging. 

B. They can be used as attributes of a user-defined data type. 

C. They cannot be passed as parameters to PL/SQL subprograms. 

D. They can be stored in a tablespace that is different from the tablespace that stores the table containing the LOB column. 

Answer: B,D 

Q12. Which two statements are true about the migration of BasicFile to the SecureFile format by using the DBMS_REDEFINITION package? (Choose two.) 

A. It can be performed only on tables with a single LOB column. 

B. It automatically creates an interim table during the migration process. 

C. It allows the table that is migrated to be accessed throughout the migration process. 

D. It requires free space that is at least equal to the space used by the table that is migrated. 

E. It requires all constraints defined on the original table to be re-created manually after the migration. 

Answer: C,D 

Q13. Examine the following settings for a session: 

PLSQL_CODE_TYPE = NATIVE 

View the Exhibit and examine the PL/SQL code. 

You compile the program with the following attributes: 

SQL> ALTER PROCEDURE proc1 COMPILE PLSQL_OPTIMIZE_LEVEL = 1; 

Which statement is true about the execution of the PROC1 procedure in this scenario? 

A. The FUNC1 function would be called inline because PRAGMA INLINE forces a specific call to be inlined. 

B. The FUNC1 function would be inlined because the value set for the PLSQL_CODE_TYPE parameter is set to NATIVE. 

C. The FUNC1 function would be called inline irrespective of the value set for the PLSQL_OPTIMIZE_LEVEL parameter. 

D. The FUNC1 function would not be called inline because the value for the PLSQL_OPTIMIZE_LEVEL parameter is set to a lower value. 

Answer:

Q14. Which two statements are true about associative arrays and varrays? (Choose two.) 

A. Only varrays must start with the subscript 1. 

B. Only varrays can be used as column types in database tables. 

C. Both associative arrays and varrays must start with the subscript 1. 

D. Both associative arrays and varrays can be used as column types in database tables. 

Answer: A,B 

Q15. View the Exhibit and examine the structure of the EMPLOYEES table. 

Examine the following PL/SQL block: 

DECLARE 

TYPE EmpList 

IS VARRAY(2) OF employees.employee_id%TYPE NOT NULL; 

v_employees EmpList := EmpList(); BEGIN 

DBMS_OUTPUT.PUT_LINE(v_employees.COUNT); 

v_employees.EXTEND; 

v_employees(1) := 30; 

END; 

Which statement is true about the outcome on executing the above PL/SQL block? 

A. It executes successfully and displays the value 2. 

B. It executes successfully and displays the value 0. 

C. It generates an error because EXTEND cannot be used for varrays. 

D. It generates an error because the declaration of the varray is not valid. 

Answer:

Q16. Identify two factors that you consider for compiling a PL/SQL program unit for interpreted mode. (Choose two.) 

A. a PL/SQL program which needs to be recompiled frequently 

B. a PL/SQL program that spends most of the time executing SQL 

C. a PL/SQL program, which performs computation-intensive procedural operations and is recompiled rarely 

D. a PL/SQL program, which is called frequently with the same parameter values by multiple sessions and is recompiled rarely 

Answer: A,B 

START 1Z0-146 EXAM