Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The Playback controls, located at the top of the tree, enable you to freely move within the execution plan of an explained statement (step by step).
  • By moving the pointer over the execution plan steps, you can view a ToolTip that contains statistical information, such as Estimated Cost, Estimated Rows, and Estimated I/O Cost, and a description of the specified step.
  • Selecting a specific step (operator) highlights nested steps and affects the information displayed in the Detail tabs: the relevant Optimized text is shown on the Highlights tab; the referenced tables, indexes, and columns are shown on the Objects tab; the operators and predicates are shown on the Operators tab; and the Original text is shown on the Text tab. The Recommendations tab, only displayed when you generate recommendations, shows index details and the DDL for creating the indexes.
  • Clicking the hatchet mark (    Image Added), located at the bottom of the tree, displays the Tree View area with three tabs allowing you to select which statement text to view:
    • Optimized Text
    • Original Text
    • Remote Query Text

...

Table 7-5 Columns in table

Column    Description

...

ColumnDescription
Image AddedClick to launch to Objects tab—with the selected table in context—to get additional catalog information about the object.
Image Added

...

The column definition in the chosen index (Ascending, Descending, or Included).
Column

...

Column name.
Type

...

Data type of the column.
Length

...

The length of the column.
Key

...

NumberThe position within the chosen index.

Anchor
AboutviewinginformationonalloperatorsandpredicatesintheExecutionplan
AboutviewinginformationonalloperatorsandpredicatesintheExecutionplan
About viewing information on all operators and predicates in the Execution plan

...

The following table describes the information displayed in the Operators table.

Table 7-6 Operators table

Column    Description

...

ColumnDescription
Image AddedClick to locate and highlight in Bold font the same operator in the execution plan.
Operator

...

IDOperator ID issued by the DB2 Optimizer.
Execution

...

OrderThe execution order of operators in the plan.
Operator

...

Operator type.
Subtree Total

...

CostThe total cost of this operator subtree.
Cost(%)

...

The percentage cost of this operator in the plan.
First Row

...

CostFirst row cost of the operator subtree.
I/O

...

CostI/O Cost.
CPU

...

CostCPU Cost.
Prefetch

...

Prefetch type.
Estimated

...

RowsThe estimated rows of the operator.
Estimated

...

PagesThe estimated pages of the operator.
Potential Filter

...

FactorPotential filter factor calculated by the predicate’s filter factor of the operator.
Table

...

PartitionsThe estimated number of table partitions to be accessed.

The following table describes the information displayed in the Predicates table.

Table 7-7 Predicates table

Column    Description

...

ColumnDescription
TextPredicate text.
Filter

...

FactorThe estimated filter factor of the predicate.
How AppliedHow

...

predicate is being used by the specified operator.
Sub

...

SelectIndicates when the subquery used in this predicate is evaluated.

Anchor
Aboutviewingthestatementtext
Aboutviewingthestatementtext
About viewing the statement text

...

Table 7-8 Recommendations table

Column    Description

...

ColumnDescription
ObjectThe name of the index.

...

ActionsCreate index.
Columns

...

Columns participating in the index or Include Columns in the index.

The Details area displays statistical information of the recommended index. The DDL area displays the create index statement.

...

Use the Actions menu to perform the following operations:

Anchor
Creatinganewstatement
Creatinganewstatement
Creating a new statement

You can create a new statement and save it in the PMDB in a logical cabinet and folder hierarchy. You can also rewrite statements and view their access plans.

...

The new statement is saved in the PMDB in a logical cabinet and folder hierarchy.

Anchor
Openinganexistingstatement
Openinganexistingstatement
Opening an existing statement

You can load a previously saved statement. To open an existing statement

  1. On the Actions menu, click Open. The Open Statement dialog box is displayed.
  2. In the Open Statement dialog box, select the statement you want to open by choosing its relevant properties from the drop-down lists, as follows:
    • Database. The name of the database where the statement is running.
    • Cabinet. Cabinet    The The name of the cabinet that the statement is saved in.
    • Folder. Folder    The The name of the folder that the statement is saved in.
    • Statement. Statement    The The name of the statement.
    • Comment. Displays free text entered by the user.
      The statement's text is displayed in the Text frame.
  3. Click OK.
Info

...

If the SQL tab is opened with no statement in-context, the following error message is displayed:

No statement in context. Please open a statement.

To open a statement you can close the error message dialog and click the Open button displayed on the upper right-hand side of the Details area or click Actions>Open. To open a new statement click Actions>New.

Anchor
Editinganexistingstatement
Editinganexistingstatement
Editing an existing statement

You can edit a statement that was saved in the PMDB. The statement that was collected by the Collector is saved as a new statement in a logical cabinet and folder hierarchy.

...

  1. On the Actions menu, click Edit.
  2. In the Edit Statement dialog box, select the statement you want to edit by choosing its relevant properties from the drop-down lists, as follows:
    • Database. The name of the database where the statement is running.
    • User. The statement's parsing user.
    • Cabinet. The name of the cabinet that the statement is saved in.
    • Folder. Folder    The The name of the folder that the statement is saved in.
    • Statement. The name of the statement.
    • Comment. Displays free text entered by the user.
  3. Enter a new statement name in the Statement field.
  4. Edit the SQL text for the statement in the Text frame.
  5. Click OK.

The edited statement is saved in a logical cabinet and folder hierarchy.

Anchor
Reexplaininganaccessplan
Reexplaininganaccessplan
Re-explaining an access plan

You can refresh a statement plan by generating a new estimated access plan and saving it, if it is different from the most recent access plan. You can then display the most recent access plan.

To re-explain a statement, go to Actions>Re-Explain or, alternatively, click the Re-Explain button.

Anchor
Generatingrecommendations
Generatingrecommendations
Generating recommendations

You can generate new index recommendations for the statement. These are additional indexes that can improve the statement.

To generate a recommendation, go to Actions>Recommend or, alternatively, click the Recommend button.

...