I am struggling with subject mentioned error during execution of my PL/SQL code, during debugging of my code i have observed that my database is not allowing me to use 'COMMIT' in procedure while using DBMS_JOB.SUBMIT.
My procedure is a bit complex, so i will use sample piece of code as reference:
DECLARE
x integer(30):=0.0;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'declare x integer:= 0.0; begin x:= x+1; end;'
,next_date => sysdate
,interval => 'NULL'
--,no_parse => FALSE
);
insert into tem_job_insert values (x);
update tem_job_insert set job_num = x+1;
--SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' ||to_char(x));
commit;
END;
Error :
ORA-01426: numeric overflow
ORA-06512: at line 14
I have tried to execute the same piece of code (i mean both my sample code & my actual code) in some other databases and it works fine with out any issues, problem is only with these DBs.
Please feel free to ask if i had missed to add any detail.