nerdexam
Oracle

1Z0-146 · Question #46

In a user session, tracing is enabled as follows: SQL> EXECUTE. DBMS_TRACE.SET_PLSQL_TRACE(DBMS_TRACE.TRACE_ENABLED_LINES); PL/SQL procedure successfully completed. You executed the procedure as…

The correct answer is B. The PROC10 procedure is not compiled with the DEBUG option. https://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_trace.htm#i1002144 Two levels of line tracing are available: Level 1: Trace all lines. This corresponds to the constant TRACE_ALL_LINES. Level 2: Trace lines in enabled program units only. This corresponds to the constant…

Debugging and Profiling PL/SQL Code

Question

In a user session, tracing is enabled as follows:

SQL> EXECUTE. DBMS_TRACE.SET_PLSQL_TRACE(DBMS_TRACE.TRACE_ENABLED_LINES); PL/SQL procedure successfully completed. You executed the procedure as follows:

SQL> EXECUTE PROC10 PL/SQL procedure successfully completed. When you examine the PLSQL_TRACE_EVENTS table, you find that no trace information was written into it. View the Exhibit. What is the reason for this?

Exhibit

1Z0-146 question #46 exhibit

Options

  • AThe PROC10 procedure is created with the invoker's right.
  • BThe PROC10 procedure is not compiled with the DEBUG option.
  • CTracing is not enabled with the TRACE_ENABLED_CALLS option.
  • DThe TRACE_ENABLED parameter is set to FALSE for the session.

How the community answered

(51 responses)
  • A
    14% (7)
  • B
    75% (38)
  • C
    8% (4)
  • D
    4% (2)

Explanation

https://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_trace.htm#i1002144 Two levels of line tracing are available: Level 1: Trace all lines. This corresponds to the constant TRACE_ALL_LINES. Level 2: Trace lines in enabled program units only. This corresponds to the constant TRACE_ENABLED_LINES." "Controlling Data Volume Profiling large applications may produce a large volume of data. You can control the volume of data collected by enabling specific program units for trace data collection. You can enable a program unit by compiling it debug."

Topics

#DBMS_TRACE#debug compilation#PLSQL_TRACE_EVENTS#trace prerequisites

Community Discussion

No community discussion yet for this question.

Full 1Z0-146 Practice