Frequent error in Oracle ORA-04068: existing state of packages has been discarded

前端 未结 5 1634
再見小時候
再見小時候 2021-01-02 03:28

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          


        
5条回答
  •  情深已故
    2021-01-02 04:02

    You may also check dba_dependencies or 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.

提交回复
热议问题