Skip to content

Commit 9a1501a

Browse files
authored
Update active-report.sql
1 parent 00e34f6 commit 9a1501a

File tree

1 file changed

+4
-1
lines changed
  • data-platform/core-converged-db/sql-performance/sql-monitoring/scripts-sql-monitoring

1 file changed

+4
-1
lines changed

data-platform/core-converged-db/sql-performance/sql-monitoring/scripts-sql-monitoring/active-report.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ REM Script: active-report.sql
22
REM Generate active (HTML) report with DBMS_SQL_MONITOR.REPORT_SQL_MONITOR
33

44
-- report on the last statement monitored by Oracle
5-
-- use type ACTIVE
5+
-- please use the proposed SQL*Plus formats here to get the correct report output
66

77
set trimspool on
88
set trim on
99
set pagesize 0
1010
set linesize 32767
1111
set long 1000000
1212
set longchunksize 1000000
13+
1314
spool sqlmon_active.html
15+
1416
select dbms_sql_monitor.report_sql_monitor(report_level=>'ALL',type=>'ACTIVE')
1517
from dual;
18+
1619
spool off

0 commit comments

Comments
 (0)