Skip to content

Commit d581f43

Browse files
authored
Create active-report.sql
1 parent 40b840b commit d581f43

File tree

1 file changed

+16
-0
lines changed
  • data-platform/core-converged-db/sql-performance/sql-monitoring/scripts-sql-monitoring

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
REM Script: active-report.sql
2+
REM Generate active (HTML) report with DBMS_SQL_MONITOR.REPORT_SQL_MONITOR
3+
4+
-- report on the last statement monitored by Oracle
5+
-- use type ACTIVE
6+
7+
set trimspool on
8+
set trim on
9+
set pagesize 0
10+
set linesize 32767
11+
set long 1000000
12+
set longchunksize 1000000
13+
spool sqlmon_active.html
14+
select dbms_sql_monitor.report_sql_monitor(report_level=>'ALL',type=>'ACTIVE')
15+
from dual;
16+
spool off

0 commit comments

Comments
 (0)