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.