denrepo

Oracle error

ORA-04068

ORA-04068: existing state of packages%s%s%s has been discarded

What usually causes it

A package was recompiled while a session held its state (package variables).

What to check first

Retrying the call works. To prevent it, compile during quiet periods or avoid package-level state.

Scripts that help

Open in the error lookupOracle's reference