explain
Syntax
explain [plan for] {[ Connid.]ttisqlcmdid | sqlcmdid sqlcmdid | sqlstmt |!history}
Description
Explains the plan for the specified SQL statement, including prepared
ttIsql
statements, specified in the ttisqlcmdid
argument, or the sqlcmdid
argument.
A digit that is not qualified with the sqlcmdid
argument, is
interpreted as a ttIsql
prepared statement ID.
If passthrough is enabled, the command ID is not passed through to the Oracle database.
Example
Command> explain plan for select * from dual; Query Optimizer Plan (from Query Compilation): STEP: 1 LEVEL: 1 OPERATION: RowLkSerialScan TBLNAME: DUAL IXNAME: INDEXED CONDITION: NOT INDEXED: MISCELLANEOUS: cardEst = 1