getcertified4sure.com

1Z0-146 Exam

Renewal Oracle 1Z0-146 - An Overview 1 to 10




Want to know Actualtests 1Z0-146 Exam practice test features? Want to lear more about Oracle Oracle 11g: Advanced PL/SQL certification experience? Study Best Quality Oracle 1Z0-146 answers to Up to the immediate present 1Z0-146 questions at Actualtests. Gat a success with an absolute guarantee to pass Oracle 1Z0-146 (Oracle 11g: Advanced PL/SQL) test on your first attempt.

Q1. You executed the following command to alter the session parameter: 

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

Which two statements are true in this scenario? (Choose two.) 

A. If the SYSAUX tablespace is unavailable, and you compile a program unit, PL/Scope does not collect data for the compiled object. 

B. All the identifiers declared in compiled program units before altering the parameter settings appear in the *_IDENTIFIER static data dictionary views. 

C. All the identifiers declared in compiled program units before altering the parameter settings do not appear in the *_IDENTIFIER static data dictionary views. 

D. If the SYSAUX tablespace is unavailable, and you compile a program unit, PL/Scope collects data for the compiled object and stores it in the SYSTEM tablespace. 

Answer: A,C 


Q2. Which guidelines should be considered when designing and using cursors in a PL/SQL block? ? (Choose all that apply.) 

A. When fetching from a cursor, fetch into a record. 

B. Use parameters with cursors so that the result set for the cursor is not tied to a specific variable in a program. 

C. Use the %NOTFOUND attribute in combination with the SELECT INTO statement to check for non existent values. 

D. Whenever possible, explicitly declare the cursor and use the OPEN, FETCH and CLOSE statements to manipulate the cursor instead of using cursor FOR loop. 

E. When using data manipulation language statements, (DML) reference a SQL cursor attribute immediately after the DML statement executes in the same block. 

Answer: A,B,E 


Q3. Examine the section of code taken from a PL/SQL program: 

PROCEDURE p1 (x PLS_INTEGER) IS 

PRAGMA INLINE (p1, 'NO'); 

x:= p1(1) + p1(2) + 17; -- Call 1 

x:= p1(3) + p1(4) + 17; -- Call 2 

Call 1 and Call 2 are the comments for distinguishing the code. The PLSQL_OPTIMIZE_LEVEL parameter is set to 3. Which two statements are true in this scenario? (Choose two.) 

A. The calls to the P1 procedure are not inlined in the section commented as Call 1. B. The calls to the P1 procedure might be inlined in the section commented as Call 2. 

C. The calls to the P1 procedure are inlined in both the sections commented as Call 1 and Call 2. 

D. The calls to the P1 procedure are never inlined in both the sections commented as Call 1 and Call 2. 

Answer: A,B 


Q4. Which two statements are true about cursor variables? (Choose two.) 

A. Cursor variables can be parameterized like cursors. 

B. The query associated with a cursor variable cannot reference host variables and PL/SQL variables. 

C. The FETCH statement executes the query associated with a cursor variable and identifies the result set. 

D. Cursor attributes (%FOUND, %NOTFOUND, %ISOPEN, and %ROWCOUNT) can be applied to a cursor variable. 

E. The OPEN FOR statement executes the query associated with a cursor variable and identifies the result set. 

Answer: D,E 


Q5. Identify two strategies against SQL injection. (Choose two.) 

A. Using parameterized queries with bind arguments. 

B. Use subprograms that are run with the definer's right. 

C. Use RESTRICT_REFERENCE clauses in functions that use dynamic SQLs. 

D. Validate user inputs to functions that use dynamic SQLs built with concatenated values. 

Answer: A,D 


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


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


Q8. Examine the structure of the TEXT_TAB table. Name Null? Type 

TEXT_ID NUMBER 

DOC1 CLOB 

DOC2 CLOB 

You issue the following INSERT commands: 

INSERT INTO text_tab VALUES (1, 'This is line 1',null); 

INSERT INTO text_tab VALUES (2, 'This is line 1','This is line 2'); 

Then you execute the following block of the PL/SQL code: 

DECLARE 

vc1 VARCHAR2(1000):= 'This is the preface' 

lb1 CLOB; 

lb2 CLOB; 

BEGIN 

SELECT doc1 INTO lb1 FROM text_tab WHERE text_id=1; 

SELECT doc1 || doc2 INTO lb1 FROM text_tab WHERE text_id=2; 

lb2 := vc1|| lb1; 

UPDATE text_tab SET doc2 = lb2 WHERE text_id = 1; 

END; 

What is the outcome? 

A. It executes successfully. 

B. It gives an error because VARCHAR2 should be explicitly converted to CLOB. 

C. It gives an error because CLOB variables should be initialized to EMPTY_CLOB(). 

D. It gives an error because the concatenation operator cannot be used with the CLOB data type. 

Answer:


Q9. View the Exhibit and examine the code in the PL/SQL block. 

The PL/SQL block generates an error on execution. What is the reason? 

A. The DELETE(n) method cannot be used with varrays. 

B. The DELETE(n) method cannot be used with nested tables. 

C. The NEXT method cannot be used with an associative array with VARCHAR2 key values. 

D. The NEXT method cannot be used with a nested table from which an element has been deleted. 

Answer:


Q10. Which two statements are true about the OPEN and FILEOPEN routines in the DBMS_LOB package? (Choose two.) 

A. OPEN can be used to open only internal LOBs in the indicated mode. 

B. FILEOPEN can be used to open only external LOBs in the indicated mode. 

C. OPEN can be used to open internal and external LOBs in the indicated mode. 

D. FILEOPEN can be used to open internal and external LOBs in the indicated mode. 

Answer: B,C