Restart a database from a live backup made to a separate computer from the primary computer that is running your production database.
You must have SQL Anywhere installed on the secondary computer.
You must have the BACKUP DATABASE system privilege.
Copy the full backup transaction log file and the live backup transaction log to a directory where they can be applied to the backup copy of the database file.
Rename or delete the current transaction log file whose name matches the expected transaction log file name, if one exists.
Start the database server with the -ad option to apply the transaction logs in the directory created in step 1 and bring the database up to date:
dbeng16 "database-name.db" -ad directory-name
The database server shuts down automatically once the transaction log is applied.
Start the database server in the normal way, allowing user access. Any new activity is written to a new transaction log.
Run a live backup of the transaction log to the secondary computer.
dbbackup -l path\filename.log -c "connection-string"
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|