Skip to content

Commit 9d2862e

Browse files
committed
add distinct blocker sids
1 parent a7c951e commit 9d2862e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ash/ash_wait_chains.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
--
2727
--------------------------------------------------------------------------------
2828
COL wait_chain FOR A300 WORD_WRAP
29+
COL distinct_sids FOR 9999 HEAD "#Blkrs"
2930
COL "%This" FOR A6
3031

3132
PROMPT
@@ -121,10 +122,10 @@ SELECT * FROM (
121122
LPAD(ROUND(RATIO_TO_REPORT(COUNT(*)) OVER () * 100)||'%',5,' ') "%This"
122123
, COUNT(*) seconds
123124
, ROUND(COUNT(*) / ((CAST(&4 AS DATE) - CAST(&3 AS DATE)) * 86400), 1) AAS
125+
, COUNT(DISTINCT sids) distinct_sids
124126
, path wait_chain
125127
, TO_CHAR(MIN(sample_time), 'YYYY-MM-DD HH24:MI:SS') first_seen
126128
, TO_CHAR(MAX(sample_time), 'YYYY-MM-DD HH24:MI:SS') last_seen
127-
-- , COUNT(DISTINCT sids)
128129
-- , MIN(sids)
129130
-- , MAX(sids)
130131
FROM

ash/dash_wait_chains.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
--
2323
--------------------------------------------------------------------------------
2424
COL wait_chain FOR A300 WORD_WRAP
25+
COL distinct_sids FOR 9999 HEAD "#Blkrs"
2526
COL "%This" FOR A6
2627

2728
PROMPT
@@ -114,9 +115,9 @@ SELECT * FROM (
114115
LPAD(ROUND(RATIO_TO_REPORT(COUNT(*)) OVER () * 100)||'%',5,' ') "%This"
115116
, COUNT(*) * 10 seconds
116117
, ROUND(COUNT(*) * 10 / ((CAST(&4 AS DATE) - CAST(&3 AS DATE)) * 86400), 1) AAS
117-
-- , COUNT(DISTINCT sids)
118118
-- , MIN(sids)
119119
-- , MAX(sids)
120+
, COUNT(DISTINCT sids) distinct_sids
120121
, path wait_chain
121122
, TO_CHAR(MIN(sample_time), 'YYYY-MM-DD HH24:MI:SS') first_seen
122123
, TO_CHAR(MAX(sample_time), 'YYYY-MM-DD HH24:MI:SS') last_seen

0 commit comments

Comments
 (0)