Inspecting a SQL Statement's Execution Plan

Use the SQL Worksheet to inspect the execution plans chosen by the Oracle optimizer for SQL SELECT, UPDATE, INSERT, and DELETE statements. An execution plan is the sequence of operations that will be performed to execute the statement.

An execution plan shows a row source tree; the hierarchy of operations that comprise the statement. For each operation it shows the following information:

In addition to the row source tree, the plan table displays the following information about selected operations:

For more information, see the Using EXPLAIN PLAN section of the Oracle Database Performance Tuning Guide and Reference, available from the Oracle Technology Network (OTN) at http://www.oracle.com/pls/db92/db92.homepage.

To view a SQL statement's execution plan:

  1. Enter a SQL statement in the worksheet's upper pane.
  2. Do any one of the following: To view the execution plan, you need to have access to a table which stores the information for viewing. If the plan table does not yet exist, a dialog box will open to ask if it should be created. Click OK.
  3. View the statement's result in the lower pane.

Using the SQL Worksheet
Executing SQL Statement
Recalling a Statement from the SQL Worksheet History

 

Copyright © 1997, 2004, Oracle. All rights reserved.