My Oracle Support Banner

ORA-04063 Package Body "SYS.DBMS_STATS" Has Errors (Doc ID 604457.1)

Last updated on AUGUST 11, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.8 and later
Information in this document applies to any platform.
***Checked for relevance on 04-Feb-2016***

Symptoms

-- Problem Statement:

A job that updates stats is failing with:
ERROR at line 1:
ORA-04068: existing state of packages has been discarded
ORA-04063: package body "SYS.DBMS_STATS" has errors
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1

The package body shows invalid in dba_objects:

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.