Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert Varchar2 to Blob

Khan2May 24 2011 — edited Jul 28 2011
Hi,

I Have Four Fields (Remarks1,Remarks2,Remarks3,Remarks4) data type varchar2(4000) of each field, I want to convert the data of these fields to blob and stor it in one sinle blob data type fields:

For this I have created one more field (Remarks) in my table with data type bolb:

I use "Utl_raw.cast_to_raw: to achieve this, but unable to succeeded;

when I try to update the data of these four fields to one blob field I get the following error:

ORA-06502: PL/SQL numeric or Value Error: raw variable length too long
ORA-06512: at "SYS.UTL_RAW" , line 224.

What should I do to resolve this.

Regards,
*Raza*

Edited by: Khan2 on May 24, 2011 4:45 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2011
Added on May 24 2011
19 comments
16,234 views