JOB建立不成功,大家帮忙看看
declare
jobno number;
begin
DBMS_JOB.SUBMIT(JOB => jobno,
what => 'test_2; ',
next_date => 'sysdate ',
interval => 'sysdate + 1/8640 ',
INSTANCE => 2,
FORCE => true);
commit;
end;
ORA-01858: a non-numeric character was found where a numeric was expected
ORA-06512: at line 4
大家帮忙看看这个job为什么建不起来!
然后我的interval设置为 'sysdate + 1/8640 '感觉结果不是10秒执行一次!
大家看看有什么问题
------解决方案--------------------next_date => 'sysdate ',
next_date 的参数不是字串的,改成 next_date => sysdate