Error encountered:
java.sql.SQLException: System.loadLibrary threw java.lang.UnsatisfiedLinkError
with the message 'no weblogicoci36 in java.library.path'.
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Exception.java:42)
at java.sql.SQLException.<init>(SQLException.java:82)
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:106)
at utils.dbping.main(dbping.java:156)
I had made sure that the location of "libweblogicoci36.so" is mentioned in LD_LIBRARY_PATH
and CLASSPATH.
Kindly help me out.
Thanks,
Ramesh Jetty.
Assuming you are using Sun Solaris.
Your LD_LIBRARY_PATH is not set properly. It must contain
$WEBLOGIC_HOME/lib/solaris/oci_8???:$ORACLE_HOME/lib
Thanks
JignesH Patel
Add $ORACLE_HOME/lib in your LD_LIBRARY_PATH variable.
Thanks
Jignesh Patel