Validate a database

You must have either DBA or VALIDATE authority to validate a database.

Caution

Validating a table or an entire database should be performed while no connections are making changes to the database; otherwise, errors may be reported indicating some form of database corruption even though no corruption actually exists.

To check the validity of an entire database (Sybase Central)
  1. Connect to the database as a user with DBA authority.

  2. In the left pane, select the database.

  3. From the File menu, choose Validate Database.

  4. Follow the instructions in the Validate Database Wizard.

Tip

You can also access the Validate Database Wizard from within Sybase Central using any of the following methods:

  • Right-clicking the database, and choosing Validate Database.

  • Selecting the database, and choosing Tools » SQL Anywhere 11 » Validate Database.

To check the validity of an entire database (SQL)
To check the validity of an entire database (command line)
Note

If you are checking the validity of a backup copy, run the database in read-only mode so that it is not modified in any way. You can only do this if there were no transactions in progress during the backup. See -r server option.