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 服务器 - 数据库管理 » 启动并连接到数据库 » 运行数据库服务器 » 运行经过验证的 SQL Anywhere 应用程序 » 开发经过验证的应用程序

 

升级经过验证的数据库

升级或重建数据库时,能够保留验证信息的唯一方法是将验证语句存储在文件 authenticate.sql 中。

升级实用程序不能将数据库升级到版本 11 或更高

无法使用升级实用程序 (dbupgrad) 将 9.0.2 或更早版本的数据库升级到版本 10 或更高。要将较旧版本的数据库升级到版本 11 或更高,您必须重建数据库,方法是先执行卸载然后重装数据库。请参见升级 SQL Anywhere

install-dir\scripts 目录中创建名为 authenticate.sql 的文件,其中包含以下内容:

SET OPTION PUBLIC.database_authentication = 'authentication-statement'
go

文件中必须有 go;否则,将忽略该语句。

有关字符串 authentication-statement 内容的信息,请参见database_authentication [数据库]