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: SERVEROUTPUT Status

Re: SERVEROUTPUT Status

From: Igor Laletin <ilaletin_at_usa.net>
Date: 11 Feb 2004 22:35:39 -0800
Message-ID: <f9226414.0402112235.3f8525fd@posting.google.com>


Daniel,

Daniel Morgan <damorgan_at_x.washington.edu> wrote
> DBMS_OUTPUT does not belong in production code: Ever!

I think it's wrong. Like probably the most of the statements with the word 'ever'. DBMS_OUTPUT has two main restrictions: buffer size and line size. They are not a reason not to use it though. Ever! :) If your output fits in, it's the easiest way to go.

The output doesn't disappear in nowhere, normally it goes to a logfile. And Syltrem did mention this. I don't know where you get your 'A simple "clear screen" and your record is gone' from.

> INSERT INTO <table_name> is overkill?

You need:
- create table and indexes
- code autonomous transaction if there is need for non-transactional output

- grant privileges
- define, code and monitor purge procedure
- provide easy access to the log table (reports, views).

All these instead of dbms_output.put_line, which gives the same result and the same persistency.

I'm not saying use dbms_output when ever you need the output from pl/sql. But it's quite appropriate in the Syltrem's situation.

Regards,
Igor Received on Thu Feb 12 2004 - 00:35:39 CST

Original text of this message

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