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!

How to read text data from BLOB columns of avg size of 200000 bytes ?

Karthik417Jun 22 2016 — edited Jun 23 2016

Hi All, Can you please advise on approach of how to get text out of BLOB column. We store XML data within these BLOB column and I have to display certain elements out of it. So would use regular exp to find exact elements once converted into text but more interested to know best way to convert BLOB to text. Initially tried --> select  UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(BLOB_COL, 4000,1)) from BLOB_TABLE; But because my col data avg size is  200000 bytes, I cannot use that approach. Should I convert it to CLOB and then to text or any advice on how to proceed further in efficient way ? DB Version: --------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit PL/SQL Release 11.2.0.3.0 CORE 11.2.0.3.0 TNS for Linux: Version 11.2.0.3.0 NLSRTL Version 11.2.0.3.0

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2016
Added on Jun 22 2016
4 comments
1,253 views