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

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to load java stored procedure?

Re: How to load java stored procedure?

From: Arto Viitanen <arto.viitanen_at_csc.fi>
Date: Mon, 04 Dec 2006 08:56:53 +0200
Message-ID: <4573c6b1$0$8948$ba624cd0@newsread.funet.fi>


somebody wrote:
> If I had a java stored procedure in a file named myproc.java,
> is it simply a matter of running loadjava myproc.java to load
> the stored procedure into the database?
>
>
> -Thanks
>

I compiled the file using Oracle's javac, built a jar from the class files and then run loadjava with the jar file. The reason was that the file generated several classes (I use anonymous classes quite alot) and I think loadjava can load one file at a time.

--
Arto Viitanen, CSC Ltd.
Espoo, Finland
Received on Mon Dec 04 2006 - 00:56:53 CST

Original text of this message

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