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.
cubrid checkdb options database_name
options : [-S|--SA-mode | -C|--CS-mode] [-r | --repair]
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