Creating a Db2 statement cache view


You can create a view of Db2 statements from the statement cache. Then, you can select statements to view, Explain, and tune.

Warning

Important

To have data in the Db2 statement cache, set the DB2 CACHEDYN subsystem parameter to YES.

To create a Db2 statement cache view

  1. Open or create a workspace.
  2. In the DB2 Performance perspective, click the Add View NW_plus_circle_o.png menu arrow, and then click Add DB2 Statement Cache View.

    Success

    Tip

    The default value of the Add View menu is always the last option that you created. If you previously created, in this or a previous saved session, a DB2 Statement Cache view then clicking NW_plus_circle_o.png creates a new DB2 Statement Cache view

  3. Complete the Add DB2 Statement Cache View dialog box:
    1. Select a DB2 connection from the list.

      Success

      Tip

      Clicking NG_plug_connect_square_blue.png lets you specify which DB2 connections to include in your list of favorite connections.

    2. Enter a filter pattern for the selected program name or package name.
  4. Click OK. The view is added into the DB2 navigation pane in a hierarchical display organized by subsystem and type.
  5. (Optional) To add additional filters to the same subsystem, return to Step 3.b and specify a filter.

 

 

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

BMC AMI Command Center for Db2 13.2