-- plan.sql: explain plan template: paste a statement, see its plan -- Copyright (c) HASHJOIN. MIT License (https://hashjoin.com/kb/license/) -- https://hashjoin.com/kb/oracle/sql-text-and-plan-for-a-sql-id/ -- -- Usage: edit the statement, then @plan.sql set lines 165 set trims on col PLAN_TABLE_OUTPUT format a165 set pages 500 set long 100000000 -- Replace the statement below with the one you want to explain. explain plan for select * from mytable where x = :1; select * from table(dbms_xplan.display());