I have a scenario where I am appending string to a clob. The issue I have is that once the CLOB reaches a certain size if I try to append more to the clob I get a ORA-06502: PL/SQL: numeric or value error. I assume that it is running out of size but I do not know how to overcome the problem (i.e. specify how to make the clob bigger).
Could someone please help me.
This is how i declare my CLOB...
LP_xml_result CLOB;
DBMS_LOB.CREATETEMPORARY(
lob_loc => LP_xml_result
, cache => true
, dur => dbms_lob.call
);
DBMS_LOB.OPEN(
lob_loc => LP_xml_result
, open_mode => DBMS_LOB.LOB_READWRITE
);
And then I insert into it like so....
PROCEDURE lob_append(i_string IN VARCHAR2)
IS
BEGIN
dbms_lob.append(LP_xml_result,LP_LineFeed || i_string);
END lob_append;
thanks
(4 GB - 1) * DB_BLOCK_SIZE
, i.e. 8TB to 128TB. 4GB was the limit till Oracle 10 – Wernfried DomscheitLP_xml_result := EMPTY_CLOB()
– Wernfried Domscheit