【发布时间】:2018-07-26 20:59:35
【问题描述】:
我正在尝试通过 Python 连接到 DB2 JDBC 数据库,并提供 SSLClientKeystoredb。
这就是我尝试连接数据库的方式:
import ibm_db
arg1 = "DRIVER={IBM DB2 ODBC DRIVER};" + "DATABASE=databasename;HOSTNAME=" + "server" + ";PORT=" + "111111" + ";PROTOCOL=TCPIP;UID=" + "userId" + ";PWD=" + "password" + ";SECURITY=ssl" + ";SSLClientKeystoredb=" + "C:/Users/path/db2_ssl_keydb.kdb" + ";SSLClientKeystash=" + "C:/Users/path/db2_ssl_keydb.sth"
conn=ibm_db.connect(arg1, "", "")
我不断收到此错误:
SQLCODE=-1109M][CLI Driver] SQL1109N The command was not processed because the database manager failed to load the following DLL: "GSKit Error: 202". SQLSTATE=42724
我安装了 GSKit8 Crypt 和 GSKit SSL 64 位。任何帮助将不胜感激!
【问题讨论】: