| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

Oracle EXPLAIN PLAN

提供: MyMemoWiki
ナビゲーションに移動 検索に移動

EXPLAIN PLAN

Oracle |

@$ORACLE_HOME/RDBMS/ADMIN/UTLXPLAN.SQL

truncate table plan_table;
explain plan set statement_id='plan_test' for
[SQL_Statement]


SELECT cardinality "Rows",
lpad(' ',level-1)||operation||' '||
options||' '||object_name "Plan"
FROM PLAN_TABLE
CONNECT BY prior id = parent_id
AND prior statement_id = statement_id
START WITH id = 0
AND statement_id = 'plan_test'
ORDER BY id