We\'re getting this error once a day on a script that runs every two hours, but at different times of the day.
ERROR at line 1: ORA-04068: existing state of
You may also check dba_dependencies or user_dependencies.
dba_dependencies
user_dependencies
select * from dba_dependencies where name = 'YOUR_PACKAGE' and type = 'PACKAGE' --- or 'PACKAGE_BODY' and owner = USER --- or USERNAME
This will give you the objects your package is dependent on. Check whats happening in there.