Home » Developer & Programmer » Precompilers, OCI & OCCI » Unsatisfied Link Error with OCI client on HP UX 11i
Unsatisfied Link Error with OCI client on HP UX 11i [message #94345] Fri, 13 August 2004 06:12 Go to next message
Sasi Reddy
Messages: 1
Registered: August 2004
Junior Member
Dear Freinds,

Environment:
============

OS Version: HP-UX atihpuxi B.11.22 U ia64 (ta)

Oracle 9i - Server Version : Oracle9i Enterprise Edition Release 9.2.0.2.0 - 64bit Production
JServer Release 9.2.0.2.0 - Production

JDBC driver version is 9.2.0.3.0 - ojdbc14.jar

JAVA - J2SE 1.4.01

ORACLE_HOME=/opt/oracle9i/ora92

CLASSPATH=/home/weblogic/:/opt/oracle9i/ora92/jdbc/lib/ojdbc14.jar:

JAVA_HOME=/opt/java1.4

ORACLE_HOME=/opt/oracle9i/ora92

PATH=/opt/oracle9i/ora92/lib:/opt/oracle9i/ora92/bin:/usr/bin:/usr/local/bin:

SHLIB_PATH=/opt/oracle9i/ora92/lib:/opt/java1.4/bin:/usr/lib:

====================================================================================
====================================================================================

I have written a small java program to test OCI driver, that just connects to the DB and closes connection.

Its working fine with thin driver but failing with OCI resulting the following exception

EXCEPTION:
==========
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/oracle9i/ora92/lib/libocijdbc9.so: specified handle or index
is not valid.
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1489)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:832)
        at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
        at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:349)
        at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:493)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:317)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:140)
        at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:169)
        at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:108)
        at JDBCOCITest.dbConnection(JDBCOCITest.java:35)
        at JDBCOCITest.main(JDBCOCITest.java:20)

 

please can any body help me to solve this problem.

 

Sasi.
Re: Unsatisfied Link Error with OCI client on HP UX 11i [message #94454 is a reply to message #94345] Fri, 19 November 2004 07:34 Go to previous message
Stephen Gregg
Messages: 1
Registered: November 2004
Junior Member
Did you ever get a solution to this? I'm currently facing the same problem with 10g

Thanks

Stephen.
Previous Topic: acu4gl
Next Topic: pro c+ compiler
Goto Forum:
  


Current Time: Sat Dec 15 07:24:19 CST 2018