IBM Books

System Monitor Guide and Reference


Database Manager Maintains Operation and Performance Data

Built into the database manager is the ability to collect data about its operation and performance, and that of the applications using it. The database manager maintains information at the following levels:

Collecting some of this data introduces some processing overhead. For example, in order to calculate the execution time of an SQL statement, the database manager must make a call to the operating system to obtain timestamps before and after statement execution. These types of system calls are generally expensive. In order to minimize the overhead involved in maintaining monitoring information, monitor switches control the collection of potentially expensive data by the database manager.

Monitor Switches Control Data Collected by the Database Manager

The database system monitor will always collect some basic information, but you can use the switches to govern the amount of expensive data collected. Monitor switches can be set:

To see if your database manager is currently collecting any monitor data issue the command:

     db2 get database manager monitor switches

The resulting output indicates the database manager switch settings and the time that they were turned on.

          DBM System Monitor Information Collected
 
Buffer Pool Activity Information (BUFFERPOOL) = OFF
Lock Information                       (LOCK) = OFF
Sorting Information                    (SORT) = ON   04-18-1997 10:11:01.738400
SQL Statement Information         (STATEMENT) = OFF
Table Activity Information            (TABLE) = OFF
Unit of Work Information                (UOW) = OFF

In this example, in addition to collecting basic-level information, the database manager is collecting all information under control of the sort switch.

Accessing Monitor Data

There are two ways to access the monitor data collected by the database manager:


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]