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

17
mhouri/ashPerAction.sql Normal file
View File

@@ -0,0 +1,17 @@
----- ./ashPerAction2.sql ------------------------
column cnt format 9999999
compute sum label 'Total Elapsed' of cnt on report
break on report
select
sql_id, sql_plan_hash_value, count(1) cnt
from
gv$active_session_history
where
sample_time between to_date('&datefrom', 'mm/dd/yyyy hh24:mi:ss')
and to_date('&dateto', 'mm/dd/yyyy hh24:mi:ss')
and action = '&ACTION'
group by sql_id, sql_plan_hash_value
order by 2 desc
;