Sample Header Ad - 728x90

AWR dbms_workload_repository ash_global_report_text extract text from output

0 votes
1 answer
208 views
I want to build a scheduled job in Enterprise Manager to trigger every hour the following query: SELECT output FROM TABLE(dbms_workload_repository.ash_global_report_text(584958394, Null, SYSDATE-1/24, SYSDATE, l_wait_class=>'Scheduler')); I want to capture Events and the percentage only if I get one with Scheduler resmgr:cpu quantum And then I want to parse this output only out. I get now the big varchar(320) column output when I hit the query, but I want also to build a PL/SQL package where I can add variables inside and also to parse out only the important percentage of the resmgr: cpu quantum event. Other events are not important to me. Any help would be appreciated. Kind regards.
Asked by ultimo_frogman (31 rep)
Aug 5, 2020, 01:22 PM
Last activity: Jun 14, 2025, 08:00 PM