Information
Limited support BMC 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 Command Center for Db2 13.2

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

Note

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

To create a Db2 statement cache view

New console
  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 NW_plug_connect_square_green.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.
Classic console
  1. Open or create a workspace.
  2. In the DB2 Navigator perspective, click the Add ViewAdd-16.pngmenu arrow, and then click Add DB2 Statement Cache View AddStmtCacheView-24.png.

    Success

    Tip

    You can also right-click in the DB2 navigation pane to select this option.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 Add-16.png creates a new DB2 Statement Cache view

  3. Complete the Add DB2 Statement Cache View dialog box:
    1. Select a DB2 connection:
      • Type the full or partial name of a DB2 connection to select the first subsystem that matches this value in the list of favorite connections.
      • Use the menu arrow to select from your list of favorite connections.

        Success

        Tip

        Clicking ViewFavoritesList-24.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 12.1