My Oracle Support Banner

How to Connect Using JDBC/Thin with SSL From an OC4J Data Source in 10.1.3.x (Doc ID 780034.1)

Last updated on DECEMBER 14, 2018

Applies to:

Oracle Containers for J2EE - Version to [Release AS10gR3]
JDBC - Version to [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 21-May-2015***


This note shows how to implement a JDBC/Thin SSL connection from an OC4J data source as well as automatically handle the security registration in order to allow a JSP to connect via JDBC/Thin with SSL using either a JDBC/Thin 10.2.x  or 11.1.x driver.  This was tested using JDBC/Thin and JDBC/Thin with JDK 1.5 on OC4J version

 Before the JSP attempt is made, you will need to ensure that your database is properly configured for SSL and that a standalone JDBC/Thin connection works.

In this case <Note 762286.1> was used for the following standalone test:

 When run the following output shows it works correctly from a standalone Java program.

$ java -classpath .:./ojdbc5.jar:./oraclepki.jar:./ojpse.jar JDBCSSLTester
Start: Mon Feb 02 09:26:30 EST 2009
Ended: Mon Feb 02 09:26:33 EST 2009


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

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

In this Document

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