0
我試圖在sqlplus shell運行dbms_job但失敗。 在蟾蜍我設法在 「編輯器」 運行此 - > 「執行語句」dbms_job未運行在sqlplus shell
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)');
runnning 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
;
但它仍然不成功,請親切建議,如果你有任何想法,謝謝!
問候, 譚
我發現這個問題的解決方案。我的try.sql在導致掛起問題的最後一行缺少'/'。 –
即使我已經在sql腳本的最後一行添加了'/',掛起問題也會再次發生。 nohup在這種情況下並沒有真正的幫助。 –
它仍然表現相同... –