oracle怎么自动运行,OracleJob不自动运行的解决办法是怎样的?

ORACLE有一种定时调度机制,用dbms_job包来管理。  设置的JOB就是不运行,搞得的郁闷,  最好执行了这个才搞定 exec dbms_ijob。set_enabled(true);  下面提供一个checklist用于检查job异常的原因:  1) Instance in RESTRICTED SESSIONS mode?  Check if the instance is in restricted sessions mode:  select instance_name,logins from v$instance;  If logins=RESTRICTED, then:  alter system disable restricted session;  ^– Checked!  2) JOB_QUEUE_PROCESSES=0  Make sure that job_queue_processes is > 0  show parameter job_queue_processes  ^– Checked!  3) _SYSTEM_TRIG_ENABLED=FALSE  Check if _system_enabled_trigger=false  col parameter format a25  col value format a15  select a。

ksppinm parameter,b。ksppstvl value from x$ksppi a,x$ksppcv b  where a。indx=b。indx and ksppinm=’_system_trig_enabled’;  If _system_trig_enabled=false, then  alter system set “_system_trig_enabled”=TRUE scope=both;  ^– Checked!  4) Is the job BROKEN?  select job,broken from dba_jobs where job=;  If broken, then check the alert log and trace files to diagnose the issue。

^– Checked! The job is not broken。

5) Is the job COMMITted?  Make sure a commit is issued after submitting the job:  DECLARE X NUMBER;

以上是我对于这个问题的解答,希望能够帮到大家。

全部

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值