Oracle Solution for Error ora-22835

Solution for Oracle Error ORA-22835

ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: string, maximum: string)

What triggered the Error:

attempt was made to convert CLOB to CHAR or BLOB to RAW, where the LOB size was bigger than the buffer limit for CHAR and RAW types. Note that widths are reported in characters if character length semantics are in effect for the column, otherwise widths are reported in bytes.

What should we do to fix it:

one of the following: *1. Make the LOB smaller before performing the conversion, for example, by using SUBSTR on CLO. *2. Use DBMS_LOB.SUBSTR to convert CLOB to CHAR or BLOB to RAW.