Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UnsatisfiedLinkError: no ocijdbc11 in java.library.path

3194339Mar 9 2016 — edited Mar 11 2016

Hi Guys,

     I recently upgraded from Oracle 11g to Oracle 12c and the shell script that I have executed no longer works. It is now throwing this error:

     Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc11 in java.library.path

     This is the shell script:

     #!/bin/bash

     export JAVA_HOME=/opt/jdk

     export PATH=$JAVA_HOME/bin:$PATH:.

     ORACLE_HOME=/u01/app/oracle/product/12.1.0/db_home1

     TIMES_TEN=/opt/TimesTen/Install/lib

     LD_LIBRARY_PATH=$ORACLE_HOME:$ORACLE_HOME/lib:$TIMES_TEN

     export LD_LIBRARY_PATH

     export ORACLE_HOME

     export TIMES_TEN

     java -cp lib/housing.jar:lib/log4j.jar:conf:lib/sqljdbc4.jar:lib/ttjdbc6.jar:lib/ojdbc6.jar com.hp.spcmc.housing.Query

     Any idea what could be causing this issue?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2016
Added on Mar 9 2016
2 comments
6,020 views