The following procedure describes how to automatically recover a consolidated database. To apply the transaction logs manually, see Recover consolidated databases manually.
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.
Restore the most recent backed up copy of the database (.db) file, not the transaction log file, from tape into a temporary directory.
In the temporary directory:
Start the database, applying the transaction logs using the -ad option.
When you specify the -ad option, the database server looks in the specified directory for the transaction logs for the database. It then determines the correct order to apply the logs based on the transaction log offsets.
Copy the current transaction log, to the temporary directory.
Start the database and apply the current transaction log.
Shut down the database server.
Back up the database and transaction log.
Copy database and transaction log files to the appropriate production directories.
Restart your system as normal.
Any new activity is appended to the current transaction log.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|