RE: Simple PL/SQL output question

  • From: "Powell, Mark" <mark.powell2@xxxxxx>
  • To: "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 10 Mar 2011 18:10:21 +0000

I do not see how this is a gocha since this behavior is documented and the 
package has always worked this way:

"You can either place an entire line of information into the buffer by calling 
PUT_LINE, or you can build a line of information piece by piece by making 
multiple calls to PUT."


-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Dunbar, Norman (Capgemini)
Sent: Thursday, March 10, 2011 7:52 AM
To: oracledba.williams@xxxxxxxxx; oracle-l@xxxxxxxxxxxxx
Subject: RE: Simple PL/SQL output question

Dennis,

Actually, I've spotted a little gotcha - if the DBMS_OUTPUT.PUT line(s) are not 
followed by a DBMS_OUTPUT.PUT_LINE or a DBMS_OUTPUT.NEW_LINE then the last lot 
of output from DBMS_OUTPUT..PUT doesn't appear, ever!

 BEGIN
       DBMS_OUTPUT.PUT('==========================================');
       DBMS_OUTPUT.PUT('------------------------------------------');
       DBMS_OUTPUT.PUT('==========================================');
       dbms_output.put_line('Norm was here');  END;  /

If you comment out the last line above, then nothing ever appears, no matter 
how often you run it.

I don't suppose your full pl/sql code is missing a DBMS_OUTPUT.NEW_LINE or a 
DBMS_OUTPUT.PUT_LINE at the end is it?

Just a thought.


Cheers,
Norm.

Norman Dunbar
Contract Senior Oracle DBA
Capgemini Database Team (EA)
Internal : 7 28 2051
External : 0113 231 2051 


Information in this message may be confidential and may be legally privileged. 
If you have received this message by mistake, please notify the sender 
immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should 
still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under 
the Freedom of Information Act, Data Protection Act or for litigation.  Email 
messages and attachments sent to or from any Environment Agency address may 
also be accessed by someone other than the sender or recipient, for business 
purposes.

If we have sent you information and you wish to use it please read our terms 
and conditions which you can get by calling us on 08708 506 506.  Find out more 
about the Environment Agency at www.environment-agency.gov.uk
--
//www.freelists.org/webpage/oracle-l


--
//www.freelists.org/webpage/oracle-l


Other related posts: