Question : Deleting OEM Jobs

Through SQLPlus I ran :



SQL> execute sysman.mgmt_jobs.stop_all_executions('BACKUP_PRIMARY.CSUHAYWARD.EDU_000011','SYS');

PL/SQL procedure successfully completed.


Next I wanted to delete the job, but a message comes back saying the execution is active.
The same happens when i try through EM.   First i click stop and a message says it was successfully stopped.  Then when i try to delete a message says it must first be stopped.
What am i doing out of order?
SQL> execute sysman.mgmt_jobs.delete_job('backup_primary.csuhayward.edu_000011','SYS');
BEGIN sysman.mgmt_jobs.delete_job('backup_primary.csuhayward.edu_000011','SYS'); END;

*
ERROR at line 1:
ORA-20414: The specified execution is an active execution
ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 2960
ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 3105
ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 3163
ORA-06512: at "SYSMAN.MGMT_JOBS", line 334
ORA-06512: at line 1

Answer : Deleting OEM Jobs

This was flagged as neglected since no other experts have responded.  I'll try to help a little but I've never messed much with OEM and management jobs so it won't take much to get over my head.

I suggest trying the same 'case' in both commands:

execute sysman.mgmt_jobs.stop_all_executions('BACKUP_PRIMARY.CSUHAYWARD.EDU_000011','SYS');

execute sysman.mgmt_jobs.delete_job('BACKUP_PRIMARY.CSUHAYWARD.EDU_000011','SYS');
Random Solutions  
 
programming4us programming4us