When a Job has a Chain, the next run date can be skipped

I have read more than once in this forum that if a job is still running when the next run date arrives, the job is internally queued and runs as soon as the previous run is finished. The following code was posted to demonstrate :
begin
dbms_scheduler.create_job('j1',
  job_type=>'plsql_block', job_action=>'dbms_Lock.sleep(70);',
  repeat_interval=>'freq=minutely;bysecond=0',enabled=>true);
end;
/On both 10.2.0.4 and 11.2.0.1, the job starts every 70 seconds. Fine.
Now, if I create a job using a PROGRAM and a CHAIN, then the job skips every other run date, so it runs every two minutes. Here is my test case:begin
dbms_scheduler.create_program (
   program_name => 'P1',
   program_type => 'PLSQL_BLOCK',
   program_action => 'DBMS_LOCK.SLEEP(70);',
   enabled=>true);
dbms_scheduler.create_chain (chain_name => 'C1');
dbms_scheduler.define_chain_step('C1', 'STEP1', 'P1');
dbms_scheduler.define_chain_rule ('C1', 'TRUE', 'START STEP1');
dbms_scheduler.define_chain_rule ('C1', 'STEP1 COMPLETED', 'END STEP1.ERROR_CODE');
dbms_scheduler.enable('C1');
dbms_scheduler.create_job (
   job_name => 'J1',
   job_type => 'CHAIN',
   job_action => 'C1',
   repeat_interval => 'freq=minutely;bysecond=0',enabled=>true);
end;
/Is this a bug? I need the chain because my real job has two steps, so is there anything I can do to get the "non-skipping" behavior with a chain? Thanks in advance,
Stew Ashton

Replying to myself :)
While walking to my car, I realized that my "chain" logic could be replaced by an anonymous block with two lines in it!
I guess I outsmarted myself by trying to use all the appropriate features of the Scheduler instead of doing things more simply, but I still think the behavior I observed is incoherent.
I am leaving this question "unanswered" since I won't be able to test my simpler approach until Monday.
Stew Ashton

Similar Messages

  • When filling out a form, some fields copy to others when I tab to the next. How can I make this stop?

    When filling out a form, some fields copy to others when I tab to the next. How can I make this stop?

    You can't using Adobe Reader. It looks like whomever created the form used the same identifiers (names) for various fields. Each field with the same name will populate with the information used in another field of the same name. This is intentional.
    Normally when I see this, it tells me that someone created an initial field then copy/pasted it to make additional fields but forgot to change the names.

  • Hi yours, and it will be sent to O iphone 5s Mobicom Co.? I want Mobicom LLC coming by? apple company iphone 5s faster sent to do Mobicom LLC. When Mobicom LLC phone 5s in the next, and it will send you in the gym did Mobicom LLC ready to send. :))

    Hi yours, and it will be sent to O iphone 5s Mobicom Co.?
    I want Mobicom LLC coming by? apple company iphone 5s faster sent to do Mobicom LLC. When Mobicom LLC phone 5s in the next, and it will send you in the gym did Mobicom LLC ready to send. :))

    What the **** are you on about?
    Do you have a proper question to ask?  If so ask it in a proper and understandable way. 
    What you have typed here is just plain gibberish!!

  • Dreamweaver sudenly stopped connecting to website, fine one day then cannot connect the next. I can connect using CUTEFTP any suggestions what has stopped dreamweaver from connecting?

    Dreamweaver suddenly stopped connecting to website, fine one day then cannot connect the next. I can connect using CUTE FTP any suggestions what has stopped Dreamweaver from connecting?

    Have you tried clearing DW's program cache yet? That's usually my first step if something "just started happening"...
    Deleting a corrupted cache file
    Server updates can cause DW to need a setting change. Have you already tried toggling Use Passive FTP in your site settings yet?
    Has anything changed on your local network, like an update to a firewall?
    If you are connected via wireless router, a low likelihood but possible thing to test would be a wireless router problem. Try connecting the computer directly to your modem, bypassing the wireless router (if you aren't using an all in one modem/router setup) to see if that makes any difference.

  • Getting the next valid date (jump holidays and weekends)

    Hello,
    I have a column table where I have all holidays of the year in the format "yyyymmdd,yyyymmdd,...", for example, "20091012,20091225".
    I'd like to do a query where I pass a date and a increment of days and it returns the next valid date, excluding weekends and the holidays that I have in the column holidays that I show above.
    P.S: Instead of pass a date and a increment of days, I could pass just a already incremented date, and this query just validate this date, adding 2 days for each weekend and one day for each holiday.
    Is there a way to do that?
    Thanks

    Hi,
    Ranieri wrote:
    Hello,
    I have a column table where I have all holidays of the year in the format "yyyymmdd,yyyymmdd,...", for example, "20091012,20091225".Dates should always be stored in DATE columns. If you really want to, your can also store the formatted date in a separate column.
    I'd like to do a query where I pass a date and a increment of days and it returns the next valid date, excluding weekends and the holidays that I have in the column holidays that I show above.For convenience, you can't beat a user-defined function, such as Etbin's.
    If you really want a pure SQL solution, you can
    (a) generate a list of all the days that might be between the start date and end date (sub-query all_days below)
    (b) outer join that to your holiday table (sub-query got_dnum, below)
    (c) rule out the holidays and weekends (sub_query got_dnum, WHERE clause)
    (d) return the nth remaining day (main query below)
    WITH     all_days     AS
         SELECT  TO_DATE (:start_date, 'DD-Mon-YYYY') + LEVEL     AS dt
         FROM     dual
         CONNECT BY     LEVEL <= 3           -- 3 = max. consecutive non-work days
                   + (:day_cnt * 7 / 4)     -- 4 = min. work days per week
    ,     got_dnum     AS
         SELECT     a.dt
         ,     ROW_NUMBER () OVER (ORDER BY a.dt)     AS dnum
         FROM          all_days     a
         LEFT OUTER JOIN     holidays     h     ON     a.dt = TO_DATE (txt, 'YYYYMMDD')
         WHERE     h.txt               IS NULL
         AND     TO_CHAR (a.dt, 'Dy')      NOT IN ('Sat', 'Sun')
    SELECT     dt
    FROM     got_dnum
    WHERE     dnum     = :day_cnt
    ;This assumes :day_cnt > 0.
    The tricky part is estimating how far you might have to go in sub-query all-days to be certain you've included at leas :day_cnt work days.
    Where I work, holidays are always at least 7 days apart.
    That means that there can be, at most, 3 consective days without work (which happens when there is a holiday on Monday or Friday), and that thee are at least 4 work days in any period of 7 consecutive days. That's where the "magic numbers" 3 and 4 come from in the CONNECT BY clause of all_days. Depending on your holidays, you may need to change those numbers.
    P.S: Instead of pass a date and a increment of days, I could pass just a already incremented date, and this query just validate this date, adding 2 days for each weekend and one day for each holiday.Good thought, but it won't quite work. How do you know how many holidays were in the interval? And what if the first step produces a Saturday before a Monday holioday?
    You might be interested in [this thread|http://forums.oracle.com/forums/message.jspa?messageID=3350877#3350877]. Among other things, it includes a function for determining if a given date (in any year) is a holiday, without reference to a table.

  • Question for saving the parameters in order to reload them on the next run of the VI.

    Hello,
    I need your help if it is possible.
    I have an application : Figure1.vi
    For running this vi: first I choice the parameters which I'd like display,for example Courant Isa, Isb, etc..
    and I click on the button Valider for display their respectives curves.
    My question is I'd like to save the last parameters of displaying in order to reload them on the next run of the VI.
    What is the method to save them?
    I think that There are several ways of saving the parameters in order to reload them on the next run of the VI. For my particular case, someone say me that he would recommend usingan .ini file, which can be written using the configuration VI's on the file i/o palette.
    I already See "Write Configuration Settings File.vi" and "Read Configuration Settings File.vi" in the Example Finder for an example of how to do this but I don't know what I must make in my application when I have a graph XY and a multi plot.
    When I click on Enrgistrer:I'd like to save my parameters but when I clik on «Charger», I'd like to reload the last parameters whwen I save.
    Can you help me, please ?
    I send you my files,
    Thannks a lot ,
    Attachments:
    Fig.zip ‏78 KB

    Hello,
    In your case it's perhaps better to use an XML file.
    Connect everything you want to save into and array or a cluster, and then use the "Flatten to XML" and then, "Write to XML File".
    Then in he beginning of you program, use "Read from XML file" and "Unflatten from XML", this should recover the data you previously stored in the file. Connect to the type input of the "Unflatten from XML" the type you created when saving (the array or the cluster of all your data).
    Hope this helps,
    Paulo

  • HT1766 When I have iCloud Backup ON, the battery runs down on my iphone really quickly.  Is there any way of avoiding this ?  Thanks

    When I have iCloud Backup ON, the battery runs down on my iphone really really quickly.  Is there any way of avoiding this.  I want to backup my iphone but don't want to be recharging all day.  Many thanks

    Are you sure the iCloud backup is causing this?  Unless you initiate an iCloud backup manually, it will only back up once per day when the phone is connected to your charger and wi-fi and has the screen locked.  It shouldn't otherwise be consuming any power.

  • My iPod 5th gen touch went through the washing machine. It still works but it has water in the screen and I can't get it out. I put it in uncooked rice for a day but it didn't work. And suggestions??

    My iPod 5th gen touch went through the washing machine. It still works but it has water in the screen and I can't get it out. I put it in uncooked rice for a day but it didn't work. And suggestions??

    Leave it in the rice for at least a day and change the rice every other day or so. The rice and iPod should be in a sealed container.
    Apple will exchange your iPod for a refurbished one for $149. They do not fix yours.
    Apple - iPod Repair price              
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the screen yourself if you are up to it
    iPod Touch Repair – iFixit

  • HT3275 My Time Capsule keeps saying "backup failed" due to the network password not being correct. I have not changed my password and every day I have to type the same one in and then it works. But then the same thing happens the next day. Can anyone help

    My Time Capsule keeps saying "backup failed" due to the network password not being correct. I have not changed my password and every day I have to type the same one in and then it works. But then the same thing happens the next day. Can anyone help? This only started doing this about 2 weeks ago.

    Hello,
    Mac OS X 10.4 Help, I forgot a password in my Keychain
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1960.html
    Resetting your keychain in Mac OS X...
    If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
    http://support.apple.com/kb/TS1544
    Open Keychain Access in Utilities, use Keychain First Aid under the Menu item, then either check the Password under that item, change it, or delete it and start over.

  • I purchased a Belkin MDP to HDMI cable 4M and found mine the next day. Can I return it to the store. I have the box and receipt.

    I purchased a Belkin MDP to HDMI cable 4M and found mine the next day. Can I return it to the store. I have the box and receipt.

    I believe you can.

  • I recently updated to the OSX 10.8.3 Operating Sistem.  I am writing a book and now cannot open any word document I've created.  Could not find a newer version of the Microsoft Word Processing Program.  Is Pages the next thing? Can I recover my documents?

    I recently updated to the OSX 10.8.3 Operating Sistem.  I am writing a book and now cannot open any word document I've created with the old system.  Could not find a newer version of the Microsoft Word Processing Program.  Is Pages the next thing? Can I recover my documents?  How?

    I'm in the same boat: new to OS X and Mac, and in the middle of a book. I switched because I heard about the the ease of using Mac, but so far, for me, it's been a nightmare. I bought 2011 Office Mac and hate everything about it, the most recent being the inability to open or cut or paste any of my original word files. I understand that this could have easily been done with earlier versions, but not Mountain Lion (which I learned is what OSX is.) Since I work with language, I am amazed at the assumptions of the Apple community. It helps to use common language and explain even the basics.  
    So all the helpful hints to use the latest version of Office Mac are to no avail. Now what?

  • I can't get my phone to plant a song it just skips to the next one, how can i fix this?

    i can’t get my phone to plant a song it just skips to the next one, how can i fix this?

    Hey Mclovinz,
    I found the following article that goes over what you can do if your iPod skips while playing a song:
    Troubleshooting songs that skip
    http://support.apple.com/kb/ts3217
    Have a good one,
    David

  • Calculating the next meeting date and the number of days until that

    Hi all,
    I created a meeting log page and I made a query that returns the most recent meeting date:
    to_char("MFR_MEETING_LOG_MAIN"."ML_MEETING_DATE",'MM/DD/YYYY')
    What I want to do is to calculate the next meeting date which is 6 month after the most recent meeting and the number of days until the next meeting.
    How do I do that? THank you very much for the help in advance!

    Basic SQL:
    Datetime/Interval Arithmetic.
    ADD_MONTHS function.
    If you're new to Oracle and SQL it may be advisable at this point to complete the Database 2 Day Developer's Guide.

  • My iphone 5 ATT, i can hear the recording, but can not hear anything from neither ear speaker or loud speaker when i call? what is the problem? what can i do, it is out of warranty.

    My iphone 5 ATT, i can hear the recording, but can not hear anything from neither ear speaker or loud speaker when i call? what is the problem? what can i do, it is out of warranty.

    1357b wrote:
    My iphone 5 ATT, i can hear the recording
    What recording?
    but can not hear anything from neither ear speaker or loud speaker when i call?
    You just wrote you could hear the recording...
    You can take it into an Apple store and have it checked out.

  • I copied my itunes library via an external hard drive. now when i connect my ipod to the new computer i can see my music but my apps are disabled

    i copied my itunes library via an external hard drive. now when i connect
    my ipod to the new computer i can see my music but my apps are disabled

    Here are the official Apple Support instructions:
    http://support.apple.com/kb/HT4527
    Ciao.

Maybe you are looking for

  • Ipod nano possible with win 2000???

    my wife just got an ipod nano \(3rr gen) for her bday, and we have a computer with win 2000. now the only itunes we can find for win 2000 is ver. 7.3. when i downloaded this it tells me that i need ver. 7.4 or better. anyone got any info or tips for

  • How to open iWeb? but it wont stop asking for a jpg

    how  i ask my MBP to open a Jpg with iWeb, it did not work. but now opening iWeb it go's cant find that jpg. i no where it is

  • HT201210 Why can't I change the location of my device backups?

    Why can't I change the location of my device backups? iTunes seems to force me to use my c:\ drive as the destination for all backups.  Background: I have set up my c:\ drive only for programs - all data is stored on separate drives - including my iT

  • Handling IMAQ Images in the TestStand Opeator Interface

    I'm modifying the LabVIEW Operator Interface to display images from IMAQ VIs on the front panel. I've got it to work a number of ways, but never if I compile the interface into an executable. I've tried using the "IMAQ Image Cluter to Image Dataype"

  • Problems with video settings after upgrade to  final cut 5.0

    I upgraded my G5 to 10.4.10; and final cut to studio 5, and alkso tried studio 2 final cut 6 both times I get the message: cannot find firewire device. I am using a Sony DSR 25 dvcam deck, and it is recognized a such on the firewire buss in the About