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