While I try to set the value of over 4000 characters on a field that has data type CLOB
, it gives me this error :
ORA-01704: string literal too long.
Any suggestion, which data type would be applicable for me if I have to set value of unlimited characters although for my case, it happens to be of about 15000
chars.
Note : The long string that I am trying to store is encoded in ANSI.
What are you using when operate with CLOB?
In all events you can do it with PL/SQL
DECLARE
str varchar2(32767);
BEGIN
str := 'Very-very-...-very-very-very-very-very-very long string value';
update t1 set col1 = str;
END;
/
Thank you, but CI is not supporting these procedure stuffs stackoverflow.com/questions/13946641/…
I guess you can wrap this code in a procedure and Codeigniter can execute it. Sorry but I don't have Codeigniter for checking. Look here link
Did it, but could I define that size of varchar2, check this link, stackoverflow.com/questions/13947222/…
Will this info (http://www.oracle.com/technetwork/articles/fuecks-lobs-095315.html) be useful for you?
I don't know what I have changed somewhere, but this is working fine now. Thanks. But still I am not clear why the same thing did not work from straight query. Is it always we have to do like this for storing string having 4000 and more characters ?