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

前端 未结 5 1636
再見小時候
再見小時候 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:20

    This one liner actually solved everything:

    PRAGMA SERIALLY_REUSABLE;
    

    Be sure that your global variables are stateless to avoid any issues.

提交回复
热议问题