ORA-00942 in DBMS_STATS package during gather stats job

(Doc ID 783670.1)

Last updated on AUGUST 25, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.2.0.4 [Release 9.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 22-Sep-2016***
Information in this document applies to any platform.

Goal

Automatic optimizer statistics collection fails with the followings errors:

Wed Feb 11 22:00:02 2009
Errors in file $ORACLE_HOME/trace/<sid>_j000_31043.trc:

ORA-12012: error on auto execute of job 91474
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_STATS", line 24026

The job is run as SYS user.

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms