The following procedure assumes that you do not have any incremental backups of the transaction log that you need to apply as part of the recovery process. For information about recovering a database when you have backed up multiple copies of the transaction log, see Recovering a database with multiple transaction logs.
Start a personal database server.
For example, the following command starts a database server named restore:
dbeng11 -n restore |
Start Sybase Central and connect to the utility database.
On the Identification tab of the Connect window, enter a user ID of DBA and a password of sql. Leave all other fields on this tab blank.
Click the Database tab and enter a database name of utility_db. Leave all other fields on this tab blank.
Click OK.
Choose Tools » SQL Anywhere 11 » Restore Database.
Follow the instructions in the wizard.
Start a personal database server.
For example, the following command starts a database server named restore:
dbeng11 -n restore |
Start Interactive SQL and connect to the utility database.
On the Identification tab of the Connect window, enter a user ID of DBA and a password of sql. Leave all other fields on this tab blank.
Click the Database tab and enter a database name of utility_db. Leave all other fields on this tab blank.
Click OK.
Execute the RESTORE DATABASE statement, specifying the archive root.
At this time, you can choose to restore an archived database to its original location (the default), or to a different computer with different device names using the RENAME clause. See RESTORE DATABASE statement.
The following statement restores a database from a tape archive to the database file c:\newdb\newdb.db.
RESTORE DATABASE 'c:\\newdb\\newdb.db' FROM '\\\\.\\tape0'; |
The following statement restores a database from an archive backup in file c:\backup\archive.1 to the database file c:\newdb\newdb.db. The transaction log name and location are specified in the database.
RESTORE DATABASE 'c:\\newdb\\newdb.db' FROM 'c:\\backup\\archive'; |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |