Home » SQL & PL/SQL » SQL & PL/SQL » Error-20000
Error-20000 [message #39189] Tue, 25 June 2002 07:25 Go to next message
Miloud
Messages: 7
Registered: June 2002
Junior Member
Hi,

In a PL/SQL bloc, I've an explicit cursor that fetch many records. I met this kind of error:
Error-20000: buffer overflow, limit of 2000 bytes.

Can someone to resolve this problem?

My thanks.
Re: Error-20000 [message #39190 is a reply to message #39189] Tue, 25 June 2002 07:47 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
execute this
before running you pl/sql block..(just set a higher value than 20000).
SQL> begin
  2  DBMS_OUTPUT.ENABLE(150000);
  3  end;
  4  /
PL/SQL procedure successfully completed.

it is the default setting. You can see that in
$ORACLE_HOME/rdbms/admin/dbmsotpt.sql.
Re: Error-20000 [message #39192 is a reply to message #39189] Tue, 25 June 2002 09:53 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
this may help you. a possible workaround
SQL> get q2
  1  begin
  2  dbms_output.put_line
  3  ('33333333333333333333333333333333333333333333333333333333333333333
  4  3333333333333333333333333333333333333333333333333333333333333333333
  5  3333333333333333333333333333333333333333333333333333333333333333333
  6  3333333333333333333333333333333333333333333333333333333333333333333
  7  33333333333333333333333333333333333333333333333333333333333333');
  8  dbms_output.new_line;
  9* end;
SQL> /
begin
*
ERROR at line 1:
ORA-20000: ORU-10028: line length overflow, limit of 255 bytes per line
ORA-06512: at "SYS.DBMS_OUTPUT", line 99
ORA-06512: at "SYS.DBMS_OUTPUT", line 65
ORA-06512: at line 2

SQL> get q3
  1  declare
  2  str varchar2(1000);
  3  begin
  4  str:='33333333333333333333333333333333333333333333333333333333333333333
  5  3333333333333333333333333333333333333333333333333333333333333333333
  6  3333333333333333333333333333333333333333333333333333333333333333333
  7  3333333333333333333333333333333333333333333333333333333333333333333
  8  33333333333333333333333333333333333333333333333333333333333333';
  9  dbms_output.put_line(substr(str,1,250));
 10  dbms_output.put_line(substr(str,251,500));
 11  dbms_output.put_line(substr(str,501,750));
 12* end;
 13  /
33333333333333333333333333333333333333333333333333333333333333333
3333333333333333333333333333333333
333333333333333333333333333333333
333333333333333333333333333333333333333333333333333333333333333333
3
333333333333333333333333333333333333333333333333
3333333333333333333
33333333333333333333333333333333333333333333333333333333333333

PL/SQL procedure successfully completed.
Re: Error-20000 [message #39244 is a reply to message #39189] Sun, 30 June 2002 06:17 Go to previous message
Sreenivas
Messages: 15
Registered: January 2000
Junior Member
Hi,

You might have kept dbms_output.put_line statement in
your pl/sql procedure which might have executed in loop
So before that statement U can
add the statement
dbms_output.enable(10000000000000000000000000000)
some large value.

Regards,
Sreeni
Previous Topic: Integer/NUmeric
Next Topic: Extremely high Consistent Gets and DB Buffer Gets
Goto Forum:
  


Current Time: Fri Apr 26 04:37:15 CDT 2024