FAQ
Hi everybody. I have a particular job created using dbms_scheduler that currently runs once a day at 7am. But now I would like to run this same job at 7, 930, and 12. Is it possible to configure this for the one job or am I going to have to create a second one. I know how to set it to run at 7 and 12 because they are on the hour, but the 930 one I am thinking will have to be on its own job.
Let me know if this is possible.
Thanks for any help.

Jeff

Search Discussions

  • Morten Egan at Aug 21, 2011 at 5:37 am
    Yes, that is possible

    Create 2 different schedules (one for the 7 and 12 run, and one for the 9.30
    run) and then include the 9.30 schedule into the 7,12 schedule using the
    INCLUDE statement:

    FREQ=DAILY; BYHOUR=7,12; INCLUDE=my_other_schedules;

    where "my_other_schedules" is a an already created schedule, containing
    other execution time, that does not fit into the general one.

    2011/8/19 Jeff Chirco
    Hi everybody. I have a particular job created using dbms_scheduler that
    currently runs once a day at 7am. But now I would like to run this same job
    at 7, 930, and 12. Is it possible to configure this for the one job or am I
    going to have to create a second one. I know how to set it to run at 7 and
    12 because they are on the hour, but the 930 one I am thinking will have to
    be on its own job. ****

    Let me know if this is possible.****

    Thanks for any help.****

    ** **

    *Jeff*****
    --
    Regards,
    Morten Egan
    http://www.dbping.com

    --
    http://www.freelists.org/webpage/oracle-l
  • Jeff Chirco at Aug 25, 2011 at 7:46 pm
    I did that following this method but it doesn't work right. The job runs at 730, 930, and 1230 instead of 7, 930, and 12. Why would it do that?

    begin
    dbms_scheduler.create_schedule('LOAD_1', repeat_interval =>
    'FREQ=DAILY;BYHOUR=7,12');

    END;

    /
    begin
    dbms_scheduler.create_schedule('LOAD_2', repeat_interval =>
    'FREQ=DAILY;BYHOUR=9;BYMINUTE=30');

    END;

    /
    begin
    dbms_scheduler.create_schedule('LOAD_MAIN', repeat_interval =>
    'LOAD_1, LOAD_2');

    END;

    /

    From: anameofnoname_at_gmail.com On Behalf Of Morten Egan
    Sent: Saturday, August 20, 2011 10:37 PM
    To: Jeff Chirco
    Cc: oracle-l@freelists.org
    Subject: Re: dbms_scheduler - run same job at different times

    Yes, that is possible

    Create 2 different schedules (one for the 7 and 12 run, and one for the 9.30 run) and then include the 9.30 schedule into the 7,12 schedule using the INCLUDE statement:

    FREQ=DAILY; BYHOUR=7,12; INCLUDE=my_other_schedules;

    where "my_other_schedules" is a an already created schedule, containing other execution time, that does not fit into the general one.
    2011/8/19 Jeff Chirco >
    Hi everybody. I have a particular job created using dbms_scheduler that currently runs once a day at 7am. But now I would like to run this same job at 7, 930, and 12. Is it possible to configure this for the one job or am I going to have to create a second one. I know how to set it to run at 7 and 12 because they are on the hour, but the 930 one I am thinking will have to be on its own job.
    Let me know if this is possible.
    Thanks for any help.

    Jeff
  • Anthony Ballo at Aug 25, 2011 at 9:53 pm
    Is anyone managing SOA (Fusion Middleware) instances ?

    I'm trying to work out a retention policy and I'm having a hard time
    figuring out how much space a average composite instance takes up in our
    DB. Was wondering if anyone had any pointers?

    Thanks in advance,

    Anthony

    Fusion Middleware 11.1.1.5
    Linux x86-64
    DB 10.2.0.4
    Avergage instances/day = 1000
    No regulatory requirements
  • Anonymous at Aug 26, 2011 at 7:04 am
    Morning,
    I did that following this method but it doesn't work right.
    The job runs at 730, 930, and 1230 instead of 7, 930, and
    12. Why would it do that?
    Because you created the LOAD_1 schedule at a time of day when
    to_char(sysdate,'MI') returned '30'. :-)

    I just - at 07:39 created a LOAD_1 schedule and In Toad, extracted the
    next 10 scheduled run times, they were all at 7:39 and 12:39. This
    propagates through to the LOAD_MAIN schedule.

    Do this to fix it:

    dbms_scheduler.create_schedule('LOAD_1', repeat_interval =>

    'FREQ=DAILY;BYHOUR=7,12; BYMINUTE=0');

    END;

    /

    Add a BYMINUTE to the schedule, or alternatively, use the startdate
    parameter to set a starting date that include '00' as the minutes. And
    it's a timestamp not a date, just for added fun. (I hate timestamps,
    especially those with timezones - as this is!)

    HTH

    Cheers,
    Norm.

    PS. Yesterday was the first time ever I had to create a schedule (!!!)
    and I had exactly the same problem you did - the minutes was all over
    the place until I realised that it reflected the fact that the default
    start time appears to be systimestamp. So the minutes and seconds part
    is simply defaulted to the time that the schedule was created. I found
    that by adding either a startdate or a BYMINUTE, I got it to run on the
    hour as required - but there's not much I can do about the seconds -
    unless I use a startdate with zero seconds.

    PPS. This might be useful http://www.packtpub.com/mastering-oracle-scheduler-in-oracle-11g-databas
    es/book

    Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

    We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
    We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

    If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk
  • Jeff Chirco at Aug 26, 2011 at 6:19 pm
    Ok thank you. I think that worked.

    Jeff

    -----Original Message-----
    From: Dunbar, Norman (Capgemini)
    Sent: Friday, August 26, 2011 12:05 AM
    To: Jeff Chirco; Morten Egan
    Cc: oracle-l@freelists.org
    Subject: RE: dbms_scheduler - run same job at different times

    Morning,
    I did that following this method but it doesn't work right.
    The job runs at 730, 930, and 1230 instead of 7, 930, and 12. Why
    would it do that?
    Because you created the LOAD_1 schedule at a time of day when
    to_char(sysdate,'MI') returned '30'. :-)

    I just - at 07:39 created a LOAD_1 schedule and In Toad, extracted the next 10 scheduled run times, they were all at 7:39 and 12:39. This propagates through to the LOAD_MAIN schedule.

    Do this to fix it:

    dbms_scheduler.create_schedule('LOAD_1', repeat_interval =>

    'FREQ=DAILY;BYHOUR=7,12; BYMINUTE=0'); END; /

    Add a BYMINUTE to the schedule, or alternatively, use the startdate parameter to set a starting date that include '00' as the minutes. And it's a timestamp not a date, just for added fun. (I hate timestamps, especially those with timezones - as this is!)

    HTH

    Cheers,
    Norm.

    PS. Yesterday was the first time ever I had to create a schedule (!!!) and I had exactly the same problem you did - the minutes was all over the place until I realised that it reflected the fact that the default start time appears to be systimestamp. So the minutes and seconds part is simply defaulted to the time that the schedule was created. I found that by adding either a startdate or a BYMINUTE, I got it to run on the hour as required - but there's not much I can do about the seconds - unless I use a startdate with zero seconds.

    PPS. This might be useful http://www.packtpub.com/mastering-oracle-scheduler-in-oracle-11g-databas
    es/book

    Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

    We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
    We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

    If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouporacle-l @
categoriesoracle
postedAug 19, '11 at 5:42p
activeAug 26, '11 at 6:19p
posts6
users4
websiteoracle.com

People

Translate

site design / logo © 2022 Grokbase