Oracle EXPLAIN
Older Versions
Older Versions
'PLAN_TABLE' CREATION
'PLAN_TABLE' CREATION
@$ORACLE_HOME/rdbms/admin/xplainpl.sql
Oracle Version 6@$ORACLE_HOME/rdbms/admin/utlxplan.sql
Oracle Version 7Generating Execution Plan
Generating Execution Plan
EXPLAIN PLAN
SET statement_id = 'TEST'
FOR
SELECT myinteger
FROM mytable
WHERE myvarchar = 'MIKE';
Viewing Execution Plan
Viewing Execution Plan
SELECT LPAD(' ',2*LEVEL)||operation||' '||options||' '||object_name q_plan
FROM plan_table
WHERE statement_id = 'TEST'
CONNECT BY PRIOR id=parent_id
AND statement_id = 'TEST'
START WITH id=1;
SELECT plan_table_output
FROM TABLE(dbms_xplan.display_cursor('&SQL_ID','&CHILD','basic'));