It is recommended that you make backup copies of your database files before rebuilding a database. Also, verify that no other scheduled backups can rename the production database log. If the log is renamed, the transactions from the renamed logs must be applied to the rebuilt database in the correct order.
Using dbbackup -r, create a backup of the database and log, and rename the log.
For more information, see Backup utility (dbbackup).
Rebuild the backed up database on another computer.
Perform another dbbackup -r on the production server to rename the transaction log.
Run dbtran on the transaction log and apply the transactions to the rebuilt server.
For more information, see Log Translation utility (dbtran).
Shut down the production server and copy the database and log.
Copy the rebuilt database onto the production server.
Run dbtran on the log from Step 5.
Start the server on the rebuilt database, but do not allow users to connect.
Apply the transactions from Step 8.
Allow users to connect.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |