Oracle SQL 开发人员中的 DB2 数据库

我听说可以使用像 Oracle SQL developer 这样的客户端连接到大型机 DB2 数据库.我在网上查看过,似乎无法在 SQL 开发人员中找到执行此操作所需的连接器文件.谁能指导我到一个链接来完成这项工作?或者告诉我我是否只是在寻找错误的东西.我已经让连接器在 Oracle 中与 MySQL 数据库一起使用,所以我认为它与 DB2 数据库类似.

I've heard it's possible to connect to a mainframe DB2 database with a client like Oracle SQL developer. I've looked on-line and can't seem to find the connector files needed to do this in SQL developer. Can anyone direct me to a link to make this work? Or tell me if im just looking for the wrong thing to begin with. I've got the connector working with MySQL databases in Oracle, so I assumed it would be similar for a DB2 database.

推荐答案

连接到 Db2 的最简单方法是通过他们的 JDBC Type 4 JCC 驱动程序.此驱动程序使用两个 JAR:

The easiest way to connect to Db2 is through their JDBC Type 4 JCC driver. This driver uses two JARs:

  1. db2jcc4.jar,它是 JDBC 4 驱动程序(db2jcc.jar JDBC 3 驱动程序已被弃用.)
  2. db2jcc_license_cisuz.jar,它允许驱动程序连接到所有 Db2 服务器平台,包括 z/OS

您的大型机 DBA 应该能够为您提供这两个 JAR,并帮助您使用正确的 JDBC 驱动程序选项构建连接字符串.

Your mainframe DBA should be able to provide you with both of these JARs, and assist you in building a connect string with the proper JDBC driver options.

可以在此处找到有关 Db2 的 JDBC 驱动程序的更多信息:https://www.ibm.com/support/pages/db2-jdbc-driver-versions-and-downloads

More information about JDBC drivers for Db2 can be found here: https://www.ibm.com/support/pages/db2-jdbc-driver-versions-and-downloads

相关文章