DB2STATDEC SAP (DB2/390: Buffer Pool Tuning: Table Categorisation) Structure details
Description: DB2/390: Buffer Pool Tuning: Table Categorisation
Structure field list including key, data, relationships and ABAP select examples
DB2STATDEC 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/390: Buffer Pool Tuning: Table Categorisation" 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_DB2STATDEC TYPE DB2STATDEC.
The DB2STATDEC table consists of various fields, each holding specific information or linking keys about DB2/390: Buffer Pool Tuning: Table Categorisation data available in SAP. These include RNAME (Name of the pool or cluster), DBNAME (Database name), TSNAME (Name of the tablespace), UPDCNT (No. of UPDATE commands).. 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 DB2STATDEC 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 |
TNAME | DB2 table name | DB2TABNAME | CHAR | 18 | CHAR18 | ||||
RNAME | Name of the pool or cluster | DBSTATSQLT | CHAR | 30 | Assigned to domain | AS4TAB | |||
DBNAME | Database name | DB2DBNAME | CHAR | 8 | D2DBNAME | ||||
TSNAME | Name of the tablespace | DB2TSNAME | CHAR | 8 | CHAR8 | ||||
UPDCNT | No. of UPDATE commands | UPDCNTD | DEC | 12 | DEC12 | ||||
DELCNT | No. of DELETE attempts | DELCNTD | DEC | 12 | DEC12 | ||||
INSCNT | No. of INSERT attempts | INSCNTD | DEC | 12 | DEC12 | ||||
FETCHES | DB2 for OS/390: Number of fetches | DB2FETCHES | DEC | 12 | DEC12 | ||||
DIR_FETCH | Number of FETCHes for direct read commands (SELECT SINGLE) | DIRFETCHD | DEC | 12 | DEC12 | ||||
SEQ_FETCH | Number of FETCHes for sequential read commands | SEQFETCHD | DEC | 12 | DEC12 | ||||
SEQ_ROW | Number of records read at sequential read operations | SEQROWD | DEC | 12 | DEC12 | ||||
BUF | Field type char, length 1 | DB2CHAR01 | CHAR | 1 | DB2CHAR01 | ||||
NPAGES | Number of pages on which rows of the table appear | DB2NPAGESD | DEC | 12 | DB2DEC12 | ||||
BPOOL | Name of the DB2 buffer pool currently used for the TS | DB2BPCURR | CHAR | 8 | DB2BPNAME | ||||
BPSUG | Suggested DB2 buffer pool | DB2BPSUG | CHAR | 8 | DB2BPNAME | ||||
RECLENGTH | Maximum length (in bytes) of any record in the table | DB2RECLEN | INT4 | 10 | |||||
EXECUTES | Sum of execution of updates, inserts, deletes and fetches | DB2EXECS | DEC | 12 | DEC12 | ||||
ACCESS_FR | DB2 OS/390: Access frequency: max(executes , affected rows) | DB2ACCFREQ | NUMC | 10 | DB2NUMC10 | ||||
ACCESS_TY | DB2 for OS/390: Access type: random or sequential | DB2ACCTYPE | CHAR | 10 | DB2CHAR10L | ||||
PERC_CHAN | DB2/390: changes vs. all executions in percent | DB2CHANGES | NUMC | 5 | DB2NUMC05 | ||||
SIZE | DB2 for OS/390: Size category of the table (small, large) | DB2SIZE | CHAR | 6 | DB2CHAR06L | ||||
CATEGORY | DB2 for OS/390: Table category | DB2TABCAT | CHAR | 2 | DB2TABCAT | ||||
SIZE_KB | DB2 for OS/390: Table size ( pages * reclength / 1024 ) | DB2TABSIZE | DEC | 12 | DEC12 | ||||
CARDF | Total number of rows in the table | DB2CARDFD | DEC | 12 | DB2DEC12 |
Key field | Non-key field |
How do I retrieve data from SAP structure DB2STATDEC using ABAP code?
As DB2STATDEC 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 DB2STATDEC as there is no data to select.How to access SAP table DB2STATDEC
Within an ECC or HANA version of SAP you can also view further information about DB2STATDEC 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