DBMS_SCHEDULER fails with ORA-27476 ORA-27475 (Doc ID 787802.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 and later
Oracle Database - Standard Edition - Version 11.2.0.3 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.
***Checked for relevance on 06-Aug-2016***

Symptoms

While running the gather stats job as an external database user "OPT$ORACLE" received the following error:

SQL> exec sys.dbms_scheduler.RUN_JOB('SYS.GATHER_STATS_JOB');

ERROR at line 1:
ORA-27476: "SYS.GATHER_STATS_JOB" does not exist
ORA-06512: at "SYS.DBMS_ISCHED", line 150
ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
ORA-06512: at line 1


The same job runs fine when it is run by a normal DB oracle user. The external user "OPT$ORACLE" has execute privileges on dbms_scheduler. It also has EXECUTE ANY PROCEDURE, EXECUTE ANY PROGRAM privilege assigned.

Cause

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