Database monitor statistics provide the most complete information about a query. You can gather performance statistics for a specific query or for every query on the system. There are several different ways to gather the statistics:
You can monitor a specific job or all jobs on the system. The statistics gathered are placed in the output database table specified on the command. Each job in the system can be monitored concurrently by two monitors:
When a job is monitored by two monitors, each monitor is logging rows to a different output table. You can identify rows in the output database table by each row's unique identification number.
What kinds of statistics you can gather
STRDBMON provides the same information that is provided with the query optimizer debug messages (STRDBG) and the Print SQL information (PRTSQLINF) command, along with the following information:
How you can use performance statistics
You can use these performance statistics to generate various reports. For instance, you can include reports that show queries that:
| Note: | A query that is cancelled by an end request generally does not generate performance statistics. |