2026-03-12 20:23:15
This commit is contained in:
19
mhouri/awrPlanLineId.sql
Normal file
19
mhouri/awrPlanLineId.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
column cnt format 9999
|
||||
compute sum label 'Total Elapsed' of cnt on report
|
||||
|
||||
break on report
|
||||
|
||||
select
|
||||
sql_plan_line_id
|
||||
,10* count(1) cnt
|
||||
from
|
||||
dba_hist_active_sess_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 sql_id = '&sql_id'
|
||||
group by sql_plan_line_id
|
||||
order by 2 desc;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user