Resolving java.lang.UnsatisfiedLinkError With The JDBC OCI Driver (Doc ID 459096.1)

Last updated on MAY 16, 2017

Applies to:

JDBC - Version to [Release 8.1.7 to 12.1]
Information in this document applies to any platform.


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/ /home/instantclient/
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()

/lib/ wrong ELF class: ELFCLASS64

/lib/ wrong ELF class: ELFCLASS32




Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms