Print Thread
Bug with DBMS_OUTPUT buffer and SIZE setting
#38712 09/08/10 04:35 PM
Joined: Dec 2001
Posts: 73
Cedar Hills, UT
bcoulam Offline OP
Member
OP Offline
Member
Joined: Dec 2001
Posts: 73
Cedar Hills, UT
So the Command window in PSD emulates SQL*Plus really well. I only have to bring up SQL*Plus maybe twice a year now. However, there seems to be a bug in how PSD emulates the SET SERVEROUTPUT ON and SIZE command.

On 9i, I got in the habit of always specifying the size of the buffer: SET SERVEROUTPUT ON SIZE 1000000

10g removed some limitations and now has an UNLIMITED setting. And the Oracle docs indicate that if you don't specify the SERVEROUTPUT size, the default is UNLIMITED.

Unfortunately, this is client-dependent. When I issue the following two tests in SQL*Plus, it works as expected. But in PSD, both the default and explicit setting of UNLIMITED seem to be ignored and the output buffer is limited to 2000 chars. In case you are wondering, in my preferences the Output pane shows the buffer to be set to 1000000 chars, so that seems to be ignored as well.

SET SERVEROUTPUT ON
begin
for i in 1 .. 100000 loop
dbms_output.put_line('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
end loop;
end;
/

SET SERVEROUTPUT OFF

SET SERVEROUTPUT ON SIZE UNLIMITED
begin
for i in 1 .. 100000 loop
dbms_output.put_line('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
end loop;
end;
/

For both of the above, I get the following error in PSD 8.0.3:

ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytes

bc

Re: Bug with DBMS_OUTPUT buffer and SIZE setting
bcoulam #38717 09/09/10 09:59 AM
Joined: Aug 1999
Posts: 22,239
Member
Offline
Member
Joined: Aug 1999
Posts: 22,239
The UNLIMITED clause is not yet supported (it is added for 9.0). You will have to use a large size instead.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.043s Queries: 15 (0.012s) Memory: 2.4999 MB (Peak: 3.0405 MB) Data Comp: Off Server Time: 2024-06-26 12:43:17 UTC
Valid HTML 5 and Valid CSS