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

Last updated on MAY 16, 2017

Applies to:

JDBC - Version 8.1.7.0 to 12.1.0.2.0 [Release 8.1.7 to 12.1]
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

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