Analyzing a statement from a DB2 package


Use the following procedure to select and tune a statement from any package.

To analyze a statement from a package

New BMC Workbench console


  1. In the DB2 Navigator perspective, open or create a package view that contains the required statement.
  2. Select the package containing the required statement.
  3. From the Navigate To list, click Explainable Statements.The results pane displays all Explainable statements for that package.
  4. Search for and select the required statement.
  5. Perform one of the following actions:
    • Click Properties NW_file_text_o.png to view the statement properties.
    • Click Explain NW_generate_explain.png to display the Explain results in the Performance perspective. You can now perform SQL tuning tasks.
Classic BMC Workbench console
  1. Click the DB2 Navigator tab.
  2. Open or create a package view that contains the required statement.
  3. Select the package containing the required statement.
  4. From the command toolbar, click Show Explainable Statements ShowExplainableStmt-24.png.The results pane displays all Explainable statements for that package.
  5. Search for and select the required statement.
  6. Perform one of the following actions:
    • Click Properties properties-24.png to view the statement properties.
    • Click Explain explain-24.png to display the graphical Explain of the selected statement in the Explain tab. You can now perform SQL tuning tasks.


 

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

BMC Workbench for DB2 12.1