Resolving java.lang.UnsatisfiedLinkError With The JDBC OCI Driver
(Doc ID 459096.1)
Last updated on AUGUST 31, 2023
Applies to:
JDBC - Version 8.1.7.0 to 12.2.0.0.0 [Release 8.1.7 to 12c]Information in this document applies to any platform.
Symptoms
A java application using the JDBC OCI driver may typically give the following UnsatisfiedLinkError errors:
java.lang.UnsatisfiedLinkError: no ocijdbcX in java.library.path
(libocijdbcX - X is 8,9,10 etc depending on the version of the JDBC driver)
java.lang.UnsatisfiedLinkError: no ociXXXjdbc in shared library path
(ociXXXjdbc - XXX is 805,806 etc depending on the version of the JDBC 8.0.X release)
java.lang.UnsatisfiedLinkError: /home/instantclient/libocijdbcx.so: /home/instantclient/libocijdbcx.so:
Cannot open shared object file: No such file or directory
An unexpected exception occurred: ocijdbcx Not found in java.library.path
java.lang.UnsatisfiedLinkError: oracle/jdbc/driver/T2CConnection.getLibraryVersionNumber()
java.lang.UnsatisfiedLinkError
/lib/libocijdbcX.so: wrong ELF class: ELFCLASS64
java.lang.UnsatisfiedLinkError
/lib/libocijdbcX.so: wrong ELF class: ELFCLASS32
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 |