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: Facing problem with CallableStatement

Re: Facing problem with CallableStatement

From: Robert Klemme <bob.news_at_gmx.net>
Date: Mon, 08 May 2006 17:30:02 +0200
Message-ID: <4c96fqF14fn7kU1@individual.net>


suresht.rsl_at_gmail.com wrote:
> Hi All,
> i have a stored procedure like this......
>
> CREATE OR REPLACE package pkg_eqp_typ_tree as
> type pepc_partial_qual_nmTab is table of varchar2(60) index by
> binary_integer;
> procedure stp_eqp_typ_tree (
> batch_size in smallint,
> pepc_partial_qual_nm_tab out pepc_partial_qual_nmTab,
> ); end pkg_eqp_typ_tree; /
>
>
> my java code is
> ----------------------
> String sql = "{call pkg_eqp_typ_tree.stp_eqp_typ_tree (?,?)}";
> OracleCallableStatement cstmt =
> (OracleCallableStatement)con.prepareCall(sql);
> cstmt.setShort(1,(short)100);
> cstmt.registerOutParameter(2, Types.VARCHAR);
> cstmt.execute();
>
> while compiling the code iam getting error
> "PLS-00306: wrong number or types of arguments in call to
> 'STP_EQP_TYP_TREE'"
>
> can any one help me.

Reread the error message carefully. Then reread your code. It's all in there.

        robert Received on Mon May 08 2006 - 10:30:02 CDT

Original text of this message

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