William Robertson
Member³
If I have a report that produces multi-line HTML output, is there a way to view it directly in PL/SQL Developer rather than manually copying it to a file and opening it in the a browser?
I thought I'd write a handy interactive version of the AWR report that Oracle supplies as a SQL*Plus script (awrrpt.sql), which could prompt for inputs with drop-down lists etc, to produce something like this (simplified version):
Some of the other Oracle reports produce CLOBs containing HTML, which is great because I can view them directly in the Large Object Viewer. However dbms_workload_repository.awr_report_html produces a couple of thousand rows of varchar2(1500). If I run my query as a report, it wraps the output in its own HTML, which breaks it. If I run it in a Test window where I could procedurally populate a CLOB, I can't use interactive prompting.
This isn't a big deal, just wondering if I'm missing something.
I thought I'd write a handy interactive version of the AWR report that Oracle supplies as a SQL*Plus script (awrrpt.sql), which could prompt for inputs with drop-down lists etc, to produce something like this (simplified version):
Code:
select output
from table
( dbms_workload_repository.awr_report_html
( ( select dbid from v$database )
, ( select instance_number from v$instance )
, 309 -- prompts for snap IDs based on user input
, 310
)
);
Some of the other Oracle reports produce CLOBs containing HTML, which is great because I can view them directly in the Large Object Viewer. However dbms_workload_repository.awr_report_html produces a couple of thousand rows of varchar2(1500). If I run my query as a report, it wraps the output in its own HTML, which breaks it. If I run it in a Test window where I could procedurally populate a CLOB, I can't use interactive prompting.
This isn't a big deal, just wondering if I'm missing something.