ORA-27366 / ORA-27478 During Stop or Drop Job (Doc ID 784664.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.4 to 11.1.0.7 [Release 10.2 to 11.1]
Information in this document applies to any platform.



Symptoms

Unable to drop or stop the JOBS.

exec dbms_scheduler.drop_job('',true);
BEGIN dbms_scheduler.drop_job('',true); END;

*
ERROR at line 1:
ORA-27478: job "" is running
ORA-06512: at "SYS.DBMS_ISCHED", line 182
ORA-06512: at "SYS.DBMS_SCHEDULER", line 615
ORA-06512: at line 1

exec dbms_scheduler.stop_job('',true);
BEGIN dbms_scheduler.stop_job('',true); END;

*
ERROR at line 1:
ORA-27366: job "" is not running
ORA-06512: at "SYS.DBMS_ISCHED", line 168
ORA-06512: at "SYS.DBMS_SCHEDULER", line 515
ORA-06512: at line 1



Drop using force option shows:

exec dbms_scheduler.drop_job('',force => TRUE);
BEGIN dbms_scheduler.drop_job('',force => TRUE); END;

*
ERROR at line 1:
ORA-27478: job "" is running
ORA-06512: at "SYS.DBMS_ISCHED", line 182
ORA-06512: at "SYS.DBMS_SCHEDULER", line 615
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