Error Message :
ORA-04068: existing state of packages has been discarded
An Oracle 12c defect causes the above error message to appear in the RmiServer logs. Investigation
When using Oracle 18.104.22.168 with applications manager the following error may be found in the RmiServer logs:
java.sql.SQLException: ORA-04068: existing state of packages has been discarded
ORA-04061: existing state of package body "AMPRODDB .AWAPI2" has been invalidated
ORA-04065: not executed, altered or dropped package body "AMPRODDB .AWAPI2"
ORA-06508: PL/SQL: could not find program unit being called: "AMPRODDB .AWAPI2"
ORA-06512: at "AMPRODDB .UPD_BP", line 28
ORA-06512: at line 1