Contents Index The Rebuild utility The Server Location utility

ASA Database Administration Guide
  Database Administration Utilities
    The Rebuild utility

Rebuilding a database using the rebuild batch or command file


Syntax 

rebuild old-database new-database [ DBA-password ]

See also 

Unloading a database using the dbunload command-line utility

Creating a database using the dbinit command-line utility

The Interactive SQL utility

Description 

This batch file, command file, or shell script uses dbunload to rebuild old-database into new-database. This is a simple script, but it helps document the rebuilding process, and provides a basis for customization. Both database names should be specified without extensions. An extension of .db is automatically added.

You can use dbunload with the -ar option to carry out unloading and reloading without using the rebuild batch file.

The DBA-password must be specified if the password to the DBA user ID in the old-database is not the initial password SQL.

Rebuild runs the dbunload, dbinit, and Interactive SQL commands with the default options. If you need different options, you will need to run the three commands separately.

Exit codes are 0 (success) or non-zero (failure).

This utility accepts @filename parameters. For more information, see @filename server option.


Contents Index The Rebuild utility The Server Location utility