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!

dbms_lob.substr is failing with ORA-06502

chakraJun 27 2011 — edited Jun 27 2011
The following query is throwing error while doing minus with dbms_lob.substr although 4000
characters are being selected. Column billing_inventory is of CLOB. Please advice.

SQL> select count(1) from llums_feed;
724754

SQL> select count(1) from llums_feed_prv;
0

SQL> SELECT
asset_id,dbms_lob.substr(billing_inventory,4000,1),dbms_lob.substr(billing_inventory,8000,4001)
FROM llums_feed
minus
select asset_id, dbms_lob.substr(billing_inventory,4000,1)
,dbms_lob.substr(billing_inventory,8000,4001)
from llums_feed_prv;

ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
This post has been answered by 32685 on Jun 27 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2011
Added on Jun 27 2011
4 comments
9,794 views