I have to update a column with a xml of 252000 char. I have tried this How to insert/update larger size of data in the Oracle tables? but i still got error 'string literal too long'.
I want to write some code with DBMS_LOB package like this:
declare
c1 clob;
c2 varchar2(32000);
begin
c1 := 'abc';
c2 := 'text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'last text, which contains 27 372 characters';
dbms_lob.append(c1, c2);
update table set d1= c1 where d2id=12;
end;
Are there any other way write the query, where I can put whole my xml in one?