Why oracle scheduler is not running [message #584414] |
Tue, 14 May 2013 03:29 |
|
sss111ind
Messages: 636 Registered: April 2012 Location: India
|
Senior Member |
|
|
Hi All,
Why Oracle shceduler is not running.What could be the cause.Please help me.
CREATE TABLE dept1 AS SELECT * FROM dept;
CREATE OR REPLACE
procedure update_record(p_deptno number)is
BEGIN
insert into dept1 values(p_deptno,'xxx','xxx');
end;
BEGIN
DBMS_SCHEDULER.CREATE_PROGRAM (
program_name => 'all_record_program1',
PROGRAM_TYPE => 'STORED_PROCEDURE',
program_action => 'UPDATE_RECORD',
number_of_arguments => 1,
ENABLED => FALSE,
comments => 'Program to insert records.');
DBMS_SCHEDULER.define_program_argument (
PROGRAM_NAME => 'all_record_program1',
argument_name => 'p_deptno',
argument_position => 1,
ARGUMENT_TYPE => 'NUMBER',
default_value => '90');
DBMS_SCHEDULER.ENABLE (NAME => 'all_record_program1');
DBMS_SCHEDULER.CREATE_SCHEDULE (
schedule_name => 'all_record_schedule1',
start_date => SYSTIMESTAMP,
repeat_interval => 'FREQ=MINUTELY; INTERVAL=5; BYSECOND=00;',
END_DATE => NULL,
comments => 'Repeats every 5 minutes.');
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'all_record_job1',
program_name => 'all_record_program1',
schedule_name => 'all_record_schedule1',
ENABLED => TRUE,
comments => 'Job defined to insert records into the dept table.');
END;
Regards,
Nathan
|
|
|
|
|
|
|
|
|
Re: Why oracle scheduler is not running [message #584443 is a reply to message #584436] |
Tue, 14 May 2013 06:55 |
cookiemonster
Messages: 13959 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
sss111ind wrote on Tue, 14 May 2013 12:02Hi Michel,
How can I check the alert.log file and what to check there.I don't have the permission also to do that.
You look for errors relating to the scheduler. If you don't have permission ask someone who does.
And how the heck do you have permission to alter system parameters but don't have access to the alert.log?
|
|
|
|
|
|
Re: Why oracle scheduler is not running [message #584547 is a reply to message #584546] |
Wed, 15 May 2013 05:45 |
cookiemonster
Messages: 13959 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
This is really a DBA issue. If you're acting as the DBA then you must have access to the alert.log and other trace files on the server.
If someone else has that job ask them to fix it and stop messing about with system parameters.
|
|
|
|
|
Re: Why oracle scheduler is not running [message #584829 is a reply to message #584546] |
Sat, 18 May 2013 12:58 |
|
Barbara Boehmer
Messages: 9100 Registered: November 2002 Location: California, USA
|
Senior Member |
|
|
sss111ind wrote on Wed, 15 May 2013 03:09
...
Till day before yesterday scheudlers were running smoothly.Every week the oracle restarted .So is there some issue if it is not properly restarted.But in production other scheduler are running fine .only the issue is with quality and development dbs.
...
Has your OracleJobScheduler... service been started from the operating system of the server? Given what you have described, I would suspect that might be the problem.
[Updated on: Sat, 18 May 2013 13:19] Report message to a moderator
|
|
|
|