我想知道是否有人在尝试连接DB2数据库时遇到以下错误:
连接失败。
错误类型:Odbc错误。尝试进行Odbc操作:
的SQLDriverConnect。 [HY000:-1334:在SQLHANDLE上] [MicroStrategy] [ODBC DB2 Wire Protocol驱动程序] [DB2]未知错误:SQLCODE -1334
我查看了DB2文档,但无法找到SQL代码错误。我无法弄清楚发生了什么。我是否必须更新或降级ODBC驱动程序?
答案 0 :(得分:0)
不确定您正在查看哪些文档,但请参阅:
$ db2 \? sql1334
SQL1334N The database server or DB2 Connect server cannot be used to
route a remote request to a second database server in this
configuration.
Explanation:
An attempt was made to route a request through a database server node or
DB2 Connect server node using an unsupported combination of client and
target database server, or from a non-LUW DRDA client to a DRDA target
database through a LUW database server or DB2 Connect server. The
request must be routed directly from the client to the node on which the
target database is running.
User response:
Uncatalog the database at the client machine and then catalog the
database specifying the node on which the database actually resides.
Ensure that the node is also cataloged.
答案 1 :(得分:0)
在版本9.3.0中,有一个与Windows版本9.2.1和DB2相关的问题的错误修正,您可以看到here
或者只是你有错误的配置(即数据库名称),就像this discussion中的人一样。