2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

14
vdh/pq_hist_stats.sql Normal file
View File

@@ -0,0 +1,14 @@
-- Monitor historical statistics for Parallel Statement Queuing.
-- The following query lists the number of parallel statements run, the average run time,
-- the number of parallel statements queued, and the average queue time by consumer group.
select
name,
sum(pqs_completed) pqs_completed,
sum(decode(pqs_completed, 0, 0, pq_active_time / pqs_completed)) avg_pq_run_time,
sum(pqs_queued) pqs_queued,
sum(decode(pqs_queued, 0, 0, pq_queued_time / pqs_queued)) avg_pq_queue_time
from
gv$rsrc_consumer_group
group by name
;