Executing the DBMS_STATS Package Generates: "ORA-20002: Version of statistics table "USERNAME"."STAT_TAB_NAME" is too old. Please try upgrading it with dbms_stats.upgrade_stat_table"
(Doc ID 2004828.1)
Last updated on FEBRUARY 19, 2019
Applies to:Oracle Database - Enterprise Edition - Version 188.8.131.52 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
- Executing DBMS_STATS generates ORA-20002:
- If the database has been upgraded from an earlier version, DBMS_STATS.UPGRADE_STAT_TABLE works, as DBMS_STATS.UPGRADE_STAT_TABLE can be used only if the DB is upgraded to 12.1 from lower version and not for a newly installed 12c database.
- No invalid objects found in the DB.
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