Returns information about the database snapshot switch state.
The schema is SYSPROC.
If the null value is specified, -1 is set implicitly.
The function returns a table as shown in the following section.
Column name | Data type | Description or corresponding monitor element |
---|---|---|
SNAPSHOT_TIMESTAMP | TIMESTAMP | snapshot_timestamp - Snapshot timestamp |
UOW_SW_STATE | SMALLINT | State of the unit of work monitor recording switch (0 or 1). |
UOW_SW_TIME | TIMESTAMP | If the unit of work monitor recording switch is on, the date and time that this switch was turned on. |
STATEMENT_SW_STATE | SMALLINT | State of the SQL statement monitor recording switch (0 or 1). |
STATEMENT_SW_TIME | TIMESTAMP | If the SQL statement monitor recording switch is on, the date and time that this switch was turned on. |
TABLE_SW_STATE | SMALLINT | State of the table activity monitor recording switch (0 or 1). |
TABLE_SW_TIME | TIMESTAMP | If the table activity monitor recording switch is on, the date and time that this switch was turned on. |
BUFFPOOL_SW_STATE | SMALLINT | State of the buffer pool activity monitor recording switch (0 or 1). |
BUFFPOOL_SW_TIME | TIMESTAMP | If the buffer pool activity monitor recording switch is on, the date and time that this switch was turned on. |
LOCK_SW_STATE | SMALLINT | State of the lock monitor recording switch (0 or 1). |
LOCK_SW_TIME | TIMESTAMP | If the lock monitor recording switch is on, the date and time that this switch was turned on. |
SORT_SW_STATE | SMALLINT | State of the sorting monitor recording switch (0 or 1). |
SORT_SW_TIME | TIMESTAMP | If the sorting monitor recording switch is on, the date and time that this switch was turned on. |
PARTITION_NUMBER | SMALLINT | node_number - Node number |