2026-03-12 20:23:15
This commit is contained in:
22
timhall/10g/event_histogram.sql
Normal file
22
timhall/10g/event_histogram.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/10g/event_histogram.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Displays histogram of the event waits times.
|
||||
-- Requirements : Access to the V$ views.
|
||||
-- Call Syntax : @event_histogram "(event-name)"
|
||||
-- Last Modified: 08-NOV-2005
|
||||
-- -----------------------------------------------------------------------------------
|
||||
|
||||
SET VERIFY OFF
|
||||
COLUMN event FORMAT A30
|
||||
|
||||
SELECT event#,
|
||||
event,
|
||||
wait_time_milli,
|
||||
wait_count
|
||||
FROM v$event_histogram
|
||||
WHERE event LIKE '%&1%'
|
||||
ORDER BY event, wait_time_milli;
|
||||
|
||||
COLUMN FORMAT DEFAULT
|
||||
SET VERIFY ON
|
||||
Reference in New Issue
Block a user