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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Simple question..I am running a stored procedure from SQL PLUS

Re: Simple question..I am running a stored procedure from SQL PLUS

From: Phil Singer <psinger1_at_chartermi.net>
Date: Wed, 08 Aug 2001 22:41:39 -0400
Message-ID: <3B71F863.A5D6E30B@chartermi.net>

Manoj Nair wrote:
>
> so i do a SQL> EXEC my_sp..I have dbms_output statements in code and i
> have also set serverout on ..but it doesn't print the messages what am
> i missing?

One possibility is that you are raising an exception before any of your dbms_output statements can execute. So add to your declarative section something like

     errtxt varchar2(512);

And to your exception handler something like

     when others then  ----if not already present
        errtxt := sqlerrm;
        dbms_output.put_line(errtxt);

And this possibility should be covered.

-- 
Phil Singer                |    psinger1_at_chartermi.net
Oracle DBA

Go Wings!!!!!!!
Received on Wed Aug 08 2001 - 21:41:39 CDT

Original text of this message

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