I have a java file which calls a stored procedure on oracle which in turn calls n number of procedures/packages.
The problem is we seem to be getting ORA-6508 at random points of time. All the objects in the server are in valid state only.
ORA-06508: PL/SQL: could not find program unit being called.
I checked the last_ddl time of the objects as well and it shows that its a few days ago. So there has been no recompilation or ddls on any of the objects to cause this error. Moreover, on the same day this error occurs intermittently. Some calls go through successfully and others don't on a particular day.
We have been using this environment for more than a year now and this behavior is a recent occurrence.
Is there any ORACLE server settings that could be the problem? Any suggestions are welcome since I've no idea how to proceed.