Previous Topic

Next Topic

verifydb Command—Clean Up Databases

The verifydb command performs clean up operations on one or more databases in an installation.

The command can do the following:

This command requires exclusive access to databases. Verify that there are no active sessions in the DBMS before continuing. If users are connected to the database, a runtime error is displayed. Shut down processes that maintain database connections, rmcmd and icesvr, before using this command.

Verifydb logs all of its actions to the terminal screen. It also logs to a verify log file, unless the -n (nologging) flag is used. The default log file is iivdb.log and is used unless another name is specified with the -lf option.

Note: Verifydb always outputs the log file to the II_CONFIG location. If II_CONFIG is not defined, it outputs to location: II_SYSTEM/ingres/files.

If the log file does not exist when you execute verifydb, the system creates it. If it does exist, verifydb appends to it. Since this file grows each time you execute verifydb with this log file, you should delete it occasionally to save disk space.

The verifydb command has the following format:

verifydb -mmode -sscope -ooperation [-n | -lflogfilename] [-v] [-uusername]

Previous Topic

Next Topic

verifydb Examples

This command cleans up all databases for which you are the DBA, removing all unrequired disk files, and logging all verifydb operations performed:

verifydb -mrun -sdba -opurge

This command runs in report mode, looking for expired tables in the database teach_examp:

verifydb -mreport -sdbname "teach_examp" -oexpired_purge

This command runs verifydb as the user fredk against all the databases for which fredk is the DBA, deleting temporary and expired tables:

verifydb -mrun -sdba -opurge -ufredk

This command drops references to the table new_benefits in the database new_employee:

verifydb -mrun -sdbname "new_employee" -odrop_table "new_benefits"

This command runs consistency checks on the DBMS catalogs for the iidbdb database. The command is run in report mode.

verifydb -mreport -sdbname "iidbdb" -odbms_catalogs

This command runs consistency checks on the DBMS catalogs for all databases that you own, with output going to the alternate log file checkdbs.log. The command is run in report mode.

verifydb -mreport -sdba -odbms_catalogs -lfcheckdbs.log


© 2007 Ingres Corporation. All rights reserved.