My Oracle Support Banner

Connecting to IBM DB2 Database Using JDBC in OC4J (Doc ID 198304.1)

Last updated on FEBRUARY 13, 2024

Applies to:

Oracle Containers for J2EE - Version 1.0.2.2.0 and later
Information in this document applies to any platform.

Goal

To set up IBM DB2 JDBC driver with in OC4J and be able to make a connection 
from a Java program such as a JSP.
This article is for developers who want to deploy Java applications with 
in OC4J and want to use IBM DB2 database as a backend. This example assumes 
that you have an IBM DB2 database name called "dbname", which contain a table 
called "person" with only 2 columns called "firstname" and "lastname".

Please take note however that the only  Oracle's supported DB2 connectivity is 
with the DataDirect driver.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.