CHECKTSLEVEL
CHECKTSLEVEL syntax diagram
CHECKTSLEVEL allows you to select the level and frequency of checking for a target table space. Page checking in this way provides better use of computer resources because the integrity checks are performed when copies are made, instead of during a separate pass using a stand-alone utility. This option does not check data content. For information about performance considerations, see Page-integrity-checking-CHECKLVL.
If a issue occurs,
issues a warning message (BMC474 xx) specifying the nature of the issue and, if applicable, the page number. The job completes with a condition code based on CHECKERROR or, if CHECKERROR is not specified, based on CHECKERR.
For more information about BMC474 xx messages, see BMC-Common-Db2-repository.
If you do not specify CHECKTSLEVEL, the level of checking performed by
is determined by the current value of the CHECKLVL installation option, as follows:
- If CHECKLVL=2, the level of checking performed is the same as for CHECKTSLEVEL 2.
- If CHECKLVL=1, the level of checking performed is the same as for CHECKTSLEVEL 1.
- If CHECKLVL=0, the level of checking performed is the same as for CHECKTSLEVEL 0. CHECKLVL=0 is the installation option default.
CHECKTSLEVEL 0
When you specify CHECKTSLEVEL 0,
provides standard minimal checking. Specifically,
checks the page number, broken page indicator, consistency of the header and trailer bytes, and validity of the page’s log RBA (or LRSN with Db2 in a data sharing environment).
CHECKTSLEVEL 1
When you specify CHECKTSLEVEL 1,
provides intrapage integrity checks for all pages (header pages, space map pages, and data pages). These are performed for both application table spaces and catalog and directory table spaces.
When you specify CHECKTSLEVEL 1,
performs the following intrapage checks for the indicated page type as appropriate for the version of Db2 installed.
All page types | checks the following fields for all types of page:
|
Header pages | For header pages, checks the following items for agreement with values in the Db2 catalog:
Also, for header pages, verifies the following items:
also verifies that the header page fields HPGCLRSN, HPGLEVEL, and HPGPLEVL are within the current log range of the Db2 subsystem. |
Table space map pages | For table space map pages, verifies the following items:
|
Data pages | For data pages, verifies the following items:
|
CHECKTSLEVEL 2
When you specify CHECKTSLEVEL 2,
provides all of the intrapage integrity checks listed for CHECKTSLEVEL 1 and also performs interpage checks. These are performed for both application table spaces and catalog and directory table spaces.
The following rules apply to CHECKTSLEVEL2:
- CHECKTSLEVEL 2 is not available when you copy any of the following Db2 catalog or directory spaces:
- DSNDB06.SYSCOPY
- DSNDB01.SYSUTILX
- DSNDB01.DBD01
- DSNDB01.SYSDBDXA
- If CHECKTSLEVEL 2 is specified with SHRLEVEL CONCURRENT PREFERRED and a consistent point cannot be obtained or maintained, the level of checking falls back to CHECKTSLEVEL 1.
- If an incremental copy is produced as a result of using FULL AUTO or CHANGELIMIT, CHECKTSLEVEL 2 is reduced to CHECKTSLEVEL 1.
When you specify CHECKTSLEVEL 2,
performs the following interpage checks:
- Pointer records point to the correct overflow records.
- Table segment chains are correct and all allocated segments are on one chain (and only one chain) for segmented table space.
- HPGZNUMP agrees with the number of dictionary pages found.
- If the header does not indicate the existence of a dictionary, no dictionary pages or compressed data records are found.
- HPGSGSZ agrees with the SEGSIZE in the space map pages.
- Dictionary pages are in the range indicated by the HPGZNUM and HPGZNUMP fields of the associated header page.
For table space map pages,
checks the consistency of:
- SEGLENT values for segmented table spaces
- FOSMLENT values for non-segmented table spaces
When processing the Db2 catalog and directory spaces,
also checks:
- Hash chains in the directory
- Ring pointer chains in the catalog to verify that the chains are intact