Error-20000 [message #39189] |
Tue, 25 June 2002 07:25 |
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 #39192 is a reply to message #39189] |
Tue, 25 June 2002 09:53 |
|
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 |
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
|
|
|