Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.2.1 |  CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 |  CUBRID 8.4.3 |  CUBRID 9.0.0 | 

Checking Database Consistency

Description

The cubrid checkdb utility is used to check the consistency of a database. You can use cubrid checkdb to identify data structures that are different from indexes by checking the internal physical consistency of the data and log volumes. If the cubrid checkdb utility reveals any inconsistencies, you must try automatic repair by using the --repair option.

Syntax

cubrid checkdb options database_name

options : [-S|--SA-mode | -C|--CS-mode]  [-r | --repair]

  • cubrid : An integrated utility for CUBRID service and database management.
  • checkdb : A utility that checks the data consistency of a specific database.
  • options : -S, -C and -r options are supported.
  • database_name : The name of the database whose consistency status will be either checked or repaired.
Option

Checking the database consistency in standalone mode (-S or --SA-mode)

The -S option is used to access a database in standalone, which means it works without processing server; it does not have an argument. If -S is not specified, the system recognizes that a database is running in client/server mode.

cubrid checkdb -S testdb

Checking the database consistency in client/server mode (-C or --CS-mode)

The -C option is used to access a database in client/server mode, which means it works in client/server process respectively; it does not have an argument. If -C is not specified, the system recognize that a database is running in client/server mode by default.

cubrid checkdb -C testdb

Repairing in case of a database consistency problem (-r or --repair)

The -r option is used to repair an issue if a consistency error occurs in a database.

cubrid checkdb -r testdb