Oracle笔记:删除非owner job
程序员文章站
2023-12-26 20:04:27
...
在尝试使用sys删除一个用户的job的时候报错了,应该使用DBMS_IJOB下的REMOVE来处理即可。SQLgt; Exec DBMS_JOB.REMOVE(62);
删除非owner job
在尝试使用sys删除一个用户的job的时候报错了,应该使用DBMS_IJOB下的REMOVE来处理即可。
SQL> Exec DBMS_JOB.REMOVE(62);
begin DBMS_JOB.REMOVE(62); end;
ORA-23421: job number 62 is not a job in the job queue
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_IJOB", line 529
ORA-06512: at "SYS.DBMS_JOB", line 174
ORA-06512: at line 2
SQL> Exec DBMS_IJOB.REMOVE(62);
PL/SQL procedure successfully completed
SQL> COMMIT;
-The End-