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!

Error when trying to convert LONG RAW to VARCHAR2

mhongsyokJul 3 2009 — edited Jul 3 2009
I am getting ORA-00997: illegal use of LONG datatype when attempting to run the select statement below.

select dbms_lob.substr(c.blob_contents,dbms_lob.getlength(c.blob_contents),1)
,dbms_lob.getlength(c.blob_contents)
from ce_blob c
where c.compression_cd = 728 and c.blob_length > 0 and rownum <= 1;

I had verified that the data type of c.blob_contents column is LONG RAW. Does anyone see why this error is happening and how to resolve it? I just simply want to convert c.blob_contents to varchar2 format. Thank you!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2009
Added on Jul 3 2009
3 comments
860 views