-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwaitsum.sql
More file actions
26 lines (21 loc) · 768 Bytes
/
waitsum.sql
File metadata and controls
26 lines (21 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
column event format a55
column avg_wait format 99,990.0000
break on report
compute sum of count on report
set feed off
select event, count(*) count, AVG(seconds_in_wait) avg_wait
from v$session_wait
where event not in ('SQL*Net message to client',
'SQL*Net message from client',
'smon timer',
'pmon timer',
'rdbms ipc message',
'Streams AQ: qmn slave idle wait',
'Streams AQ: qmn coordinator idle wait',
'SQL*Net more data to client',
'Streams AQ: waiting for time management or cleanup tasks')
group by event
/
prompt *note - avg_wait time is in seconds
prompt
set feed on