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

41
vg/sp_explain_plan.sql Normal file
View File

@@ -0,0 +1,41 @@
SELECT /*+ opt_param('parallel_execution_enabled', 'false') */
/* EXEC_FROM_DBMS_XPLAN */ id
, POSITION
, LEVEL -1 depth
, operation
, options
, object_name
, cardinality
, bytes
, temp_space
, cost
, io_ cost
, cpu_cost
, NULL
, partition_start
, partition_stop
, object_node
, other_tag
, distribution
, NULL
, access_predicates
, filter_predicates
, other
, remarks
FROM plan_table START WITH id = 0 AND TIMESTAMP >=
(SELECT MAX(TIMESTAMP)
FROM stats$sql_plan
WHERE id = 0
AND hash_plan_value = &hash_plan_value
AND nvl(statement_id, ' ') NOT LIKE 'SYS_LE%'
)
AND nvl(statement_id, ' ') NOT LIKE 'SYS_LE%'
AND hash_plan_value = &hash_plan_value
CONNECT BY (PRIOR id = parent_id
AND PRIOR nvl(statement_id, ' ') = nvl(statement_id, ' ')
AND PRIOR TIMESTAMP <= TIMESTAMP) OR(PRIOR nvl(object_name, ' ') LIKE 'SYS_LE%' AND PRIOR nvl(object_name, ' ') = nvl(statement_id, ' ') AND id = 0 AND PRIOR TIMESTAMP <= TIMESTAMP)
ORDER siblings BY id
438344612