Analyzing a statement from the Db2 statement cache
To analyze a statement from the Db2 statement cache
- In the Performance perspective, click the Add view
menu arrow and then click Add SQL Statement Cache View.
In the Add DB2 Statement Cache View dialog box, from the DB2 Connection list, select a Db2 subsystem.
- In the Filter box, enter the name of the program that contains the statement. You can use wildcards to return a list of statements contained by programs that match the pattern.
Click OK.In the results pane, a list of statements is displayed.
- (Optional) To sort the results, click the column headers.
- Select the desired statement and click Generate explain plan
. The Explain results are displayed along with the following tabs:
- SQL (see SQL tab)
- Indexes (see Indexes tab)
- Explain (see Explain tab)
- Cost (see Cost tab)
- Predicates (see Predicates tab)
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*