DB2THREADS SAP (DB2 Performance Monitor: Thread List) Structure details
Description: DB2 Performance Monitor: Thread List
Structure field list including key, data, relationships and ABAP select examples
DB2THREADS 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 "DB2 Performance Monitor: Thread List" 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_DB2THREADS TYPE DB2THREADS.
The DB2THREADS table consists of various fields, each holding specific information or linking keys about DB2 Performance Monitor: Thread List data available in SAP. These include HDATDAT (Date when sampling is taken), HDATTIM (Time when sampling is taken), HDLRESTIME (Time of last reset), ACE (Field type raw, length 8, 4 bytes).. 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 DB2THREADS 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 |
HDSUBSYSID | DB2 subsystem ID | DB2SWPSSID | CHAR | 4 | DB2CHAR04 | ||||
HDATDAT | Date when sampling is taken | DB2SWPATDT | DATS | 8 | DB2DATE | ||||
HDATTIM | Time when sampling is taken | DB2SWPATTM | TIMS | 6 | DB2TIME | ||||
HDLRESTIME | Time of last reset | DB2SWPLRTM | TIMS | 6 | DB2TIME | ||||
ACE | Field type raw, length 8, 4 bytes | DB2RAW04 | INT4 | 10 | DB2INT4 | ||||
JOBNAME | The job name of the thread. | DB2THDJOB | CHAR | 8 | DB2CHAR8 | ||||
DBPLAN | DB2 plan name | DB2WHCPLAN | CHAR | 128 | CHAR128 | ||||
AUTHID | The authorization ID under which the transaction is running | DB2WHCAID | CHAR | 128 | CHAR128 | ||||
CORRID | The correlation ID of the thread (IP address) | DB2WHCCV | CHAR | 16 | DB2CHAR16 | ||||
CONNID | The connection ID of the thread | DB2WHCCN | CHAR | 8 | DB2CHAR08 | ||||
THDSTAT | The status of the thread | DB2W0148AI | CHAR | 16 | DB2CHAR16 | ||||
FILLER | Field type char, length 8 | DB2CHAR08 | CHAR | 8 | DB2CHAR08 | ||||
SQLCNT | The total number of executed SQL statements | DB2THDSQL | INT4 | 10 | DB2INT4 | ||||
DBCOMMIT | The number of successful phase 2 or single-phase commits | DB2WACCOMM | INT4 | 10 | DB2INT4 | ||||
ABORT | Total number of rollback requests | DB2WACABRT | INT4 | 10 | DB2INT4 | ||||
GETPAGE | Number of Getpage Requests | DB2BACGET | INT4 | 10 | DB2INT4U | ||||
UPDPAGE | The number of times a buffer update occurs for the agent | DB2BACSWS | INT4 | 10 | DB2INT4U | ||||
LOCKS | The total number of currently hold locks. | DB2THDLOCK | INT4 | 10 | DB2INT4 | ||||
CPUTIME | The accumulated home CPU time a thread spent in DB2 | DB2WACAJST | INT4 | 10 | DB2INT4 | ||||
ELTIME | Time elapsed since DB2 thread was started | DB2THDELT | INT4 | 10 | DB2INT4 | ||||
LOCKMOD | The mode of the lock held on the resource | DB2LOCKMOD | CHAR | 6 | DB2CHAR06 | ||||
ACTTIME | Activity time (Class 1 elapsed time) | DB2THDTACT | CHAR | 16 | DB2CHAR16 | ||||
TIMEINDB2 | Percentage of time spent in DB2 | DB2INDB2 | CHAR | 8 | DB2TIMEP | ||||
PROCINDB2 | Percentage of time spent processing in DB2 | DB2PROCDB2 | CHAR | 8 | DB2TIMEP | ||||
WPTYPE | process type | DB2PROCTYP | CHAR | 11 | |||||
WPNUMBER | process ID | DB2PROCID | NUMC | 19 | |||||
WPID | Work process ID | DB2WPID | NUMC | 10 | DB2NUMC10 | ||||
ASHOST | Application server host name | DB2ASHOST | CHAR | 32 | DB2CHAR32 | ||||
THDREQ | Number of Requests Sent to DB2 | DB2W0148RC | INT4 | 10 | DB2INT4 | ||||
ADTHRSTA | Status of the thread | DB2DTHRSTA | CHAR | 22 | DB2CHAR22 | ||||
PRCINDB2 | Thread activity: % processing in DB2 | DB2PRCIN | CHAR | 10 | DB2CHAR10 | ||||
SSPINDB2 | Prozent der Zeit für die DB2-Verarbeitung (CPU-Zeit) | DB2SSPIN | CHAR | 10 | DB2CHAR10 | ||||
DS_MEMBER | Data sharing member to which the thread belongs to | 0 | |||||||
THDMLOCKS | Maximum locks held | 0 | |||||||
CONNNAME | Database connection name | 0 | |||||||
QMDAPLAT | Client platform from DB2's perspective | 0 | |||||||
QWHDRQNM | Client IP address from DB2's perspective | 0 | |||||||
SAPSID | SAP system ID (SAPSID) | 0 | |||||||
SAPSYS | SAP system number (SAPSYSTEM) | 0 | |||||||
ABAPREP | ABAP Program: Current Main Program | SYREPID | CHAR | 40 | Assigned to domain | PROGRAMM | |||
TXCODE | transaction / thread name | DB2TXNAME | CHAR | 80 | |||||
ENDUSER | SAP end-user ID | 0 | |||||||
J2EESERV | J2EE service type | 0 | |||||||
QWACPARR | Accounting records represents accounting rollup bucket | 0 | |||||||
QW0148CI | DB2 collection ID | 0 | |||||||
QW0148ST | Indicates the status of the conversation or socket | DB2W0148ST | CHAR | 2 |
Key field | Non-key field |
How do I retrieve data from SAP structure DB2THREADS using ABAP code?
As DB2THREADS 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 DB2THREADS as there is no data to select.How to access SAP table DB2THREADS
Within an ECC or HANA version of SAP you can also view further information about DB2THREADS 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