0

这是我使用的指令:

BEGIN
  DBMS_SCHEDULER.RUN_JOB(25950);
  commit;
END;

这是我得到的错误

ORA-00931: missing identifier
ORA-06512: at "SYS.DBMS_UTILITY", line 132
ORA-06512: at "SYS.DBMS_UTILITY", line 164
ORA-06512: at "SYS.DBMS_UTILITY", line 218
ORA-06512: at "SYS.DBMS_SCHEDULER", line 437
ORA-06512: at line 2
4

1 回答 1

2

run_job期望job_name,而不是 id。

文档

DBMS_SCHEDULER.RUN_JOB (
   job_name                IN VARCHAR2,
   use_current_session     IN BOOLEAN DEFAULT TRUE);
于 2012-06-27T14:36:31.397 回答