Using Instant Client with OCI/JDBC : UnsatisfiedLinkError Trying To Connect (Doc ID 337717.1)

Last updated on MAY 27, 2009

Applies to:

JDBC - Version: 10.1.0.3.0
This problem can occur on any platform.

Symptoms

Customer is getting an .UnsatisfiedLinkError when trying to connect using the OCI/JDBC connection using the Instant Client. The instant client is being installed into directory /home/instantclient.
After setting the LD_LIBRARY_PATH to /home/instantclient and the CLASSPATH to /home/instantclient/ojdbc14.jar  correctly, the following error is thrown:

Exception in thread "main" java.lang.UnsatisfiedLinkError:
/home/instantclient/libocijdbc10.so: /home/instantclient/libocijdbc10.so:
cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:2927)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:225)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:347)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:139)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:549)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at LinuxJDBCTest.getConnection(LinuxJDBCTest.java:10)
at LinuxJDBCTest.main(LinuxJDBCTest.java:16)

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