Troubleshooting SQL statements
Overview of the SQL Errors app
The SQL Errors application displays SQL errors captured by BMC AMI Apptune for Db2. You can view a list of errors generated on one or more subsystems. You can also drill down to identify the programs and statements that are causing the errors.
The following table lists the actions that you can perform in the SQL Errors app:
Purpose | Action |
---|---|
Change the time interval | Select the time interval from the Timeframe list. |
Change the subsystems displayed |
|
Refresh the data displayed | Click Refresh |
View errors for a subsystem | Perform one of the following actions:
|
Adjust the time interval for the errors displayed | Select the time interval from the Timeframe list. |
Filter the rows displayed by:
| Click Filter |
Clear the filters | Click Clear all filters Clear all filters performs the following actions:
|
Return to the previous view | Click Back |
View a list of occurrences of an error code | Perform one of the following actions:
|
View a list of occurrences of all error codes | Select All from the Occurrences for Error Code list. |
View the details for an occurrence of an error code | Double-click a row on the list of occurrences. |
Suppress the display of the Options dialog box |
|
Open the SQL Analysis app | Click |
Open the SQL Alerts app | Click |
Overview of the SQL Analysis app
The SQL Analysis application displays a list of the top 100 SQL statements with the highest CPU time for a given subsystem and time period. You can also view the details for a statement.
The following table lists the actions that you can perform in the SQL Analysis app:
Purpose | Action |
---|---|
Choose subsystem | Select the subsystem from the Subsystems list. |
Refresh the data displayed | Click Refresh |
View details for an SQL statement | Double-click a row on the list of SQL statements. |
Adjust the time interval for the SQL statements displayed | Select an interval from the Timeframe list. |
Filter the rows displayed by:
| Click Filter |
Clear the filters | Click Clear all filters Removes all filters entered in the Filter dialog box. |
Export the list of SQL statements currently displayed |
|
Investigate performance trends for a SQL statement | Perform one of the following actions on the list of SQL statements:
|
Return to the previous view | Click Back |
Customize the subsystem summary grid columns |
|
Suppress the display of the Options dialog box |
|
Open the SQL Errors app | Click |
Open the SQL Alerts app | Click |
Overview of the SQL Alerts app
The SQL Alerts application displays a list of the BMC AMI SQL Performance interval alerts generated for SQL statements whose cost has passed a user-defined threshold.
The following table lists the actions that you can perform in the SQL Alerts app:
Purpose | Action |
---|---|
Adjust the timeframe for the alerts displayed | Select an interval from the Timeframe list. |
Refresh the data displayed | Click Refresh |
Display the alerts for a subsystem | Perform one of the following actions:
|
View the details for an alert | Perform one of the following actions on the alerts table:
|
Investigate performance trends of the SQL statement that caused an alert | Perform one of the following actions on the alerts table:
|
Select the display format of the historical basis for an alert | Select one of the following options:
Chart is not available for disruption alerts. |
Return to the previous view | Click Back |
Open the SQL Analysis app | Click |
Open the SQL Errors app | Click |
This section provides more information about the following topics: