The execution plan displays the steps a database takes to execute a SQL statement. You can use the execution plan to determine if a statement is efficient.
The following displays a sample execution plan in tree plan format:
Each step of the tree indicates how SQL Optimizer retrieves rows of data. The first line of the execution plan displays the SQL statement type, such as SELECT. The remaining lines represent an operation. The operations are numbered in the order of execution to make the plan easier to read.
SQL Optimizer executes each child operation before the parent operation. For some SQL statements, SQL Optimizer executes the parent operation once it retrieves a single row from the child operation. Other SQL statements require that SQL Optimizer retrieve all rows from the child operation before it executes the parent operation.
The annotated execution plan includes the following information for each step:
Execution order number
Join syntax (annotated)
Filter syntax (annotated)
Object name
Table access
Index scan
Cost
Partition name
In the Optimize SQL module, the Execution Plan window contains an Estimated Plan tab and an Actual Plan tab.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center