«ORA-20000: ORU-10027: buffer overflow, limit of 1000000 bytes»,
значит ты забыл воспользоваться пилюлькой:
«dbms_output.enable(NULL);»
set serveroutput on
DECLARE
CURSOR s is select CAPTION from F_IRKOBL_130829.estimate e where id = 800000131720;
BEGIN
FOR s_rec in s LOOP
dbms_output.put_line(s_rec.id);
END LOOP;
END;
DECLARE
s_parent_id varchar (20);
BEGIN
IF s_parent_id is null then SYS.dbms_output.put_line('s_parent_id is null'); end if;
SELECT parent_id into s_parent_id from estimate where id = 800000131720;
SYS.dbms_output.put_line(s_parent_id);
END;