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

View File

@@ -0,0 +1,13 @@
SELECT ROUND(AVG(count(1))) "Avg Record (#)/ Snap"
FROM stats$sql_summary ss,
stats$statspack_parameter sp
WHERE ss.dbid = sp.dbid
AND ss.instance_number = sp.instance_number
AND (ss.EXECUTIONS > sp.EXECUTIONS_TH * 1
OR ss.parse_calls > sp.PARSE_CALLS_TH * 1
OR ss.disk_reads > sp.DISK_READS_TH * 1
OR ss.buffer_gets > sp.BUFFER_GETS_TH * 1
OR ss.sharable_mem > sp.SHARABLE_MEM_TH * 1
OR ss.version_count > sp.VERSION_COUNT_TH * 1
)
group by ss.dbid, ss.instance_number, snap_id;