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: RHC <rclarence_at_juno.com>
Date: Wed, 08 Aug 2001 21:30:10 -0000
Message-ID: <tn3br2lj6f68f9@corp.supernews.com>

Could be a couple of things but one of the most likely is that the value you are feeding to DBMS_OUTPUT is null. When DBMS_OUTPUT gets a null it doesn't print anything. Try wrapping your input to DBMS_OUTPUT with the NVL function

i.e.

DBMS_OUTPUT.PUT_LINE(NVL(my_varchar2,'NULL VALUE'));

Hope this helps
RHC
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?

--
Posted via CNET Help.com
http://www.help.com/
Received on Wed Aug 08 2001 - 16:30:10 CDT

Original text of this message

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