Show TOC

db_checkLocate this document in the navigation structure

Use

Use this command to check the complete database structure on the basis of a data snapshot and clean up the data area.

The system checks the following:

  • Tables

  • Indexes

  • LOBs

  • History pages

Using the results of this check, the system removes unused pages and LOBs that are not referenced from the data area.

Prerequisites
Structure

db_check data snapshot [ID <snapshot_id>]

db_check data snapshot: The system creates a data snapshot of the data area and carries out the database structure check on this snapshot. This snapshot is automatically deleted by the system after the database structure check is finished.

db_check data snapshot ID <snapshot_id>: The system carries out the database structure check on the identified data snapshot.

Option

Description

<snapshot_id>

ID of the snapshot to be checked

Result

OK

<pages_used>

<blocks_released>

Value

Description

<pages_used>

Number of pages used by the database system

<blocks_released>

Number of unused pages and LOBs that are not referenced from the data area and therefore removed by the system

In the event of errors, see Reply Format.

More Information

Database Administration, Checking Database Structures