Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle OCI Driver on HPUX
I'm guessing your library path also needs the standard C libraries. I've seen some linkers be deceptive, in that you may well be finding and loading the Oci library, but the OCI call needs the standard C library, and because that isn't findable, it fails, but you only get told about the uppermost library.
Joe Weinstein at BEA, the home of WebLogic
Peter.Mergaerts_at_HomeMail.com wrote:
>
> Hi there,
>
> Situation:
>
> liboci806jdbc.sl is located in /soft/oracle/product/8.0.6/lib
> ($ORACLE_HOME/lib)
>
> The LPATH variable also points to $ORACLE_HOME/lib
>
> When I launch a test application
>
> java -Djava.library.path=$ORACLE_HOME/lib Test
>
> which connects via
>
> ctx = new BatchContext(Oracle.connect
> ("jdbc:oracle:oci8:@test", "usis", "pwd"));
>
> I get the following error.
>
> Exception in thread "main"
> java.lang.UnsatisfiedLinkError: /soft/oracle/product/
> 8.0.6/lib/liboci806jdbc.sl: No such file or directory
>
> When I launch with pure Java thin JDBC driver it works fine.
>
> What am I overlooking?
>
> Regards,
> Peter
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
-- PS: Folks: BEA WebLogic is in S.F. with both entry and advanced positions for people who want to work with Java and E-Commerce infrastructure products. Send resumes to joe_at_bea.com -------------------------------------------------------------------------------- The Weblogic Application Server from BEA JavaWorld Editor's Choice Award: Best Web Application Server Java Developer's Journal Editor's Choice Award: Best Web Application Server Crossroads A-List Award: Rapid Application Development Tools for Java Intelligent Enterprise RealWare: Best Application Using a Component Architecture http://www.bea.com/press/awards_weblogic.htmlReceived on Fri Oct 27 2000 - 12:31:50 CDT
![]() |
![]() |