Things You'll Need:
- Oracle Database
-
Step 1
Start SQL*Plus by typing "sqlplus" at a command prompt.
-
Step 2
Create a table to hold the EXPLAIN PLAN output with the following syntax:
CONNECT EXAMPLE/password @$ORACLE_HOME/RDMS/ADMIN/UTLXPLAN.SQL -
Step 3
Run the EXPLAIN PLAN by placing "EXPLAIN PLAN FOR" in front of the SQL statement. Use the "SET STATEMENT_ID" clause if you have more than one statement in the plan table. For example, "EXPLAIN PLAN SET STATEMENT_ID = 'st1' FOR SELECT zip FROM address;"
-
Step 4
Type the command "@$ORACLE_HOME/rdbms/admin/utlxpls.sql" to view the Explain Plan.
-
Step 5
Type "quit" to close the SQL*Plus session.










