Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Hauke.

Asked: June 18, 2018 - 7:59 am UTC

Last updated: June 18, 2018 - 11:34 am UTC

Version: Oracle Database 11g Release 11.2.0.4.0 - 64bit

Viewed 10K+ times! This question is

You Asked

Hi Tom,

i had some discussions with other colleagues about which driver should / could be used for connecting to an oracle database.
I searched the web but found no sufficient answer for me (only a pretty old question from this site https://asktom.oracle.com/pls/asktom/f?p=100:11:::::P11_QUESTION_ID:1101233460502 )

So what i would like to know / understand is when i should use the JDBC driver and when i should use the OCI driver.

and Connor said...

There's a list of difference the JDBC documentation

Features Specific to JDBC Thin

https://docs.oracle.com/cd/E11882_01/java.112/e16548/jdbcthin.htm#JJDBC28195

Features Specific to JDBC OCI Driver

https://docs.oracle.com/cd/E11882_01/java.112/e16548/instclnt.htm#JJDBC28217

and this statement was added to the 12.2 docs:

"In general, unless you need OCI-specific features, such as support for non-TCP/IP networks, use the JDBC Thin driver."

I think the days of JDBC features languishing behind OCI drivers are pretty much over.

Is this answer out of date? If it is, please let us know via a Comment