Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: stored procedure status

Re: stored procedure status

From: Jan Pruner <jan_at_pruner.cz>
Date: Wed, 01 May 2002 00:43:20 -0800
Message-ID: <F001.004548BF.20020501004320@fatcity.com>


Hi Kranti,

        You have to add out parameter in your procedure call and to test returned value in main procedure.

Example:
proc1( back_val OUT PLS_INTEGER, blahblah IN VARCHAR2) AS
BEGIN
...
back_val := 1;
RETURN;
EXCEPTION
WHEN OTHERS THEN
        back_val := 0;
END; proc2( back_val OUT PLS_INTEGER, blahblah IN VARCHAR2) AS
BEGIN
...
back_val := 1;
RETURN;
EXCEPTION
WHEN OTHERS THEN
        back_val := 0;
END;

Jan Pruner

On Wed 1. May 2002 09:43, you wrote:
> Hi list,
> I have writeen a stored procedure to execute a set of stored
> procedures. I want to know is there any way to stop the procedure after any
> of stoed procedure( from the set) returns an error.
> In simple words, is it possible to get a status whether the called
> procedure was successful or not.
>
> TIA
> Kranti

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jan Pruner
  INET: jan_at_pruner.cz

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed May 01 2002 - 03:43:20 CDT

Original text of this message

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