My Oracle Support Banner

Oracle JDBC 12c OCI Client Looks For Ocijdbc10 In Java.library Path Resulting in java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path (Doc ID 2433621.1)

Last updated on AUGUST 30, 2023

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


Oracle JDBC 12c OCI Client is looking for ocijdbc10 in java.library path.

Oracle 12c R2 client is installed. While connecting to a Oracle 12.1 database using the OCI driver , using jdbc:oracle:oci:@<host>:<port>:<sid>, the following error is received as soon as the connection is being made:

java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
at java.base/java.lang.ClassLoader.loadLibrary(
at java.base/java.lang.Runtime.loadLibrary0(
at java.base/java.lang.System.loadLibrary(
at oracle.jdbc.driver.T2CConnection$
at java.base/ Method)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(
at oracle.jdbc.driver.T2CConnection.logon(
at oracle.jdbc.driver.PhysicalConnection.(
at oracle.jdbc.driver.T2CConnection.(
at oracle.jdbc.driver.T2CDriverExtension.getConnection(
at oracle.jdbc.driver.OracleDriver.connect(
at java.sql/java.sql.DriverManager.getConnection(
at java.sql/java.sql.DriverManager.getConnection(

There is no under $ORACLE_HOME/lib, instead is present. The OCI driver is not to using correct Oracle 12c library even when ojdbc8.jar is being configured to be used in the application.

The issue can be reproduced at will with the following steps:
1. Set

2. Configure ojdbc8.jar to be used by the application:

The CLASSPATH in Eclipse IDE used to run the application includes:
<classpathentry kind="lib" path="<DIR>/jdbc/lib/ojdbc8.jar"/>
<classpathentry kind="output" path="build/classes"/>

3. Try to establish the JDBC OCI connection.




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.