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,18 @@
COL con_id FOR 999 HEA 'Con|ID';
COL pdb_name FOR A30 HEA 'PDB Name' FOR A30 TRUNC;
COL timestamp FOR A19 HEA 'Timestamp';
COL plan_hash_value FOR 9999999999 HEA 'Plan|Hash Value';
--
PRO
PRO AWR PLANS (dba_hist_sql_plan)
PRO ~~~~~~~~~
SELECT TO_CHAR(h.timestamp, '&&cs_datetime_full_format.') timestamp,
plan_hash_value
FROM dba_hist_sql_plan h
WHERE h.sql_id = '&&cs_sql_id.'
AND ('&&cs_plan_hash_value.' IS NULL OR h.plan_hash_value = TO_NUMBER('&&cs_plan_hash_value.'))
AND h.id = 0
AND h.dbid = TO_NUMBER('&&cs_dbid.')
ORDER BY
h.timestamp
/