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: Executing a procedure from within another procedure dynamically

Re: Executing a procedure from within another procedure dynamically

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Wed, 24 Nov 1999 19:33:08 +0100
Message-ID: <943468462.25168.0.pluto.d4ee154e@news.demon.nl>


'BEGIN '||procedure_name||'; END;'
should work.
Execute is a sqlplus shortcut.

Hth,

--
Sybrand Bakker, Oracle DBA
Don Del Grande <del_grande_at_netvista.net> wrote in message news:81h92r$4jn$1_at_nnrp1.deja.com...
> I'm using V7.3. Is there any way to call a stored procedure from
> within another stored procedure WITHOUT hard-coding the name in the
> first stored procedure?
>
> I tried:
> DBMS_SQL.PARSE(c, 'EXECUTE ' || procedure_name, DBMS_SQL.v7)
> ("c" is the return value from an OPEN_CURSOR; "procedure_name" is a
> VARCHAR2 containing the name of an existing procedure)
> but it returned an ORA-00900 error ("Invalid SQL statement").
>
>
>
> ----------------------------------------------------------------
> Sure, the Navy could maintain its own news servers, or we could save
> the money and pass the savings onto the taxpayers (or, for example,
> certain taxpayers planning on running for the Senate in New York) by
> using...
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Wed Nov 24 1999 - 12:33:08 CST

Original text of this message

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