JDBC OCI Driver Connection Fails: UnsatisfiedLinkError: no ocijdbc11 in java.library.path
(Doc ID 398948.1)
Last updated on APRIL 10, 2024
Applies to:
JDBC - Version 11.1.0.7 and laterInformation in this document applies to any platform.
Symptoms
On a Solaris or Linux platform, a 11.2.0.3 JDBC OCI Driver client program is executed :
$ $ORACLE_HOME/jdk/bin/java -cp $ORACLE_HOME/jdbc/lib/ojdbc5.jar:. <JAVA_PROGRAM>
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
11.2.0.3.0
jdbc:oracle:oci:@//<HOSTNAME>:<PORT>/<SERVICE_NAME>
This Java program is accessing a 11.2.0.3 Oracle database server ( running on the same machine as the Java client program).
Depending on the LD_LIBRARY_PATH environment variable settings, the UnsatisfiedLinkError exception is thrown :
1. LD_LIBRARY_PATH=$ORACLE_HOME/lib
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
11.2.0.3.0
jdbc:oracle:oci:@//<HOSTNAME>:<PORT>/<SERVICE_NAME>
2. LD_LIBRARY_PATH=/instantclient_11_2/lib
Changes
Cause
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
Symptoms |
Changes |
Cause |
Solution |
References |