ASA Database Administration Guide
Database Administration Utilities
The Rebuild utility
rebuild old-database new-database [ DBA-password ]
Unloading a database using the dbunload command-line utility
Creating a database using the dbinit command-line utility
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.