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

13
mhouri/sqlstats.sql Normal file
View 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';