Home  >  Article  >  Database  >  Oracle笔记:删除非owner job

Oracle笔记:删除非owner job

WBOY
WBOYOriginal
2016-06-07 17:10:581545browse

在尝试使用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-

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn