I have a table in oracle with a BLOB
column, that can store XMLs and as well XMLs
zipped. These are requirements from the customer and can't be changed. The tables will be created and I have to read and work with some information inside the BLOBs
.
I have researched and any of the unclear solutions were clear or worked for me.
The problem I am facing is that to INSERT
XML
plain data bigger than 2000 bytes
with utl_raw.cast_to_raw
using DBeaver
as Database Manager. I received the message:
SQL Error [6502] [65000]: ORA-06502: PL/SQL: numeric or value error: raw variable length too long ORA-06512: at "SYS.UTL_RAW", line 224
java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: raw variable length too long
ORA-06512: at "SYS.UTL_RAW", line 224
Problems
- I have researched and
UTL_RAW
can't be longer than2000 bytes
- it seems that there is another limitation of
4000 bytes
forBLOBs
in Oracle
What could I do for those cases?
insert into table values(utl_file.UTL_RAW.CAST_TO_RAW('.....')
? – Arkadiusz Łukasiewicz