The following procedure describes how to recover a consolidated database by applying each transaction log to the database. To have the SQL Anywhere database server automatically recover the consolidated database, see Recover consolidated databases automatically.
Make a copy of the database and transaction log file. This procedure assumes that previous backups of the database file have been made and are available, for example on tape.
Create a temporary directory.
Restore the most recent back up of the database (.db) file, not the transaction log file, from tape into a temporary directory.
In the temporary directory:
Start the backup copy of the database.
Apply the old transaction logs using the -a option.
Shut down the database.
Start the database using the current transaction log and the -a option to apply the transactions and bring the database file up to date.
Shut down the database.
Back up the database.
Copy the database to the production directory.
Start the database.
Any new activity is appended to the current transaction log.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |