DB2 Version 9.7 for Linux, UNIX, and Windows

RESET MONITOR command

Resets the internal database system monitor data areas of a specified database, or of all active databases, to zero. The internal database system monitor data areas include the data areas for all applications connected to the database, as well as the data areas for the database itself.

Authorization

One of the following:
  • sysadm
  • sysctrl
  • sysmaint
  • sysmon

Required connection

Instance. If there is no instance attachment, a default instance attachment is created.

To reset the monitor switches for a remote instance (or a different local instance), it is necessary to first attach to that instance.

Command syntax

Read syntax diagramSkip visual syntax diagram
>>-RESET MONITOR------------------------------------------------>

>--+-ALL--+-----+-------------------------------+--------------->
   |      '-DCS-'                               |   
   '-FOR--+-----+--+-DATABASE-+--database-alias-'   
          '-DCS-'  '-DB-------'                     

>--+----------------------------------------+------------------><
   +-AT DBPARTITIONNUM--db-partition-number-+   
   '-GLOBAL---------------------------------'   

Command parameters

ALL
This option indicates that the internal counters should be reset for all databases.
FOR DATABASE database-alias
This option indicates that only the database with alias database-alias should have its internal counters reset.
DCS
Depending on which clause it is specified, this keyword resets the internal counters of:
  • All DCS databases
  • A specific DCS database.
AT DBPARTITIONNUM db-partition-number
Specifies the database partition for which the status of the monitor switches is to be displayed.
GLOBAL
Returns an aggregate result for all database partitions in a partitioned database environment.

Usage notes

Each process (attachment) has its own private view of the monitor data. If one user resets, or turns off a monitor switch, other users are not affected. Change the setting of the monitor switch configuration parameters to make global changes to the monitor switches.

If ALL is specified, some database manager information is also reset to maintain consistency of the returned data, and some database partition-level counters are reset.

Compatibilities

For compatibility with versions earlier than Version 8:
  • The keyword NODE can be substituted for DBPARTITIONNUM.