Oracle SQL Monitor

Source: Internet
Author: User

Dynamic performance View V$sql_monitor, which displays SQL statement information for Oracle monitoring. The information in V$sql_monitor and V$sql_plan_monitor will be refreshed in real time, at 1 times per second. Once the SQL statement is executed, the monitoring information will not be deleted immediately, and Oracle will ensure that the records are kept for one minute (controlled by the parameter _sqlmon_recycle_time, which is 60s by default), and eventually the records will be deleted and reused. Enabled only when control_management_pack_access------diagnostic+tuning and statistics_level-----all or typical.

The V$sql_monitor view contains the currently running SQL statement, as well as the most recently run SQL statement.

The following conditions are required when using SQL statements that are monitored in the v$sql_monitor view:
1) automatic monitoring of any parallel statements
2) If an SQL statement consumes more than 5 seconds of CPU or I/O time, it will automatically monitor
3) Monitor any SQL statements that enable monitoring at the statement level (monitor)

Tip: Combined with v$sql_monitor view and V$sql_plan_monitor view, you can further query the SQL execution plan, among other information. You can get more information about SQL by federating some other views, such as V$active_session_history, V$session, V$session_longops, V$sql, V$sql_plan, and so on.

Select Dbms_sqltune.report_sql_monitor (sql_id=> ',type=> ' ACTIVE ') from dual;

Here will come out a CLOB field information, save generate an HTML file in IE open Browse can.

Oracle SQL Monitor

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.