sybase dbunload使用会导致身份验证违规'

时间:2014-07-14 14:31:38

标签: authentication sybase sqlanywhere

一切!我有一个数据库,想要卸载它并将其重新加载到同一个文件中。 我使用Sybase Anywhere 16实用程序dbunload.exe。命令是:

dbunload.exe -c "UID=dba;PWD=sql;DBF=mydb.db" -ar .

该实用程序开始工作,输出为:

SQL Anywhere Unload Utility Version 16.0.0.1915
Connecting and initializing
Unloading user and group definitions
Unloading spatial units of measure
Unloading spatial reference systems
Unloading sequences
Unloading table definitions
Unloading text configurations
Unloading materialized view definitions
Unloading index definitions
Unloading functions
Unloading view definitions
Unloading procedures
Unloading triggers
Unloading SQL Remote definitions
Unloading MobiLink definitions
Creating new database
***** SQL error: Authentication violation

问题是:如何强制dbunload加载db?

PS:我有2个数据库 - 一个用于sybase 11,另一个用于sybase 16.来自sybase 11的安装的dbunload适用于11的数据库。但对于16的db版本,我遇到了上述问题。

1 个答案:

答案 0 :(得分:0)

问题在于Sybase安装不是开发人员之一。因此http://dcx.sybase.com/index.html#sa160/en/dbadmin/dboptions-s-4985733.html

This option only takes effect when you are using the OEM Edition of the SQL Anywhere database server.
To authenticate a database, set the database_authentication option for the database:

Example:
SET OPTION PUBLIC.database_authentication =
 'company = company-name;
 application = application-name;
 signature = database-signature';