我正在尝试在sqlplus shell上运行dbms_job但是失败了。 在toad我设法在“编辑器” - >“执行声明”
运行它exec dbms_job.isubmit(1234, 'TEST;',SYSDATE,INTERVAL => 'SYSDATE+(2/24/60)');
/
成功
但是当我跑步时
[abc]$ sqlplus user/password @compile1.sql
compile1.sql's content
spool compile.log;
@try.sql
spool off;
try.sql的内容
exec dbms_job.isubmit(1234, 'TEST;',SYSDATE,INTERVAL => 'SYSDATE+(2/24/60)');
运行compile1.sql后,出现
[abc]$ sqlplus ESERV/ESERV @compile1.sql
SQL*Plus: Release 11.2.0.4.0 Production on Tue Jan 28 13:46:11 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
它永远地卡在那里。
我确实试图加入begin ... end
;
但是它仍然没有成功,如果您有任何想法,请提出建议,谢谢!
的问候, 谈
答案 0 :(得分:0)
尝试更改try.sql的内容,如下所示:
exec dbms_job.isubmit(1234, 'TEST;',SYSDATE,INTERVAL => 'SYSDATE+(2/24/60)');
/
EXIT;