OraQA

Oracle Question and Answer

  • Do you have a solution to a problem? Do you have an unanswered question? Login and share it with the Oracle community. More...

Oracle News


Entries RSS feed

Comments RSS feed

What is the max line length when calling DBMS_OUTPUT.PUT_LINE?

February 27th, 2006 By Eddie Awad

First, what does DBMS_OUTPUT.PUT_LINE do? This procedure places a line in the buffer. This procedure is mainly used in debugging PL/SQL programs.

Syntax

DBMS_OUTPUT.PUT_LINE (item IN VARCHAR2);

Notes

  • When you call PUT_LINE the item you specify is automatically followed by an end-of-line marker.
  • Output that you create using PUT_LINE is buffered. The output cannot be retrieved until the PL/SQL program unit from which it was buffered returns to its caller.

In 10gR1 (10.1) and before

The maximum line length is 255 bytes.

In 10gR2 (10.2) and above

The maximum line length is 32767 bytes.

2 Responses to “What is the max line length when calling DBMS_OUTPUT.PUT_LINE?”

  1. tkyte Says:

    the versions should be:

    In 10gr1 and before….

    In 10gr2 and above….

    the 32k line length was added in 10gr2…

  2. Eddie Awad Says:

    Thanks for the clarification. I have updated the post.

Leave a Reply

You must be logged in to post a comment.

RSS feed for comments on this question