During a database structure check, the system checks the structural consistency of the database in the cache and the data area. Note that the semantic data model is not checked, which is why you cannot find logical errors with a database structure check.
Check the database structures once a week.
You are logged on to the database as database system administrator or as a DBM operator.
Select the database in the explorer tree.
In the context menu of the database, choose
Depending on your database size, database usage and general system environment, select the appropriate checking procedure.
Procedure |
Operational State |
Description |
Advantages |
Disadvantages |
---|---|---|---|---|
Check the complete database structure and clean up the data area |
ONLINE |
The system checks the following:
Using the results of this check, the system removes unused pages and LOBs that are not referenced from the data area. Internally, the system creates a 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. |
The system is available without any restrictions (no pages are locked). |
|
Check the complete database structure |
ONLINE |
The system checks the following:
|
In general, the check runs fast because its I/O operations have a high priority and a part of the data can be read from the cache. |
The system is only available with restrictions (pages are temporarily locked). This may significantly impact normal database operation. We recommend that you carry out the check in times of low database usage. |
Check a table |
ONLINE |
The system checks the specified table. Options:
|
In general, the check runs fast because its I/O operations have a high priority and a part of the data can be read from the cache. |
Depending on the options you choose, the system is only be available with restrictions (pages are temporarily locked). |
Check an index |
ONLINE |
The system checks the consistency of the specified index. Note that the consistency between index and table is not checked. |
- |
The index is temporarily locked. |
Check the complete database structure and clean up the data area in operational state ADMIN |
ADMIN |
The system checks the following:
Using the results of this check, the system removes unused pages and LOBs that are not referenced from the data area. |
You can use this check during a recovery (after restoring data backups). |
The system is not available for users during the check. |
You can perform database structure checks on a specified snapshot. Perform as described in Making Snapshots of the Data Area.
If the system finds errors, it displays an error message and writes the errors to the Database Errors log file (kernel log file). For more information, see Displaying Configuration and Log Files.
Database Administration, Checking Database Structures