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: simple java stored function doesn't work

Re: simple java stored function doesn't work

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 26 May 2006 05:43:49 -0700
Message-ID: <1148647429.815265.206670@j55g2000cwa.googlegroups.com>

kostakis wrote:
> Hello,
>
> I try to create very simple java function in my oracle 9i. The java
> source is:
>
> CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "Klasa" AS
> public class Klasa {
> public static int getInt(int in_in) {
> return(in_in);
> }
> };
> /
> This soruce compiles without any errors. I created also function:
>
> CREATE OR REPLACE function klasa_getint return number as language java
> name 'Klasa.getInt(int) return int';
> /
> which compiles without errors also.
>
> But when i invoke:
> select klasa_getint(5) from dual
> i become error:
> ORA-06553: PLS-306: wrong number or types of arguments in call to
> 'KLASA_GETINT'
>
> Why is that?

Read the error carefully and you will get your answer.

Regards
/Rauf Received on Fri May 26 2006 - 07:43:49 CDT

Original text of this message

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