Verify consistency

Because of the time required for this check and the possible contention that the check can cause, schedule this check for times when activity is at its lowest. You must perform this check just before you create a level-0 backup.

Run the commands shown in the following table as part of the consistency check.
Table 1. Checking data consistency
Type of validationCommand
System catalog tablesoncheck -cc
Dataoncheck -cD dbname
Extents oncheck -ce
Indexesoncheck -cI dbname
Reserved pagesoncheck -cr
Logical logs and reserved pages oncheck -cR
Metadata and smart large objectsoncheck -cs

You can run each of these commands while the database server is in online mode. For information about how each command locks objects as it checks them and which users can perform validations, see oncheck in the HCL OneDB™ Administrator's Reference.

In most cases, if one or more of these validation procedures detects an error, the solution is to restore the database from a dbspace backup. However, the source of the error might also be your hardware or operating system.