I try to load some textinformation into clob fields. I reduced the code I’m having trouble to the following snippet:
DECLARE
WS_MAIN_CHUNK RAW(12001);
BEGIN
WS_MAIN_CHUNK := 'Do';
END;
/
It gives me the error ORA-06512 PL/SQL: numeric or value error: hex to raw conversion error. Why is the string ‘Do’ a hex value and how can I fix it -> Just assign the string to the raw variable?
Thx for your help
In Oracle,
RAWdata type is used to store binary data and any data that is byte oriented. You cannot directly assign a string value to a variable ofRAWdatatype. If there is such a need, you can useutl_rawpackage andcast_to_rawfunction to do that: