I have an Stored procedure in Oracle Enterprise 12c. This program is calling more than 100 sub-procedures to truncate tables and re-insert (ETL).
Master Proc IS
BEGIN
CHILD1;
CHILD2;
CHILD3;
ETC...
END;
This process is being executed every 4hrs as requested. The problem is that sometimes we are getting some errors:
ORA-04065: not executed, altered or dropped
ORA-04065: not executed, altered or dropped stored procedure "child proc1"
ORA-06508: PL/SQL: could not find program unit being called: "OD
But this seems to be solved by itself in the next load even if I re-execute after get the error the procedure finish without any error.Then after some time we get the error again with random stored procedure, first time child1 then child2 then child1 again.
Any idea how to solve or avoid this error?
Note: Not using a packages. Just standalone sp's.