Resets the database system monitor data of a specified database, or of all active databases, for the application issuing the call.
This API can either affect a given database partition on the instance, or all database partitions on the instance.
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.
db2ApiDf.h
SQL_API_RC SQL_API_FN
db2ResetMonitor (
db2Uint32 versionNumber,
void * pParmStruct,
struct sqlca * pSqlca);
typedef SQL_STRUCTURE db2ResetMonitorData
{
db2Uint32 iResetAll;
char *piDbAlias;
db2Uint32 iVersion;
db2int32 iNodeNumber;
} db2ResetMonitorData;
SQL_API_RC SQL_API_FN
db2gResetMonitor (
db2Uint32 versionNumber,
void * pParmStruct,
struct sqlca * pSqlca);
typedef SQL_STRUCTURE db2gResetMonitorData
{
db2Uint32 iResetAll;
char *piDbAlias;
db2Uint32 iDbAliasLength;
db2Uint32 iVersion;
db2int32 iNodeNumber;
} db2gResetMonitorData;
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. When an application first calls any database monitor function, it inherits the default switch settings from the database manager configuration file. These settings can be overridden with db2MonitorSwitches - Get/Update Monitor Switches.
If all active databases are reset, some database manager information is also reset to maintain the consistency of the data that is returned.
This API cannot be used to selectively reset specific data items or specific monitor groups. However, a specific group can be reset by turning its switch off, and then on, using db2MonitorSwitches - Get/Update Monitor Switches.