Limited supportBMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see BMC AMI Apptune for Db2 13.1.

Actions


You can use the following action codes in your Explain in one of the following ways:

  • Type the action code in the space beside an object, and press Enter.
  • Put the cursor in the space beside an object, and press Enter. A list of action codes is displayed. Specify an action code, and press Enter.

The action codes appear on the Explain Object Selection List and the Explain Results panels. To specify an action code for multiple objects, type the action code in the space beside an object, type an equal sign (=) in the space beside any subsequent objects on which you want to perform the same action, and press Enter.

The following table lists the action codes.

Action codes for Explain

Code

Action

Description

H

Hide

Collapses the results of the previous action code

P

Predicate

Displays a predicate report

Explain automatically displays a predicate report if a statement has a mismatch in data type or length in the predicate. The predicates containing the mismatch are shown in red.

R

Rules

Displays severe, warning, and informational rules for BIND parameters, SQL statements, access path steps, and statistics

Severe rules are shown in red, warning rules are shown in yellow, and informational rules are shown in green.

To learn more about a rule, type TSO PSSMSG BMC msgNum , where msgNum is the six-digit BMC message number. Do not include the severity code in this number.

RI

Rules: Informational

Displays informational rules for BIND parameters, SQL statements, access path steps, and statistics

RS

Rules: Severe

Displays severe rules for BIND parameters, SQL statements, access path steps, and statistics

RW

Rules: Warning

Displays warning rules for BIND parameters, SQL statements, access path steps, and statistics

S

Show

Expands a list of statements, shows a formatted version of statement text, or shows statistics or columns for the objects referenced in the access path step

T

Text Compare

Compares the text of two SQL statements

W

What-If Edit SQL

Performs a What-If Edit SQL Explain

XB

Explain: Batch

Performs a batch Explain

XC

Explain: Compare

Compares the results of a dynamic Explain with one or more static Explains

XD

Explain: Dynamic

Performs a dynamic Explain

XS

Explain: Static

Performs a static Explain

XP

Explain: Package

Performs an Explain package, which reports on plan stability rows

Note

This option is currently available only with Db2 Version 10 or later.


Note

SQL Performance for Db2 users have additional action codes for the What-If Index feature of the SQL Performance solution. For more information about these solution-specific action codes, see the BMC AMI SQL Performance for Db2.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*