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

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 数据库管理 » 启动并连接到数据库 » 数据库服务器 » 数据库选项

 

-as 数据库选项

指定数据库应在应用事务日志后继续运行(与 -ad 或 -ar 结合使用)。-as 数据库选项必须在 database-file 之后指定,并且仅应用于该数据库。

语法
{ dbsrv11 | dbeng11 } [ server-options ] database-file { -ad log-dir | -ar } -as  ...
适用于

所有操作系统和数据库服务器。

注释

必须结合 -ad 或 -ar 选项来指定 -as 选项。当包括 -as 时,数据库将在应用了事务日志后继续运行。

另请参见
示例

数据库服务器将事务日志文件应用于 mysample.db 数据库。在本示例中,因为指定了 -ar,数据库服务器将从数据库中获得事务日志的位置。数据库在应用日志文件后将继续运行。

dbeng11 "c:\mysample.db" -ar -as

数据库服务器将 backup 目录中的日志文件应用于 mysample.db 数据库。数据库在应用日志文件后将继续运行。

dbeng11 "c:\mysample.db" -ad "c:\backup" -as