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: OCI: how to execute a procedure ??

Re: OCI: how to execute a procedure ??

From: Rene Nyffenegger <rene.nyffenegger_at_gmx.ch>
Date: 12 Feb 2004 19:02:00 GMT
Message-ID: <c0gij8$15jvf2$1@ID-82536.news.uni-berlin.de>

> Hi there,
>
> I have tried to execute a stored procedure through OCI using the
> OCIStmtExecute function. However when I send "execute myprocedure(somearg)"
> it gives me ORA-00900 invalid SQL statement. I gett he same with "execute
> myprocedure(somearg);" or "myprocedure(somearg)" or "myprocedure(somearg);".
> The server does have PL/SQL installed and my procedure compiled without
> errors. if i type "execute myprocedure(somearg);" in SQL*Plus it works fine.
>
> Any clues how to fire it through OCI?
>
> Thanks,

Andre

Try
  begin
    name_of_stored_proc(arguments)
  end;
instead of
  execute name_of_stored_proc(arguments)

hth
Rene

-- 
  Rene Nyffenegger
  http://www.adp-gmbh.ch
Received on Thu Feb 12 2004 - 13:02:00 CST

Original text of this message

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