Skip to content

Commit 40b840b

Browse files
authored
Create html-report.sql
1 parent 88c7eab commit 40b840b

File tree

1 file changed

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

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
REM Script: html-report.sql
2+
REM report generation in HTML with DBMS_SQL_MONITOR.REPORT_SQL_MONITOR
3+
4+
-- find the last monitored database operation
5+
-- please use the proposed SQL*plus formats here to get the correct HTML report
6+
set trimspool on
7+
set trim on
8+
set pagesize 0
9+
set linesize 32767
10+
set long 1000000
11+
set longchunksize 1000000
12+
spool sqlmon_active.html
13+
14+
SELECT dbms_sql_monitor.report_sql_monitor(type => 'HTML', report_level => 'ALL')
15+
FROM dual;
16+
17+
spool off

0 commit comments

Comments
 (0)