Db2 JDBC驱动程序加密方法或身份验证方法

问题描述 投票:3回答:1

我正在尝试将Db2数据库与ColdFusion连接。我正在Cloud上使用IBM Db2,并收到以下错误:

数据源的连接验证失败:“ DatabaseName”java.sql.SQLNonTransientConnectionException:[Macromedia] [DB2 JDBC驱动程序]未指定加密方法或认证方法您要连接的DB2服务器支持。根本原因是那:java.sql.SQLNonTransientConnectionException:[Macromedia] [DB2JDBC驱动程序]指定的加密方法或身份验证方法为您要连接的DB2服务器不支持]

coldfusion db2 ibm-cloud
1个回答
0
投票

通常来说,可能是由于未添加AuthenticationMethod属性而引起的。这里是有关它的一些相关信息。

使用DataDirect驱动程序连接到Db2仓库https://www.ibm.com/support/knowledgecenter/en/SSULQD_1.7.2/com.ibm.nz.hdp.doc/t_hdp_datadirect.html

<connectionURL>jdbc:ibm:db2://<your_hostname>:<port>;databaseName=bludb;AuthenticationMethod=encryptedPassword</connectionURL>

不支持指定的C&DS加密方法或身份验证https://www.ibm.com/support/pages/cds-encryptionmethod-or-authentication-specified-not-supported

Other AuthenticationMethods are:
AuthenticationMethod=clearText (the default),
AuthenticationMethod= encryptedPassword,
AuthenticationMethod=encryptedPasswordAES,
AuthenticationMethod=encryptedUIDPassword,
AuthenticationMethod= encrytpedUIDPasswordAES,

希望这会有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.