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!

Clob data type is not accepting data more than 33328 bytes.

Bollineni86Apr 4 2016 — edited Apr 5 2016

Hi All,

database details :

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

PL/SQL Release 12.1.0.2.0 - Production

"CORE 12.1.0.2.0 Production"

declare

v_clob clob;

begin

for emp_cur in (select * from emp)

loop

v_clob:=v_clob || 'adding Text more than 1gb';  -- each time assigning above 850 characters.

DBMS_OUTPUT.PUT_LINE(DBMS_LOB.GETLENGTH(v_clob));

end loop;

exception

when others then

dbms_output.put_line('ERROR MSG DETAILS'||sqlcode||sqlerrm);

end;

For above example code i getting below an error

858

1603

2420

3160

3964

4740

5579

6382

7154

7880

8607

9352

10120

10891

11702

12481

13221

13984

14727

15711

16616

17492

18229

19171

19916

20667

21532

22291

23032

23866

24619

25414

26177

27094

27889

28649

29416

30188

30986

31784

32593

33328

ERROR MSG DETAILS -6502 ORA-06502: PL/SQL: numeric or value error.

Please help me..

Thanks.

This post has been answered by BluShadow on Apr 4 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2016
Added on Apr 4 2016
21 comments
12,070 views