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 -> How to make JNI for Oracle ?

How to make JNI for Oracle ?

From: hshsh <hshsh_at_netsgo.com>
Date: Tue, 15 Sep 1998 17:12:21 +0900
Message-ID: <rAW7F$H49GA.210@news4.netsgo.com>


Anyone who knows to make JNI for ORACLE DB acessing.

I am doing JAVA program in a server (HP K400 series) We would like to use JNI instead of JDBC because we want better performance (200 transaction/sec).

We made oracle shared library (like ld -b -o libmyDB.sl $(OBJS) ..), and compliled completely.
But when we ran JAVA program with JNI,
the following message read..

    /usr/lib/dld.sl: Unresolved symbol: sqlcxt (code) from /discx/hsh/proj/java/db/libmyDB.sl

    SIGABRT 6* abort (generated by abort(3) routine)     Sig = 6; code = -1.

        stackbase=7B03AA9C, stackpointer=7B03CF50     Abort(coredump)

After that

We tried to complie other option (include all Oracle library) like this

   ld -b -o libmyDB.sl $(OBJS) -L/disc3/oracle/precomp/lib \

-L/disc3/oracle/lib -lsql -lsqlnet -lncr \
-lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet
 -lclient \

-lcommon -lgeneric -lpls -lepc -lc3v6 -lcore3 -lnlsrtl3
woops!! the comple error occured

  ld: DP relative code in file /disc3/oracle/lib/libnlsrtl3.a(lxhclrs.o) - shared
  library must be position
    independent. Use +z or +Z to recompile.

We can't compile completely ...
Anyone who know the correct way to compile and run Oracle JNI, please help us... urgent. Received on Tue Sep 15 1998 - 03:12:21 CDT

Original text of this message

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