What would you do to execute the above block successfully?

Examine the following error:
SQL> DECLARE
v_runid NUMBER;
BEGIN
v_runid := DBMS_HPROF.ANALYZE (LOCATION => ‘PROFILE_DATA’,
FILENAME => ‘pd_cc_pkg.txt’);
DBMS_OUTPUT.PUT_LINE(‘Run ID: ‘ || v_runid);
END;
DECLARE
*
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_HPROF", line 299
ORA-06512: at line 4
What would you do to execute the above block successfully?

Examine the following error:
SQL> DECLARE
v_runid NUMBER;
BEGIN
v_runid := DBMS_HPROF.ANALYZE (LOCATION => ‘PROFILE_DATA’,
FILENAME => ‘pd_cc_pkg.txt’);
DBMS_OUTPUT.PUT_LINE(‘Run ID: ‘ || v_runid);
END;
DECLARE
*
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_HPROF", line 299
ORA-06512: at line 4
What would you do to execute the above block successfully?

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

B.
Run the tracetab.sql script located at ORACLE_HOMERDBMSADMIN.

C.
Run the dbmshptab.sql script located at ORACLE_HOMERDBMSADMIN.

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



Leave a Reply 1

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