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: JAVA calling a pro*C function.

Re: JAVA calling a pro*C function.

From: chris <x_at_worldnet.att.net>
Date: 1997/08/11
Message-ID: <33EF50E2.FC5EF310@worldnet.att.net>#1/1

You can't have any native code in your Java program, since that native code isn't present on the client and can't be because of security issues. It sounds like you need a pure Java JDBC implementation.

Venkatesha Prasad wrote:

> Hi ,
> The problem I am facing is not directly related to Oracle. I think
> it's
> more of the JAVA JNI problem. I am posting to this group hoping that
> some body might have succesfuly called a pro*C function operating on
> Oracle Data base from JAVA and would provide some insight in to the
> problem I am facing.
>
> We are using JDK 1.1.2 on HP-UX. We have a Pro*C code which does
> an
> INSERT into the Oracle 7.3.2.3 database. A shared library is built
>
> from this pro*C code. Class A is a java program which has a native
> method
> declared in it. This method is implemented in 'C' and is a part of
> the
> shared library. The 'C' function inturn calls the pro*C function.
>
> In the Java program, the shared library is dynamicaly loaded.
> When we execute JAVA program it simply hangs without connecting
> to the database. It hangs in the oracle call sqlcxt. From Unix
> processes started it is clear that a process to connect to
> Oracle has been spawned. But if we use the DB monitor utility
> inside
> Oracle, there is no Oracle process corresponding to the newly
> spawned
> Unix
> process.
>
> From some reason we don't want to use JDBC to connect to Oracle.
> Any
> help on this reagrd is highly appreciated.
>
> Thanks,
> Venkatesh Prasad
Received on Mon Aug 11 1997 - 00:00:00 CDT

Original text of this message

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