1Z0-146 | how many questions of 1Z0-146 exam dumps?


Q71. The result cache is enabled for the database instance. 

Examine the following code for a PL/SQL function: 

CREATE OR REPLACE FUNCTION get_hire_date (emp_id NUMBER) RETURN VARCHAR 

RESULT_CACHE RELIES_ON (HR.EMPLOYEES) 

IS 

date_hired DATE; 

BEGIN 

SELECT hire_date INTO date_hired 

FROM HR.EMPLOYEES 

WHERE EMPLOYEE_ID = emp_id; 

RETURN TO_CHAR(date_hired); 

END; 

Which statement is true in this scenario? 

A. If sessions have different NLS_DATE_FORMAT settings, cached results have different formats. 

B. The function results are not cached because the query used in the function returns the DATE data type. 

C. If sessions have different NLS_DATE_FORMAT settings, cached results have same formats because the function's return type is VARCHAR. 

D. If a function is executed with same argument value but different NLS_DATE_FORMAT for the session, the cached result is overwritten with the new function result. 

Answer:

Q72. In which two situations is the body of a result-cached function executed? (Choose two.) 

A. if the memory allocated for the result cache is increased 

B. if a session on this database instance invokes the function with the same parameter values 

C. if the first time a session on this database instance invokes the function with a parameter value 

D. if a session executes a data manipulation language (DML) statement on a table or view that was specified in the RELIES_ON clause of a result-cached function 

Answer: C,D 

Q73. 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 

Q74. You executed the following command: 

SQL> ALTER SESSION SET PLSCOPE_SETTINGS = 'IDENTIFIERS:ALL' 

You create a new package called PACK1. View Exhibit1 to examine the PL/SQL code for the 

PACK1 package specification and body. 

You issue the following query to see all unique identifiers with a name, such as %1: 

SQL> SELECT NAME, SIGNATURE, TYPE 

FROM USER_IDENTIFIERS 

WHERE NAME LIKE '%1' AND USAGE='DECLARATION' 

ORDER BY OBJECT_TYPE, USAGE_ID; 

View Exhibit2 to examine the output of the query. Which two statements are true about the output of the query? (Choose two.) 

A. The SIGNATURE column has a unique value for an identifier except for identifiers with the same name. 

B. The TYPE column has the value of packages, function or procedures, object types, PL/SQL types, triggers, or exceptions. 

C. The query shows the output for only those identifiers for PL/SQL objects, which are created by the user and are compiled after the ALTER SESSION command. 

D. The ALTER SESSION command automatically collects identifier data and the query shows the output for all the identifiers for PL/SQL objects, which are created by the user. 

Answer: B,C 

Q75. DATA_FILES is a directory object that contains the DETAILS.TXT text file. 

You have the required permissions to access the directory object. 

You create a table using the following command: 

CREATE TABLE clob_tab(col2 CLOB); 

View the Exhibit and examine the PL/SQL block that you execute for loading the external text file into the table that currently has no rows. The PL/SQL block results in an error. 

What correction must be done to ensure the PL/SQL block executes successfully? 

A. The L_OUT variable must be initialized to an empty locator. 

B. The L_OUT variable has to be declared as a temporary LOB. C. The A_CLOB variable has to be declared as a temporary LOB. 

D. The clause RETURNING col2 INTO a_clob should be added to the INSERT statement to correctly initialize the locator. 

Answer:

Q76. View Exhibit1 and examine the structure of the EMPLOYEES table. 

itexamworld.com 

View Exhibit2 and examine the code in the PL/SQL block. 

The PL/SQL block fails to execute. 

What could be the reason? 

A. Nested tables cannot be returned by a function. 

B. The NEWNAMES nested table has not been initialized. 

C. The assignment operator cannot be used to transfer all the element values from GROUP1 to GROUP2. 

D. The third element of OLDNAMES cannot be assigned to the third element of GROUP1 because they are of inconsistent data types. 

E. LAST_NAME values cannot be assigned to the V_LAST_NAMES nested table because local collection types are not allowed in SQL statements. 

Answer:

Q77. Which two statements are true about REF CURSOR types? (Choose two.) 

A. REF CURSOR types cannot be defined inside a package. 

B. SYS_REFCURSOR can be used to declare cursor variables in stored procedures and functions. 

C. A REF CURSOR return type can be declared using %TYPE, or %ROWTYPE, or a userdefined record. 

D. Only a weak REF CURSOR type can be used as a formal parameter of a stored procedure or function. 

Answer: B,C 

Q78. Examine the commands: 

CREATE TYPE typ_course_tab IS VARRAY(5) OF VARCHAR2(20) 

/ CREATE TYPE typ_course_nst AS TABLE OF typ_course_tab / CREATE TABLE faculty (faculty_id NUMBER(5), faculty_name VARCHAR2(30), courses typ_course_nst) NESTED TABLE courses STORE AS course_stor_tab / INSERT INTO faculty VALUES (101, 'Jones', NULL); UPDATE (SELECT courses FROM faculty WHERE faculty_id=101) SET courses = typ_course_nst(11,'Oracle'); Which statement is true about the execution of these commands? 

A. All the commands execute successfully. 

B. Only the first two commands execute successfully. C. Only the first four commands execute suc cessfully. D. Only the first three commands execute successfully. 

Answer:

Q79. Which two statements are true about the working of fine-grained access? (Choose two.) 

A. Security policies can be associated only with tables, but not with views. 

B. Different policies can be used for SELECT, INSERT, UPDATE, and DELETE statements. 

C. User statements are dynamically modified by the Oracle server through a security policy function. 

D. Fine-grained access control policies always remain in effect until they are dropped from a table or view. 

Answer: B,C 

Q80. You enabled PL/SQL tracing in a user session using the following command: 

SQL> EXECUTE DBMS_TRACE.SET_PLSQL_TRACE(DBMS_TRACE.TRACE_ALL_CALLS); 

View Exhibit1 to examine the output. After some time, the query produces a different result as shown in Exhibit2. 

What is the cause for the change? 

A. The FOO procedure has been executed more than once. 

B. The PLSQL_DEBUG parameter is set to FALSE for the user session. 

C. The FOO procedure has been compiled with the DEBUG option, and executed. 

D. Schema level statistics have been gathered by the database administrator (DBA). 

Answer: