DB2LOCKRES SAP (Resources locked by a thread) Structure details
Description: Resources locked by a thread
Structure field list including key, data, relationships and ABAP select examples
DB2LOCKRES is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Resources locked by a thread" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_DB2LOCKRES TYPE DB2LOCKRES.
The DB2LOCKRES table consists of various fields, each holding specific information or linking keys about Resources locked by a thread data available in SAP. These include T3DBNAME (Name of the database), T3OBNAME (Name of the object associated with the database), T3LOCKS (No. of locks held and susp. on the database/obj. combination), T3TYPE (Type of lock held on a resource).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
SAP DB2LOCKRES structure fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
T3ACE | ACE ID of the thread | DB2ACEID | RAW | 4 | DB2RAW04 | ||||
T3DBNAME | Name of the database | DB2T3DBNAM | CHAR | 8 | DB2CHAR08 | ||||
T3OBNAME | Name of the object associated with the database | DB2T3OBNAM | CHAR | 18 | DB2CHAR18 | ||||
T3LOCKS | No. of locks held and susp. on the database/obj. combination | DB2T3LOCKS | NUMC | 5 | DB2NUMC05 | ||||
T3TYPE | Type of lock held on a resource | DB2T3TYPE | CHAR | 8 | DB2CHAR08 | ||||
T3STATE | State of the lock held on the resource | DB2T3STATE | CHAR | 3 | DB2CHAR03 | ||||
T3DURAT | Duration of a lock | DB2T3DURAT | CHAR | 16 | DB2CHAR16 | ||||
T3SUSP | Whether the thread is suspended waiting for a lock | DB2T3SUSP | CHAR | 9 | DB2CHAR09 | ||||
T3FUNCT | IRLM function request | DB2T3FUNCT | CHAR | 16 | DB2CHAR16 | ||||
T3COLL | Name of the package collection | DB2T3COLL | CHAR | 18 | DB2CHAR18 | ||||
T3PACK | Package identifier | DB2T3PACK | CHAR | 8 | DB2CHAR08 | ||||
T3CONST | Consistency token of the package | DB2T3CONST | CHAR | 19 | DB2CHAR19 | ||||
T3PLLCK | Indicates the kind of lock for the resource | DB2T3PLLCK | CHAR | 6 | DB2CHAR06 | ||||
T3PART | Partition of the locked resource | DB2T3PART | NUMC | 5 | DB2NUMC05 | ||||
T3SUBP | Subpage number of the index page lock | DB2T3SUBP | NUMC | 5 | DB2NUMC05 | ||||
T3ROW | Record ID within the page of the locked resource | DB2T3ROW | NUMC | 5 | DB2NUMC05 | ||||
T3PAGE | Page number of the locked resource | DB2T3PAGE | NUMC | 9 | DB2NUMC09 | ||||
T3BPID | Buffer pool ID of the locked resource | DB2T3BPID | CHAR | 8 | DB2CHAR08 | ||||
T3RMID | RMID of the group databases exception update lock | DB2T3RMID | CHAR | 8 | DB2CHAR08 | ||||
T3HASH | Hash class number of the group database exception upd. lock | DB2T3HASH | NUMC | 8 | DB2NUMC08 | ||||
DS_MEMBER | 0 |
Key field | Non-key field |
How do I retrieve data from SAP structure DB2LOCKRES using ABAP code?
As DB2LOCKRES is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on DB2LOCKRES as there is no data to select.How to access SAP table DB2LOCKRES
Within an ECC or HANA version of SAP you can also view further information about DB2LOCKRES and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects