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

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

Oracle 11g: Advanced PL/SQL

Question No: 31 – (Topic 0)

Examine the following error:

SQLgt; DECLARE

v_runid NUMBER; BEGIN

v_runid := DBMS_HPROF.ANALYZE (LOCATION =gt; #39;PROFILE_DATA#39;,

FILENAME =gt; #39;pd_cc_pkg.txt#39;); DBMS_OUTPUT.PUT_LINE(#39;Run ID: #39; || v_runid);

END;

DECLARE

*

ERROR at line 1:

ORA-00942: table or view does not exist

ORA-06512: at quot;SYS.DBMS_HPROFquot;, line 299

ORA-06512: at line 4

What would you do to execute the above block successfully?

  1. Start the PL/SQL profiler before executing the block.

  2. Run the tracetab.sql script located at ORACLE_HOME\RDBMS\ADMIN.

  3. Run the dbmshptab.sql script located at ORACLE_HOME\RDBMS\ADMIN.

  4. Grant READ and WRITE privileges to the current user on the PROFILE_DATA directory object.

Answer: C

Question No: 32 – (Topic 0)

Which two statements are true about SecureFile LOB options? (Choose two.)

  1. The DECRYPT option can be used to remove the encryption only if the LOB column is empty.

  2. The KEEP_DUPLICATES option removes the deduplication effect only on new data in a LOB column.

  3. The KEEP_DUPLICATES option removes the deduplication effect on existing and new data in a LOB column.

  4. The DECRYPT option can be used to remove the encryption from LOB columns that are empty or contain data.

Answer: C,D

Question No: 33 – (Topic 0)

View the Exhibit and examine the procedure to create a trigger name based on the table name supplied to the procedure.

Which three statements are appropriate for protecting the code in the procedure from SQL injection? (Choose three.)

Ensurepass 2018 PDF and VCE

  1. Explicitly validate the identifier length limit.

  2. Add AUTHID DEFINER to the definition of the procedure.

  3. Use PRAGMA RESTRICT_REFERENCES in the procedure.

  4. Filter out control characters in user-supplied identifier names.

  5. Use the object ID of the table from the data dictionary to build the trigger name.

Answer: A,D,E

Question No: 34 – (Topic 0)

You created the SALES_ORDERS_CTX context to use the OE.SALES_ORDERS_PKG package.

View Exhibit1 and examine the package that is used with the context. View Exhibit2 to examine the policy defined and the logon trigger.

A user receives the following error when he or she executes a query:

ERROR at line 2:

Ensurepass 2018 PDF and VCE

ORA-28112: failed to execute policy function What could be the reason for the error?

Ensurepass 2018 PDF and VCE

  1. The user has insufficient privileges on the DBMS_SESSION package.

  2. The subprograms inside the package have not been created with the invoker#39;s right.

  3. The THE_PREDICATE function has an insufficient number of parameters in the package.

  4. The policy is created by using SALES_ORDERS_PKG.THE_PREDICATE without a parameter.

Answer: C

Question No: 35 – (Topic 0)

Examine the following command to create the table EMPLOYEES_TEMP and the PL/SQL block.

CREATE TABLE employees_temp (empid NUMBER(6) NOT NULL,

deptid NUMBER(6) CONSTRAINT c_emp_deptid CHECK (deptid BETWEEN 100 AND 200),

salary Number(8),

deptname VARCHAR2(30) DEFAULT #39;Sales#39;)

/ DECLARE

SUBTYPE v_emprec_subtype IS employees_temp%ROWTYPE; v_emprec v_emprec_subtype;

BEGIN

v_emprec.empid := NULL; v_emprec.salary := 10000.002; v_emprec.deptid := 50;

DBMS_OUTPUT.PUT_LINE(#39;v_emprec.deptname: #39; || v_emprec.deptname); END;

/

Which statements are true about the above PL/SQL block? (Choose two.)

  1. V_EMPREC.DEPTNAME would display a null value because the default value is not inherited.

  2. Assigning null to V_EMPREC.EMPID would generate an error because the null constraint is inherited.

  3. Assigning the value 1000.002 to V_EMPREC.SALARY would generate an error because of the decimal.

  4. Assigning the value 50 to V_EMPREC.DEPTID would work because the check constraint is not inherited.

Answer: A,D

Question No: 36 – (Topic 0)

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

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

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

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

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

Answer: A,B

Question No: 37 – (Topic 0)

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

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

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

  3. A REF CURSOR return type can be declared using %TYPE, or %ROWTYPE, or a user- defined record.

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

Answer: B,C

Question No: 38 – (Topic 0)

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;

You notice that results for the functions are not used effectively. What do you recommend for better utilization of the result cache? (Choose all that apply.)

  1. Set the RESULT_CACHE_MODE parameter to FORCE.

  2. Increase the value for the RESULT_CACHE_MAX_SIZE parameter.

  3. Add a format mask parameter, such as RETURN TO_CHAR(date_hired, fmt) to GET_HIRE_DATE.

  4. Change the return type of GET_HIRE_DATE to DATE and have each session invoke the TO_CHAR function.

Answer: C,D

Question No: 39 – (Topic 0)

You designed a CardValidation.java Java source file. You also have the corresponding CardValidation.class file. As part of invoking a Java class method, you executed this command at the command prompt:

loadjava -user oe/oe CardValidation.java Which statement is true about the command?

  1. It loads the Java code into the database.

  2. It publishes Java methods in CardValidation.java.

  3. It loads the metadata related to the Java class file into the database.

  4. It loads the Java class file into the Java pool in the database instance.

Answer: A

Question No: 40 – (Topic 0)

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

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
PDF VCE 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.