2026-03-12 20:23:15
This commit is contained in:
13
mhouri/sqlstats.sql
Normal file
13
mhouri/sqlstats.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
ol execs format 99999999
|
||||
select
|
||||
child_number child
|
||||
--, sql_profile
|
||||
, plan_hash_value
|
||||
, round(buffer_gets/decode(nvl(executions,0),0,1,executions)) avg_gets
|
||||
, round(disk_reads/decode(nvl(executions,0),0,1,executions)) avg_pios
|
||||
, (elapsed_time/1000000)/decode(nvl(executions,0),0,1,executions) avg_etime
|
||||
, executions execs
|
||||
from
|
||||
gv$sql
|
||||
where
|
||||
sql_id = '&sql_id';
|
||||
Reference in New Issue
Block a user