最近在一個測試環境中建立物化視圖遠程同步環境
JobsNotExecuting Automatically文檔ID:注釋:
Symptoms
Jobs arenolonger executing automatically
Ifforced(execdbms_job
Cause
Tryingthemost common reasons why jobs don
Check if the instance is in restricted sessions mode:
select instance_name
If logins=RESTRICTED
alter system disable restricted session;
^
Make sure that job_queue_processes is >
show parameter job_queue_processes
^
Check if _system_enabled_trigger=false
col parameter format a
col value format a
select a
Where a
^
select job
If broken
^
Make sure a commit is issued after submitting the job:
DECLARE X NUMBER;
BEGIN
SYS
(
job => X
(
);
COMMIT;
END;
/
If the job executes fine if forced (i
is missing
^
Check if the server (machine) has been up for more than
For SUN
If uptime>
(Jobs may stop running after
^
Check dba_jobs_running to see if the job is still running:
select * from dba_jobs_running;
^
Check if the last_date and next_date for the job are proper:
select Job
^
Check if the Next_date is changing properly as per the interval set in dba_jobs:
select Job
^
Set job_queue_processes=
alter system set job_queue_processes=
alter system set job_queue_processes=
Ref: Bug
^
Last ditch effort
Either restart the database or try the following:
exec dbms_ijob
Ref: Bug
@Note
Done but did not help
These are the most common causes for this behavior
Solution
The solution ended up to be the server (machine) uptime
Even though it was up for only
To implement the solution
From:http://tw.wingwit.com/Article/program/Oracle/201311/18325.html