Identifying performance issues in SQL statements (PTF BQU1678 applied)


The SQL Analysis app displays the top 100 SQL statements for a subsystem that use the most CPU time. The app defaults to displaying the SQL statements for the last subsystem selected in the app. The SQL Analysis app displays the following views:

  • Subsystem summary
  • Statement detail

Use the following procedure to view a report of SQL statements with performance issues for a subsystem.

To identify performance issues in SQL statements

New BMC Workbench console
  1. In the upper left corner of the New BMC Workbench console, click Apps.
  2. Click SQL Analysis NW_sql_arrow_chart_teal.png.
  3. Select the Subsystem you want to investigate.
  4. (optional) Click Filter Filter_app_Contents-24.png to limit the results displayed based on one or more of the following fields:

    • Plan
    • Program

    For more information, see Filtering-the-result-set-for-an-SQL-app-PTF-BQU1678-applied.

  5. (optional) Click Filter Time Interval Select_time_interval-24.png to adjust the time period in which you want to view results. For more information, see Selecting-the-time-interval-for-SQL-apps-PTF-BQU1678-applied.
  6. To view the details for a row:
    • Select the row and click Details.
    • Double-click the row.
  7. (Optional) To analyze the statement, click the Explain NW_generate_explain.png menu and then select Dynamic.
    For more information, see Performance-perspective.
  8. Click back_icon_app-24.png to return to the subsystem summary view.
  9. (Optional) Click refresh_app-24.png to update the information displayed in the subsystem summary view.
Classic BMC Workbench console
  1. In the upper right corner of the Classic BMC Workbench console, click Apps.
  2. Click SQL Analysis SQL_analysis_app-64.png.
  3. Select the Subsystem you want to investigate.
  4. (optional) Click Filter Filter_app_Contents-24.png to limit the results displayed based on one or more of the following fields:

    • Plan
    • Program

    For more information, see Filtering-the-result-set-for-an-SQL-app-PTF-BQU1678-applied.

  5. (optional) Click Filter Time Interval Select_time_interval-24.png to adjust the time period in which you want to view results. For more information, see Selecting-the-time-interval-for-SQL-apps-PTF-BQU1678-applied.
  6. To view the details for a row:
    • Select the row and click Details.
    • Double-click the row. 
  7. (Optional) To analyze the statement, click the Explain NW_generate_explain.pngmenu and then select Dynamic.
  8. Click back_icon_app-24.png to return to the subsystem summary view.
  9. (Optional) Click refresh_app-24.png to update the information displayed in the subsystem summary view.

Where to go from here

Use the Performance perspective to analyze an SQL statement with poor performance. For more information, see Tuning-SQL.


 

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

BMC Workbench for DB2 12.1