ORA-27478 / ORA-27366 Errors With Scheduler Job In Invalid State (Doc ID 422134.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.1.0.7 [Release 10.1 to 11.1]
Oracle Database - Enterprise Edition - Version 11.2.0.4 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.
***Checked for relevance on 20-Sep-2016***



Symptoms

  - A job is hanging in RUNNING status.
  - Other scheduler jobs are running normally
  - When attempt to stop the job you get:

begin 
dbms_scheduler.stop_job( 'ABC_USER.CHECK_XYZ' , TRUE); 
end; 
/ 
ERROR at line 1: 
ORA-27366: job "ABC_USER.CHECK_XYZ" is not running 
ORA-06512: at "SYS.DBMS_ISCHED", line 162 
ORA-06512: at "SYS.DBMS_SCHEDULER", line 398 
ORA-06512: at line 2 

If I attempt to start the job I get: 
BEGIN dbms_scheduler.run_job('ABC_USER.CHECK_XYZ',FALSE); END; 

* 

ERROR at line 1: 
ORA-27478: job "ABC_USER.CHECK_XYZ" is running 
ORA-06512: at "SYS.DBMS_ISCHED", line 148 
ORA-06512: at "SYS.DBMS_SCHEDULER", line 374 
ORA-06512: at line 1 



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