Connecting to IBM DB2 Database Using JDBC in OC4J
(Doc ID 198304.1)
Last updated on FEBRUARY 18, 2025
Applies to:
Oracle Containers for J2EE - Version 1.0.2.2.0 and laterInformation 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! |