Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Q: buffer overflow with DBMS_OUTPUT
I have a problem with buffer overflow when using the DBMS_OUTPUT
package.
I want to write data from a database to the screen (STDOUT) in a loop
using
DBMS_OUTPUT.PUT_LINE, something like this:
set serveroutput on size 1000000;
LOOP
FETCH ... DBMS_OUTPUT.PUT_LINE('num1='||usr_number1);
.....
....
How can I get the buffer to be flushed, for example after each iteration of LOOP?
I have tried this without success:
LOOP
DBMS_OUTPUT.ENABLE(1000000); FETCH ... DBMS_OUTPUT.PUT_LINE('num1='||usr_number1);
.....
DBMS_OUTPUT.DISABLE;
-- Bernd Becker bernd.becker_at_ibm.netReceived on Thu Aug 28 1997 - 00:00:00 CDT