DB2 database in Oracle SQL developer
Asked Answered
K

3

22

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.

Keller answered 20/4, 2012 at 17:9 Comment(0)
P
18

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

  1. db2jcc4.jar, which is the JDBC 4 driver (The db2jcc.jar JDBC 3 driver has been deprecated.)
  2. db2jcc_license_cisuz.jar, which permits the driver to connect to all Db2 server platforms, including z/OS

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.

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

Paulapauldron answered 20/4, 2012 at 21:44 Comment(2)
I wasn't able to successfully connect to the DB at this point, but I think I'm on the right track. I think the port, and IP may be different from the ZOS mainframe port and IP that I currently use to access the tables. So I'm going to dig around.Keller
You can try here as well: web.archive.org/web/20150403225758/http://www-01.ibm.com/…Sleeper
D
47

To enable DB2 in SQL Developer, you need to pull out the db2jcc.jar

Go to "Oracle SQL Developer" - "Tools" - "Preferences" - > Third Party JDBC Driver

enter image description here

My ORACLE SQL Developer Version is 4.1.1.19 (it mostly works for many versions)

After adding that jar to third party JDBC Drivers. Click on "New Connection".

You should be able to find DB2 Option.

enter image description here

Downbow answered 18/2, 2016 at 22:14 Comment(5)
Good answer. This should be the best answer than the accepted one.Sandrasandro
Simple and crisp answer.. ... I would have selected this as the answer if I were the one who posted the question .Felishafelita
This answer is best compared to 1st one. This helps me.Franckot
Good post Sireesh. Going back to fred's post, you need to add the license jar to the classpath. You can do the following: Edit SQL Developer\sqldeveloper\bin\sqldeveloper.conf and add a AddJavaLibFile ../<path to license jar>/db2jcc_license_cisuz.jarKopaz
This is what I looked for. ThanksImpound
P
18

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

  1. db2jcc4.jar, which is the JDBC 4 driver (The db2jcc.jar JDBC 3 driver has been deprecated.)
  2. db2jcc_license_cisuz.jar, which permits the driver to connect to all Db2 server platforms, including z/OS

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.

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

Paulapauldron answered 20/4, 2012 at 21:44 Comment(2)
I wasn't able to successfully connect to the DB at this point, but I think I'm on the right track. I think the port, and IP may be different from the ZOS mainframe port and IP that I currently use to access the tables. So I'm going to dig around.Keller
You can try here as well: web.archive.org/web/20150403225758/http://www-01.ibm.com/…Sleeper
H
0

SQL Developer supports the following JDBC drivers.

IBM DB2: You need the binary driver jar files db2jcc.jar and db2jcc_license_cu.jar. Search for DB2 Universal JDBC Drivers. https://www.ibm.com/support/pages/location-db2jcclicensecisuzjar-file

Microsoft Access:No additional driver is required. Access uses the JDBC/ODBC bridge

Microsoft SQL Server and Sybase: jTDS driver version 1.2. Download here. The binary driver is located within the jtds-1.2-dist.zip. This jar file is called jtds-1.2.jar.

MySQL: MySQL JDBC Driver, version 5.04. Download here. The binary driver is located within the mysql-connector-java-5.0.4.tar.gz (or .zip). The jar file is called mysql-connector-java-5.0.4-bin.jar.

Teradata: Use Teradata JDBC Driver 12.0 or above. Both the Teradata JDBC Driver 12.0 and 13.0 use the jar files terajdbc4.jar and tdgssconfig.jar. https://www.teradata.com/downloadcenter/

Hsu answered 8/11, 2020 at 7:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.