Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle OCI Driver on HPUX

Re: Oracle OCI Driver on HPUX

From: Joseph Weinstein <joe_at_weblogic.com>
Date: Fri, 27 Oct 2000 10:31:50 -0700
Message-ID: <39F9BC06.E0C8C91E@weblogic.com>

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.html
Received on Fri Oct 27 2000 - 12:31:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US