Thread Locks Owned

Use Thread Locks Owned attributes to view detailed information about all the locks and claims owned by an individual thread.

AGNT ASID The address space ID (ASID) of the agent.

Authorization ID The authorization ID.

Authorization ID (Unicode) The primary authorization ID from connection or sign-on that identifies the execution privileges an application has to a DB2 object or service. Valid format is alphanumeric with a maximum of 128 characters.

Claim Class The type of claim class. Possible claim classes are:
CS
Cursor stability
RR
Repeatable read
Write
Write access
Claim Type The type of object that is claimed. Possible claim types are:
TS
Tablespace
TS LPRT
Tablespace logical partition
TS PART
Tablespace partition
IX
Index space
IX LPRT
Index space logical partition
IX PART
Index partition

Collection ID (Unicode) The collection ID. This field is blank for DBRM. Valid format is alphanumeric, with a maximum of 128 characters.

Connection ID Identifies the connection of an application to a DB2 system.

Connection Type The connection type.

Possible values are:
Batch
The MVS jobname and ASID.
Note: For threads from remote DB2, the MVS job name is N/A.
DBAccess
Database access thread, requested by an allied-distributed thread.
IMS
The IMS region number, transaction name, region name, and terminal ID (LTERM).
MASS
IMS.
RRSAF
The MVS job name and ASID.
Note: For threads from remote DB2, the MVS job name is N/A.
SASS
CICS.
System
The originating DB2 job name and the resource manager that is the source of the thread. An additional line below the Attach line identifies the user thread, if any, being served by the system thread.
TSO
The TSO user ID and region ASID.
Unknown
Unknown.
Utility
No additional information.
WLM
Workload Manager (WLM).

Correlation ID The DB2 Correlation ID.

DB2 ID The name of a DB2 subsystem.

Elapsed time Shows the elapsed time in milliseconds.

End User ID The user ID of the workstation end user. This user ID can be different from the authorization ID used to connect to DB2. This field contains blanks if the client does not supply this information (DB2 field name: QWHCEUID).

Job Name The job name that is associated with a thread.

Lock Claim Resource The name of the object which is locked or claimed. The resource name can include the database name, pageset name, partition number, page number, record id (RID), collection ID, package name, or plan name:
  • DB=database name can be represented as DBID=identifier.
  • PS=pageset name can be represented as PSID=identifier.
  • DBID represents the decimal identifier of the database.
  • PSID represents the decimal identifier of the table space or index space.
Lock Level The level or mode of the lock request. This information describes the level of resource access demanded by the lock request. Possible lock levels are:
IS Intent share
IX Intent exclusive
NSU Non-shared Update
S Share
SIX Share intent exclusive
U Update
UNS Unprotected shared
X Exclusive
Lock Type The lock type of the lock request. Possible lock types are:
Table 1. Lock types
Lock type Description Explanation
ALBP Alter buffer pool lock A lock on a buffer pool during execution of an ALTER BUFFERPOOL command.
BIND Bind lock An autobind/remote bind lock.
BPPS Buffer Manager Pageset RR P-LOCK A buffer manager pageset lock.
CCAT CATMAINT convert catalog lock This lock is acquired when catalog conversion is performed.
CDIR CATMAINT convert directory lock This lock is acquired when directory conversion is performed.
CDRN Cursor Stability drain lock This lock is acquired to drain all CS read access to an object.
CMDS DB2® Command Serialization lock A DB2 Command Serialization lock.
CMIG CATMAINT migration lock This lock is acquired when catalog migration is performed.
COLL Collection lock A collection lock.
DBDL DBD load lock A database descriptor load lock.
DBEX Database exception LPL/GRECP lock A lock on a either a "Logical page list" or "Group buffer pool recovery pending" database exception status. This lock is used only in a data sharing environment.
DBXU DB exception update lock A lock used for updating database exception status.
DGTT DGTT URID lock This lock is acquired to protect segments that belong to a Declared Global Temporary Table (DGTT). These segments are deallocated during Commit 1 by logging them and serializing them using the Unit of Recovery ID (URID) lock.
DPAG DB2 page lock A page lock in a tablespace. When programs read data or update data, they acquire a page lock containing the data.
DPLK 32K Desperation Pool lock A 32K Desperation Pool lock.
DSET Partitioned lock A partitioned tablespace contains one or more partitions (up to 64). A partitioned table space is created when you create a tablespace using the SQL CREATE TABLESPACE statement with the NUMPARTS parameter. Only one table can be stored on a partitioned tablespace. Each partition contains one part of a table. The partitioned lock only locks the partition with the data being referenced.
DTBS Database lock A lock on the database.
GRBP Group BP start/stop lock A group buffer pool start/stop lock.
HASH Hash anchor lock A hash anchor lock.
HPSP Header Page Bucket or Stored Procedure Command lock A Header Page Bucket lock or a Stored Procedure Command lock.
IEOF Index EOF lock A lock acquired at index end of file.
IPAG Index page lock A page lock in an index space. When application programs read or update data, they acquire a lock on the page containing the index when indexing is used.
IXKY Index key lock An index key lock.
LBLK LOB lock An LOB lock.
LPLR LPL Recovery lock An LPL Recovery lock.
MDEL Mass delete lock This lock is acquired when doing a mass delete from a table (for example, when you DELETE FROM a table) within a segmented tablespace. It is used to prevent another user from reusing freed segments before a delete operation is committed.
PALK Partition lock A partition lock.
PBPC Group BP level castout P-lock A physical lock acquired when a castout of a group buffer pool occurs. Castout is the process of writing pages in the group buffer pool out to DASD. This lock is used only in a data sharing environment.
PCDB DDF CDB P-lock A Distributed Data Facility communication database physical lock. This lock is used only in a data sharing environment.
PDBD DBD P-lock A database descriptor physical lock. This lock is used only in a data sharing environment.
PDSO Pageset or partitioned pageset open lock If the data set supporting the tablespace that is referenced by the application is not opened, the program will acquire a lock to open the data set. The data set will stay open if CLOSE=NO is defined in the SQL statement creating the tablespace.
PITR Index manager tree P-lock An index manager tree physical lock. This lock is used only in a data sharing environment.
PPAG Page P-lock A physical lock on a page. This lock is used only in a data sharing environment.
PPSC Pageset/partition level castout P-lock A pageset/partition level castout physical lock. This lock is used only in a data sharing environment.
PPSP Pageset/partition P-lock A pageset/partition level castout physical lock. This lock is used only in a data sharing environment.
PRLF RLF P-lock A Resource Limit Facility physical lock. This lock is used only in a data sharing environment.
PSET Pageset lock A pageset can be a tablespace or indexspace. A pageset containing DB2 tables is a tablespace. A pageset containing DB2 index structure is an indexspace. A pageset can be simple or partitioned. This lock type is for the simple pageset only.
PSPI Pageset piece lock A pageset is a collection of pageset pieces. Each pageset piece is a separate VSAM data set. A simple pageset contains from 1 to 32 pieces. Each piece of a simple pageset is limited to 2 GB. Whenever a simple pageset piece reaches this size, another piece is allocated and the pageset grows. This is a lock on the expanded pageset piece.
RDBD Repair DBD Test/Diagnose This lock is acquired when REPAIR DBD REBUILD is running.
RDRN Repeatable Read drain lock This lock is acquired to drain all RR access to an object.
RGDA Retry Getpg During Abort
ROW Row lock A lock on a row.
RSTR SCA restart lock A lock on SCA access for restart/redo information.
SDBA Start/stop lock on DBA table A lock on the table, tablespace, or database when a CREATE/DROP is being processed against these objects.
SKCT Skeleton cursor table lock A lock on the application plan.
SKPT Skeleton package table lock A lock on the application package.
SPRC Sys Level PIT Recovery lock A Point In Time (PIT) recovery lock.
SREC Log range lock DB2 writes a record in the log range tablespace (SYSLGRNG) every time a tablespace is opened and updated, and updates SYSLGRNG whenever that tablespace is closed. The record contains the opening and/or closing log RBA (relative byte address) for the tablespace. When DB2 writes to SYSLGRNG, the program acquires a lock on the tablespace with updates.
TABL Table lock A lock on the table which resides in a segmented tablespace.
UIDA Util I/O Damage Assessment
UNDT Undetermined lock A lock that is not any of the other listed lock types.
UTEX Utility exclusive execution lock A utility exclusive execution lock.
UTID Utility UID lock A utility identifier lock.
UTOB Utility object lock A utility object lock.
UTSE Utility serialization lock This lock is required when running utility jobs.
WDRN Write drain lock This lock is acquired to drain all write access to an object.
XMLK XML lock An XML lock.

LUWID The logical unit of work ID (LUWID) for a thread.

This value consists of two parts: the logical unit of work ID (luw-id) and a token. The token can be used in place of the luw-id in any DB2 command that accepts luw-id as input. Format:
luw-id=token
The luw-id consists of the network name, the originating VTAM® LUNAME, and a unique identifier (separated by periods). Thus, the Luwid field displays data such as the following:
USCACO01.O2D22A.A1FE8E04B9D4=8

MVSID The MVS ID.

Originating System ID The managed system name of the agent. Valid format is alphanumeric, with a maximum of 32 characters; for example, DB91:SYS1:DB2.

Package DBRM (Unicode) The package DBRM name.

Plan The plan name.

Resource Type The type of resource can be C for Claim or L for Lock.

Time Stamp Represents the end of data collection or the end of an interval, and is the local time where the system is running.

Valid format is MM-DD-YY HH:MM:SS, where:
  • M = Month
  • D = Day
  • Y = Year
  • H = Hour
  • M = Minute
  • S = Second
For example, 07-16-12 14:58:29 indicates that data collection ended on July 16th, 2012, at 14:58:29 PM.

Total Locks The number of locks of the same lock type owned by the thread.

Uniqueness Value The instance number: When concatenated with the fully qualified network name, it uniquely identifies a distributed thread (DB2 field name: QWHSLUUV).

Uniqueness Value 2 The DB2 thread uniqueness value. For internal use.