Turns one or more database monitor recording switches on or off.
When the database manager starts, the settings of the six switches are determined by the dft_mon database manager configuration parameter.
The database monitor records a base set of information at all times. Users who require more than this basic information can turn on the appropriate switches, but at a cost to system performance. The amount of information available in output from the GET SNAPSHOT command reflects which, if any, switches are on.
This command is issued on the currently attached member and, by default, returns information only for that member. In the case of multiple members per host, the currently attached member is the first member that is listed in the db2nodes.cfg file on that host.
To issue the command for a specific member that is not the currently attached member, specify the ATTACH_MEMBER parameter. To issue the command for all members and receive an aggregated result, specify the GLOBAL parameter.
To change the currently attached member, issue the SET CLIENT command with the ATTACH_MEMBER parameter . You must issue the DETACH command followed by the ATTACH command from your application for this change to take effect.
To update the monitor switches at a remote instance (or a different local instance), it is necessary to first attach to that instance.
.----------------------. V | >>-UPDATE MONITOR SWITCHES USING----switch-name--+-ON--+-+------> '-OFF-' >--+--------------------------+-------------------------------->< +-AT MEMBER--member-number-+ '-GLOBAL-------------------'
Information is collected by the database manager only after a switch is turned on. The switches remain set until db2stop is issued, or the application that issued the UPDATE MONITOR SWITCHES command terminates. To clear the information related to a particular switch, set the switch off, then on.
Updating switches in one application does not affect other applications.
To view the switch settings, use the GET MONITOR SWITCHES command.