0

我想知道是否有人在尝试连接到 DB2 数据库时遇到过以下错误:

连接失败。

错误类型:odbc 错误。尝试了 odbc 操作:

SQLDriver 连接。[HY000:-1334: 在 SQLHANDLE 上] [MicroStrategy][ODBC DB2 有线协议驱动程序][DB2]未知错误:SQLCODE -1334

我查看了 DB2 文档,但找不到 SQL 代码错误。我不知道发生了什么事。我是否必须更新或降级 ODBC 驱动程序?

4

2 回答 2

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.
于 2013-10-29T18:34:27.347 回答
0

在 9.3.0 版中,有一个针对 Windows 上的 9.2.1 版和 DB2 相关问题的错误修复,您可以在此处看到

或者只是你有错误的配置(即数据库名称),就像这个讨论中的人一样。

于 2013-10-30T10:35:59.060 回答