[Free] 2018(Jan) EnsurePass Passguide Oracle 1z0-146 Dumps with VCE and PDF 81-90

Ensurepass.com : Ensure you pass the IT Exams
2018 Jan Oracle Official New Released 1z0-146
100% Free Download! 100% Pass Guaranteed!

Oracle 11g: Advanced PL/SQL

Question No: 81 – (Topic 1)

Which two are major approaches that can be used to reduce the SQL injection by limiting user input? (Choose two.)

  1. Restrict users accessing specified web page.

  2. Use NUMBER data type if only positive integers are needed.

  3. Use dynamic SQL and construct it through concatenation of input values.

  4. In PL/SQL API, expose only those routines that are intended for customer use.

Answer: A,D

Question No: 82 – (Topic 1)

Which three actions can be performed by using the DBMS_ASSERT package to prevent SQL injection? (Choose three.)

  1. Detect a wrong user.

  2. Check input string length.

  3. Verify qualified SQL names.

  4. Validate TNS connect strings.

  5. Verify an existing schema name.

  6. Enclose string literals within double quotation marks.

Answer: C,E,F

Question No: 83 – (Topic 1)

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

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

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

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

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

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

Question No: 84 – (Topic 1)

View the Exhibit and examine the settings for the PLSQL_CODE_TYPE parameter.

After sometime, the user recompiles the procedure DISPLAY_SAL_INFO by issuing the following command:

SQLgt; ALTER PROCEDURE display_sal_info COMPILE; Which statement would be true in this scenario?

Ensurepass 2018 PDF and VCE

  1. The procedure would be invalidated.

  2. The procedure would remain as NATIVE code type.

  3. The procedure would be changed to INTERPRETED code type.

  4. The command would produce an error and the procedure must be compiled using the PLSQL_CODE_TYPE attribute with value INTERPRETED.

Answer: C

Question No: 85 – (Topic 1)

Examine the structure of the TEST_DETAILS table:

Name Null? Type


DESCRIPTION data was entered earlier and saved for TEST_ID 12.

You execute this PL/SQL block to add data to the end of the existing data in the DESCRIPTION column for TEST_ID 12:


clob_loc CLOB; buf CHAR(12);


SELECT description INTO clob_loc FROM test_details WHERE test_id = 12 ;

buf := #39;0123456789#39;; DBMS_LOB.WRITEAPPEND(clob_loc,DBMS_LOB.GETLENGTH(buf), buf); COMMIT;



It generates an error on execution.

What correction should you do to achieve the required result?

  1. WRITEAPPEND must be replaced with APPEND.

  2. The BUF variable data type must be changed to CLOB.

  3. FOR UPDATE must be added to the SELECT statement.

  4. The GETLENGTH routine must be replaced with the LENGTH built-in function in WRITEAPPEND.

Answer: C

Question No: 86 – (Topic 1)

Examine the following parameter values for a session:


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

  1. The compiler automatically inlines subprograms even if you specify that they not be inlined.

  2. The compiler optimizes PL/SQL programs by elimination of unnecessary computations and exceptions.

  3. PL/SQL statements in a PL/SQL program unit are compiled into machine-readable code, and stored in the SYSTEM tablespace.

  4. PL/SQL statements in a PL/SQL program unit are compiled into an intermediate form, machine-readable code, which is stored in the database dictionary.

Answer: B,C

Question No: 87 – (Topic 1)

Which two statements are true about the query results stored in the query result cache? (Choose two.)

  1. If any of the tables used to build a query is modified by an ongoing transaction in the current session, the query result is not cached.

  2. A query result based on a read-consistent snapshot of data that is older than the latest committed version of the data is not cached.

  3. Adding the RESULT_CACHE hint to inline views enables optimizations between the outer query and the inline view, and the query result is cached.

  4. A query result for a query that has a bind variable is stored in the cache and is reused if the query is equivalent even when the bind variable has a different value.

Answer: A,B

Question No: 88 – (Topic 1)

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

  1. It loads the dynamic library.

  2. It is started by the server process.

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

  4. A single extproc process serves all user sessions.

Answer: A,C

Question No: 89 – (Topic 1)

The PLSQL_OPTIMIZE_LEVEL parameter is set to 2 for the session. Examine the section of code given:


… …

PRAGMA INLINE(p2, #39;YES#39;);

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

Which statement is true about the INLINE pragma procedure calls?

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

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

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

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

Answer: B

Question No: 90 – (Topic 1)

Examine the structure of the TEXT_TAB table.

Name Null? Type

——– —- —– TEXT_ID NUMBER



You issue the following INSERT commands:

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

INSERT INTO text_tab VALUES (2, #39;This is line 1#39;,#39;This is line 2#39;); Then you execute the following block of the PL/SQL code:


vc1 VARCHAR2(1000):= #39;This is the preface#39;; lb1 CLOB;


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?

  1. It executes successfully.

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

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

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

Answer: A

100% Ensurepass Free Download!
Download Free Demo:1z0-146 Demo PDF
100% Ensurepass Free Guaranteed!
1z0-146 Dumps

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.