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 -> Problem with procedure definition

Problem with procedure definition

From: Tom Cat <homer_simpson_at_libero.it>
Date: Thu, 6 Mar 2003 14:11:07 +0100
Message-ID: <7OH9a.1229$Fc.33219@tornado.fastwebnet.it>


I'm trying to access Java code directly from Oracle database. 1 - I've written the Hello class containing just a static method world() which returns a String "world"

2 - I've loaded in database using the "loadjava" utilities

3 - I created the HELLOWORLD function in this way: SQL> create or replace function HELLOWORLD return VARCHAR2 as language java name 'Hello.world() return java.lang.String'; /

4 - When i try to create the procedure EXAMPLE_JAVA, I obtain an error ... SQL> create or replace Procedure EXAMPLE_JAVA as begin
variable mystring VARCHAR2[20];
call HELLOWORLD() into :mystring;
print :mystring;
end;
/
warning: procedure created with compilation errors. Oracle enterprise console says (I translate from the italian): Row number: 3 column number: 10 Error: PLS-00103: Found symbol "MYSTRING" instead of one of the following : := .

Thanks in advance for your replies. Received on Thu Mar 06 2003 - 07:11:07 CST

Original text of this message

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