知识大全 OracleJob不自动运行解决办法
Posted 机制
篇首语:人生不是一种享乐,而是一桩十分沉重的工作。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 OracleJob不自动运行解决办法相关的知识,希望对你有一定的参考价值。
OracleJob不自动运行解决办法 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!
ORACLE有一种定时调度机制 用dbms_job包来管理
设置的JOB就是不运行 搞得的郁闷
最好执行了这个才搞定 exec dbms_ijob set_enabled(true);
下面提供一个checklist用于检查job异常的原因
) 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!
) JOB_QUEUE_PROCESSES=
Make sure that job_queue_processes is >
show parameter job_queue_processes
^– Checked!
) _SYSTEM_TRIG_ENABLED=FALSE
Check if _system_enabled_trigger=false
col parameter format a
col value format a
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!
) Is the job BROKEN?
select job broken from dba_jobs where job=<job_number>;
If broken then check the alert log and trace files to diagnose the issue
^– Checked! The job is not broken
) Is the job MITted?
Make sure a mit is issued after submitting the job:
DECLARE X NUMBER;
BEGIN
SYS DBMS_JOB SUBMIT
(
job => X
what => dbms_utility analyze_schema
( SCOTT PUTE NULL NULL NULL);
next_date => to_date( / / : : ′ dd/mm/yyyy hh :mi:ss )
no_parse => FALSE
);
MIT;
END;
/
If the job executes fine if forced (i e exec dbms_jobs run(<job_no>);) then likely a mit
is missing
^– Checked! The job is mitted after submission
) UPTIME > days
Check if the server (machine) has been up for more than days:
For SUN use uptime OS mand
If uptime> and the jobs do not execute automatically then you are hitting unpublished bug
(Jobs may stop running after days uptime) which is fixed in and A
^– Checked! The server in this case has been up days only
) DBA_JOBS_RUNNING
Check dba_jobs_running to see if the job is still running:
select * from dba_jobs_running;
^– Checked! The job is not running
LAST_DATE and NEXT_DATE
Check if the last_date and next_date for the job are proper:
select Job Next_date Last_date from dba_jobs where job=<job_number>;
^– NEXT_DATE is porper however LAST_DATE is null since the job never executes automatically
) NEXT_DATE and INTERVAL
Check if the Next_date is changing properly as per the interval set in dba_jobs:
select Job Interval Next_date Last_date from dba_jobs where job=<job_number>;
^– This is not possible since the job never gets executed automatically
) Toggle value for JOB_QUEUE_PROCESSES
Stop and restart CJQ process(es)
alter system set job_queue_processes= ;
–<Wait for some time to ensure CJQ process stopped>
alter system set job_queue_processes= ;
Ref: Bug (fixed by: )
^– Done but did not help
) DBMS_IJOB(Non documented):
Last ditch effort
Either restart the database or try the following:
exec dbms_ijob set_enabled(true);
Ref: Bug (Closed Not a Bug)
Done but did not help
These are the most mon causes for this behavior
Solution
The solution ended up to be the server (machine) uptime
Even though it was up for only days after the server was rebooted all jobs were able to execute automatically
To implement the solution please execute the following steps:
Shutdown all applications including databases
Shutdown the server (machine)
Restart all applications including databases
Check that jobs are executing automatically
cha138/Article/program/Oracle/201311/16944相关参考
一、小麦播种机排种器不排种。主要原因是传动齿轮没有啮合,或者排种轴头排种齿轮方孔磨损,调整、维修或更换。二、个别排种器不工作。原因是个别排种盒内种子棚架或排种器口被杂物堵塞,应清理杂物;排种轴与个别排
一、小麦播种机排种器不排种。主要原因是传动齿轮没有啮合,或者排种轴头排种齿轮方孔磨损,调整、维修或更换。二、个别排种器不工作。原因是个别排种盒内种子棚架或排种器口被杂物堵塞,应清理杂物;排种轴与个别排
运行ASP时脚本超时问题最终解决办法 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!运行ASP时遇到
2种解决ASP运行出现脚本超时的办法 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!lishixin
前一天还好好的clipse今天上班打开以后居然不能调试和运行了也不能加断点开始以为是workspace的问题就重新建立了一个workspace结果还是不行我又重新下
某制浆造纸企业废水处理站由于车间生产不稳定,运行中存在废水水量波动大,初沉池处理效果差,曝气池污泥老化,二沉池浮渣等故障。经现场综合调查化验分析,对系统故障采取了有效的解决办法,系统逐渐恢复正常,出水
某制浆造纸企业废水处理站由于车间生产不稳定,运行中存在废水水量波动大,初沉池处理效果差,曝气池污泥老化,二沉池浮渣等故障。经现场综合调查化验分析,对系统故障采取了有效的解决办法,系统逐渐恢复正常,出水
某制浆造纸企业废水处理站由于车间生产不稳定,运行中存在废水水量波动大,初沉池处理效果差,曝气池污泥老化,二沉池浮渣等故障。经现场综合调查化验分析,对系统故障采取了有效的解决办法,系统逐渐恢复正常,出水
浅谈锅炉除尘系统分室低压脉冲袋式除尘器运行存在的几个问题及解决办法
某厂有两台35t/h循环流化床锅炉和两台35t/h链条炉排锅炉,所生成的烟气中的灰尘由旋风子式除尘器和立式和卧式文丘里水膜除尘器两级除尘后排放到大气中.近年来由于环保要求日益严格,特别是北京市对燃煤锅
浅谈锅炉除尘系统分室低压脉冲袋式除尘器运行存在的几个问题及解决办法
某厂有两台35t/h循环流化床锅炉和两台35t/h链条炉排锅炉,所生成的烟气中的灰尘由旋风子式除尘器和立式和卧式文丘里水膜除尘器两级除尘后排放到大气中.近年来由于环保要求日益严格,特别是北京市对燃煤锅