Skip to content

Commit 301e759

Browse files
authored
Create report-with-sqlid.sql
1 parent 9a1501a commit 301e759

File tree

1 file changed

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

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
REM Script: report-with-sqlid.sql
2+
REM Report generation with DBMS_SQL_MONITOR.REPORT_SQL_MONTOR
3+
4+
-- optional: find SQL id with find-sqlid.sql
5+
-- enter SQL id and type (e.g. TEXT, ACTIVE, HTML)
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+
15+
SELECT dbms_sql_monitor.report_sql_monitor(sql_id=> '&SQLid', type => '&type', report_level => 'ALL')
16+
FROM dual;
17+
18+
spool off

0 commit comments

Comments
 (0)