If you need to recover your database and you have multiple transaction logs, you must apply the transaction log files to the backup copy of your database in the correct order.
You can use any of the following methods to apply transaction logs in the correct order:
Use the -a server option to apply each log individually to the backup copy of the database. You can use the Transaction Log utility (dblog) to determine the order in which transaction log files were generated. The utility generates and displays the earliest log offset in the transaction log, which can be an effective method for determining the order in which to apply multiple log files. See -a dbeng12/dbsrv12 database option.
Use the -ad server option to specify the location of the transaction log files. The database server determines the correct order for applying the transaction logs to the backup copy of the database based on the log offsets. See -ad dbeng12/dbsrv12 database option.
Use the -ar server option to have the database server apply log files associated with the database that are located in the same directory as the transaction log. The transaction log location is obtained from the database. The database server determines the correct order for applying the transaction logs to the backup copy of the database based on the log offsets. See -ar dbeng12/dbsrv12 database option.
Use the Log Translation utility (dbtran) to translate one or more transaction logs into a .sql file that can be applied to the backup copy of the database. See Transaction Log utility (dblog).
Recover a database with multiple transaction logs using the -ad server option
Recover a database with multiple transaction logs using the -a server option
Recover a database with multiple transaction logs using the dbtran utility
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |