Collects database manager monitor information and returns it to a user-allocated data buffer. The information returned represents a snapshot of the database manager operational status at the time the API was called.
Scope
This API returns information only for the node on which it is issued.
Authorization
One of the following:
Required Connection
Instance. To obtain a snapshot from a remote instance (or a different local instance), it is necessary to first attach to that instance.
API Include File
sqlmon.h
C API Syntax
/* File: sqlmon.h */ /* API: Get Snapshot */ /* ... */ int SQL_API_FN sqlmonss ( unsigned long version, _SQLOLDCHAR *reserved, sqlma *sqlma_ptr, unsigned long buffer_length, void *buffer_area, sqlm_collected *collected, struct sqlca *sqlca); /* ... */ |
Generic API Syntax
/* File: sqlmon.h */ /* API: Get Snapshot */ /* ... */ int SQL_API_FN sqlgmnss ( unsigned long reserved_lgth, struct sqlca *sqlca, sqlm_collected *collected, void *buffer_area, unsigned long buffer_length, sqlma *sqlma_ptr, _SQLOLDCHAR *reserved, unsigned long version); /* ... */ |
API Parameters
If requesting data for a version higher than the current server, the database monitor only returns data for its level (see the server_version field in SQLM-COLLECTED).
Note: | If SQLM_DBMON_VERSION1 is specified as the version, the APIs cannot be run remotely. |
Sample Programs
Usage Notes
If an alias for a database residing at a different instance is specified, an error message is returned.
For detailed information about the use of the database monitor APIs, and for a summary of all database monitor data elements and monitoring groups, see the System Monitor Guide and Reference.
See Also
sqlmon - Get/Update Monitor Switches