My Oracle Support Banner

In FMW 11.1.2 Setup, JDBC OCI Fails With UnsatisfiedLinkError: No ocijdbc10 In java.library.path (Doc ID 1505150.1)

Last updated on AUGUST 09, 2023

Applies to:

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


Despite referencing the correct JDBC jar file in the system CLASSPATH, such as ojdbc6.jar or ojdbc5.jar, attempts to connect to the database fail with:

java JDBCInfo oci myhost 1521 mydb <LOGIN> <PASSWORD>
Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at oracle.jdbc.driver.T2CConnection$
        at Method)
        at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(
        at oracle.jdbc.driver.T2CConnection.logon(
        at oracle.jdbc.driver.PhysicalConnection.<init>(
        at oracle.jdbc.driver.T2CConnection.<init>(
        at oracle.jdbc.driver.T2CDriverExtension.getConnection(
        at oracle.jdbc.driver.OracleDriver.connect(
        at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(
        at oracle.jdbc.pool.OracleDataSource.getConnection(
        at oracle.jdbc.pool.OracleDataSource.getConnection(
        at JDBCInfo.main(

Sample tests confirm this result, such as the test code provided in the following article:

<Document 467804.1> How To Determine The Exact JDBC Driver Version (9.x - 11.x) For Standalone Programs

Note: On Unix/Linux libocijdbc10 is mentioned rather than ocijdbc10



 The CLASSPATH has been modified to include jar(s) from an 11.1.2 Forms/Reports environment. 


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.