Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Database Administration » Starting and Connecting to Your Database » The database server » Database options


-a database option

Applies the named transaction log. The -a database option must be specified after the database-file, and applies only to that database.

{ dbsrv11 | dbeng11 } [ server-options ] database-file -a log-filename ...
Applies to

All operating systems and database servers.


This option is used to recover from media failure on the database file. When this option is specified, the database server applies the log and then shuts down—it doesn't continue to run. If you need to apply multiple transaction logs, you must know the correct order in which to apply them when using -a. The database server automatically applies multiple transaction logs in the correct order if you use the -ad or -ar option instead of -a.

Specifying a cache size when starting the server can reduce recovery time.

See Backup and data recovery.

See also

The following example, entered all on one line, applies the log file demo.log to a backup copy of the sample database.

dbeng11 "c:\backup\demo.db" -a "c:\backup\demo.log"