Returns lock waits information from an application snapshot.
The schema is SYSPROC.
If the null value is specified, -1 is set implicitly.
If both parameters are set to NULL, the snapshot is taken only if a file has not previously been created by the SNAPSHOT_FILEW stored procedure for the corresponding snapshot API request type.
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 |
AGENT_ID | BIGINT | agent_id - Application handle (agent ID) |
SUBSECTION_NUMBER | BIGINT | ss_number - Subsection number |
LOCK_MODE | BIGINT | lock_mode - Lock mode |
LOCK_OBJECT_TYPE | BIGINT | lock_object_type - Lock object type waited on |
AGENT_ID_HOLDING_LK | BIGINT | agent_id_holding_lock - Agent ID holding lock |
LOCK_WAIT_START_TIME | TIMESTAMP | lock_wait_start_time - Lock wait start timestamp |
LOCK_MODE_REQUESTED | BIGINT | lock_mode_requested - Lock mode requested |
PARTITION_NUMBER | SMALLINT | node_number - Node number |
LOCK_ESCALATION | SMALLINT | lock_escalation - Lock escalation |
TABLE_NAME | VARCHAR(128) | table_name - Table name |
TABLE_SCHEMA | VARCHAR(128) | table_schema - Table schema name |
TABLESPACE_NAME | VARCHAR(128) | tablespace_name - Table space name |
APPL_ID_HOLDING_LK | VARCHAR(128) | appl_id_holding_lk - Application ID holding lock |