nerdexam
Oracle

1Z0-060 · Question #12

A new report process containing a complex query is written, with high impact on the database. You want to collect basic statistics about query, such as the level of parallelism, total database time…

The correct answer is C. Create a database operation, execute the query, and use the DBMS_SQL_MONITOR.REPORT_SQL_. The REPORT_SQL_MONITOR function is used to return a SQL monitoring report for a specific Not A: Not interested in session statistics, only in statistics for the particular SQL query. Not B: We are interested in statistics, not tracing. Not D:SET_SESSION_LONGOPS Procedure This…

New Features for Performance

Question

A new report process containing a complex query is written, with high impact on the database. You want to collect basic statistics about query, such as the level of parallelism, total database time, and the number of I/O requests. For the database instance STATISTICS_LEVEL, the initialization parameter is set to TYPICAL and the CONTROL_MANAGEMENT_PACK_ACCESS parameter is set to DIAGNOSTIC+TUNING. What should you do to accomplish this task?

Options

  • AExecute the query and view Active Session History (ASH) for information about the query.
  • BEnable SQL trace for the query.
  • CCreate a database operation, execute the query, and use the DBMS_SQL_MONITOR.REPORT_SQL_
  • DUse the DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS procedure to monitor query execution

How the community answered

(28 responses)
  • A
    7% (2)
  • B
    11% (3)
  • C
    79% (22)
  • D
    4% (1)

Explanation

The REPORT_SQL_MONITOR function is used to return a SQL monitoring report for a specific Not A: Not interested in session statistics, only in statistics for the particular SQL query. Not B: We are interested in statistics, not tracing. Not D:SET_SESSION_LONGOPS Procedure This procedure sets a row in the V$SESSION_LONGOPS view. This is a view that is used to indicate the on-going progress of a long running operation. Some Oracle functions, such as parallel execution and Server Managed Recovery, use rows in this view to indicate the status of, for example, a database backup. Applications may use the SET_SESSION_LONGOPS procedure to advertise information on the progress of application specific long running tasks so that the progress can be monitored by way of the V$SESSION_LONGOPS view.

Topics

#database operations#DBMS_SQL_MONITOR#SQL monitoring#parallelism statistics

Community Discussion

No community discussion yet for this question.

Full 1Z0-060 Practice