Home » SQL & PL/SQL » SQL & PL/SQL » dbms_scheduler -WeekDays scheduling program. (Oracle 11g, Windows)
dbms_scheduler -WeekDays scheduling program. [message #637288] Thu, 14 May 2015 07:35 Go to next message
vicktorz
Messages: 26
Registered: March 2013
Junior Member
Dear Everone,

I'm looking for few information about dbms_scheduler.create_job.

I want the job should run only in weekday(i.e monday to friday , not in saturday and sunday).

could anyone please tell me how to change inpurt parameter for my requirement.

Quote:


dbms_scheduler.create_job(job_name => 'DIAL_STOP_MASTER_CHAIN_JOB',
job_type => 'STORED_PROCEDURE',
job_action => 'PR_DIAL_STOP_MASTER_CHAIN_JOB',
start_date => SYSTIMESTAMP,
end_date => '23-May-15 07.00.00.495180000 AM +01:00',
repeat_interval => 'freq=daily;byhour=12;byminute=0;bysecond=0',
enabled => TRUE,
auto_drop => TRUE,
comments => ' Schedular for DIAL_STOP_MASTER_CHAIN_JOB');


Thanks in Advance!!.


-Vijay
Re: dbms_scheduler -WeekDays scheduling program. [message #637289 is a reply to message #637288] Thu, 14 May 2015 07:38 Go to previous messageGo to next message
John Watson
Messages: 8929
Registered: January 2010
Location: Global Village
Senior Member
You have "byhour", "byminute", and "bysecond". Do you think that there might any other "by..." possibilities?
Re: dbms_scheduler -WeekDays scheduling program. [message #637290 is a reply to message #637288] Thu, 14 May 2015 07:38 Go to previous message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
you could add code inside STORED_PROCEDURE to exit if SYSDATE is SATURDAY or SUNDAY
Previous Topic: want data of all columns in a single column (no concatenate)
Next Topic: Viewing Object values in select and fill (multiple rows)
Goto Forum:
  


Current Time: Thu Apr 18 22:32:26 CDT 2024