Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: serverouput buffer overflow
It seems nobody has suggested an easier approach. Here's one from Thomas Kyte:
create or replace procedure p(p_str in varchar2)
as
l_str long default p_str;
begin
loop
exit when l_str is null;
dbms_output.put_line( substr( l_str, 1, 250 ) );
l_str := substr( l_str, 251 );
end loop;
end;
I've been happily using it for a long time.
Yong Huang
yong321_at_yahoo.com