SQL> SQL> create or replace procedure printLongText ( p_str in varchar2 ) 2 is 3 l_str long := p_str; 4 begin 5 loop 6 exit when l_str is null; 7 dbms_output.put_line( substr( l_str, 1, 250 ) ); 8 l_str := substr( l_str, 251 ); 9 end loop; 10 end; 11 / Procedure created. SQL>