Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dbms_output.put_line and sqlplus : output truncated to 100 Characters.

751195Mar 18 2010 — edited Mar 18 2010
HI all,

please see the following script where the variable length is more than a 100 charecters...
When i run this in sqlplus with SERVEROUTPUT ON, i see the ouput being truncated to 100 charecters.
sql> ed
Wrote file afiedt.buf

  1  declare
  2     l_var varchar2(400);
  3  begin
  4     l_var := 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefgh
  5     dbms_output.put_line(length(l_var));
  6     dbms_output.put_line(l_var);
  7* end;
  8  /
130
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv
I think I am looking for a sqlplus "SET XXXX..." command, but my search has been futile so far.
Please advice.

Thanks,
John.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2010
Added on Mar 18 2010
2 comments
1,680 views