Job with Multiple Schedule of same time & only one is executed, Why

Hi ALL,
I've Created a package to notify report in email  as excel, which is using a path to render report and save it as excel.
This package was need to be schedule every first day of month and on every Friday even at morning 7 AM.
So logically these are two events.
But if we see on 1 May 2015 we have Friday and plus first day of month
So technically this should fail.
either for IO operation for render &
storing data over same location with same file name.
To replicate this i created two three schedule
Below is the job history, job is invoked by only one schedule
Question-
1) Why one one schedule execute?
2) why "sched2" only , it could be "sched3" only or "DentalOperationStackAndRank-Sched1" Only?
Another this i result into error if different job executing same package at same schedule.
FYI- package is deployed at database level
HS

Hi HS,
As described in this
article, more than one job can run on the same schedule, and more than one schedule can apply to the same job.
And I make a test about your scenario, when configuring a SQL Server job with three schedules that reference same dates and times, my job behaves as yours that only one schedule is executed, but the job is invoked by schedule2 or schedule 3 in my environment.
It is a normal behavior of SQL Server job in my opinion. For more details about such scenario, you can track the job following this
blog.
However, when I configure three jobs that run on the same schedule, everything works well and the three jobs all run successfully.
 I recommend you configure three different jobs that execute same package at same schedule .
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support

Similar Messages

  • Event based scheduler job - 2 events at the same time only 1 run

    Hi,
    i converted our dbms_job - jobs to the newer package dbms_scheduler.
    It is a 10.2.0.4 patch 23(8609347) database on an windows server 2003 R2 Enterprise x64 Edition SP2.
    The Jobs(about 130) are nothing special ... only some statistics, matview-refreshes and so on.
    For the notification of failed jobs and jobs which run over the max_run_duration i downloaded and installed the job notification package.
    The jobs are assigned to different departments and the corresponding developer teams in our company.
    I created a notification job for each department and if a job fails we (the database administrators) and the corresponding deverlopers will be informed.
    Now i ascertained that only 1 email will be send if 2 jobs of the same department fails at the same time.
    The emailer-jobs are auto-generated by the job notification package. I only modified them to look after all jobs of special department and not only after one job. (--> event_condition ... object_name LIKE 'XXX%')
    example for dba-jobs(copy of the script output of TOAD):
    SYS.DBMS_SCHEDULER.CREATE_JOB
           job_name        => 'DBA_JOBS_EMAILER'
          ,start_date      => NULL
          ,event_condition => tab.user_data.object_name LIKE ''DBA%'' AND tab.user_data.event_type in (''JOB_FAILED'',''JOB_OVER_MAX_DUR'')'
          ,queue_spec      => 'SYS.SCHEDULER$_EVENT_QUEUE, JOB_FAILED_AGENT'
          ,end_date        => NULL
          ,program_name    => 'SYS.EMAIL_NOTIFICATION_PROGRAM'
          ,comments        => 'Auto-generated job to send email alerts for jobs "DBA%"'
        );I thought that a queue is used to manage all events from the scheduler jobs. So i made a test with 2 dba jobs and simulated a failure at the same time but i received only one mail.
    So what is happend with the second event? I looked for the events in the qtab(SCHEDULER$_EVENT_QTAB) which belongs to the event queue(SYS.SCHEDULER$_EVENT_QUEUE) and no event was missing.
    So i think the emailer job has to run 2 times.
    Is anyone able to explain or to find my mistake?
    I know that the easiest way is to create one emailer job for each normal job but i think this is a little bit costly because all the arguments are the same for one department.
    Thanks & Regards

    Thanks for your fast answer.
    You are right with the "enabled => TRUE;" part and i only forgot to post it.
    So the Job is enabled (otherwise it would not send any mail). Because it is sending one mail i think it is also not necessary to hand over a job_type.
    Additionally the job starts a program ... so it is right to set the job_type='STORED_PROCEDURE' isn't it?
    And also right ... i already added the agent as subscriber to the queue.
    Anyway i think the whole thing do what it have to do. So in my oppinion there are no big mistakes in creating the job or at adding the subscriber.
    There are also no problem in raising the events by itself and enqueue them in the scheduler event queue.
    There is only a problem when 2 jobs fails (or run out ouf max duration) at exactly the same time.
    If i understand it right:
    The agent/subscriber will find the "JOB_FAILED"-event for the first Job in the queue and starts the emailer Job.
    The agent will also find the "JOB_FAILED"-event for the second Job and wants to start the emailer Job again.
    I don't know if this is really the problem but perhaps the emailer-job can not be started in consequence of the second event because ist is already running.
    I also don't know if this is a mistake of the agent or of the emailer-job by itself.
    I only want that it runs two times (one run for each event). I my case it also doesn't matter which email is send at first.

  • 2 videos, same format, only one syncing.  Why?

    I have 2 home movies. One will sync and the other will not. I have tried converting the file 1 billion times using MPEG Streamclip and Handbrake. Nothing works. They are both the very same format. Both are MPEG-4, 720x576, H.264, AAC. So, why will one sync and not the other?

    Which default setting are you using for the conversion with HandBrake?
    Since I have an Apple TV, I use the Apple TV default setting which also allows for transferring the video to my iPhone.

  • Job with multiple event schedules

    Is it possible to create a job with multiple schedules? Can you have multiple schedule names?
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'my_new_job2',
    job_type => 'PLSQL_BLOCK',
    job_action => 'BEGIN SALES_PKG.UPDATE_SALES_SUMMARY; END;',
    schedule_name => 'my_saved_schedule, my_saved_schedule2'); <------------------ like this?
    END;
    thanks.

    I am using oracle 10g and have installed the file arrival package. I want my job to run when multiple files arrive. I have created the file arrival event schedules. I know i can create chain event steps to respond, but my chain has to be running for the steps to respond to the events. I want the chain (or rather the job that starts the chain) to kick off when 2 or more files arrive.
    thanks.

  • Schedule job with JOB_CLOSE until a certain time

    Hello all,
    I'd like to schedule a background job with JOB_CLOSE until a certain time, i.e. first start time at 10 a.m., repitition period 15 min., last start time 1 p.m.
    I tried this using parameter LASTSTRTTM, e.g.:
    i_startdate = sy-datum.
    i_starttime = '100000'.
    i_prdmins = '15'.
    i_laststrtdt = sy-datum.
    i_laststrttm = '130000'.
    CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = l_jobcount
          jobname              = 'MY_JOB'
          sdlstrtdt            = i_startdate
          sdlstrttm            = i_starttime
          laststrtdt           = i_laststrtdt
          laststrttm           = i_laststrttm
          prdmins              = i_prdmins
        EXCEPTIONS
          cant_start_immediate = 1
          invalid_startdate    = 2
          jobname_missing      = 3
          job_close_failed     = 4
          job_nosteps          = 5
          job_notex            = 6
          lock_failed          = 7
          OTHERS               = 8.
    but I didn't succeed - the job didn't stop at 1 p.m. Any hints?
    Best regards
    Martin Lehmann

    Hi Martin,
    i_startdate = sy-datum.  " 1st time Job Start Date
    i_starttime = '100000'.
    i_prdmins = '15'.
    i_laststrtdt = sy-datum.  " If Job is not started by this date, then it wont be started once this date is completed
    i_laststrttm = '130000'.
    What it means is, if i want to start a job by 10th Oct.. & expect that it should be started maximum by 20th Oct.. If its 20th Oct & still the job is not started,... then terminate the job & do not start it..
    If the job is already started, then it wont stop.
    Hope its clear.
    Best regards,
    Prashant

  • How can I record a guitar and my voice (only voice with mic) at the same time ?, how can I record a guitar and my voice (only voice with mic) at the same time ?

    how can I record a guitar and my voice (only voice with mic) at the same time ? I have one interface with Input 1 mic, Input 2 guitar, everything is working correct, but how can I activate multi recording or something like that... thanks

    Set your inputs on your channel strips and make sure you have one set to input 1 and the other input 2.  Arm the 2 audio tracks(the "R" in the track header. They will turn red and flash), then hit the record button. 

  • Schedule a Job with multiple steps via ABAP Program

    Hi Friends,
    I want to create a report(Ex: ZREP) that will run another program(Ex: ZPGM) in background. What I need to do is, when I execute the report ZREP it should run the ZPGM automatically in background. This background execution should happen through JOB with multiple steps.
    Why i am mentioned steps is, i have 1000 records in ZTABLE and need to execute 100 records each in one step and need to proecess in ZPGM with selection parameters. So in my case my job should create with 10 steps and need to execute in sequential manner.
    FYI, In the ZREP selection screen i need to enter the records count/ interval to derive the job steps.
    Please guide how to go ahead? Thanks in advance for all the help.
    Regards,
    Raghu.

    Hi Raghu,
    You can try the following pieces of code:
    Loop at gt_table.   "This table contains 100 records previously appended
    w_jobname = c_job_emision   "Job Name.
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname          = w_jobname
          IMPORTING
            jobcount         = w_jobacount
          EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    * Perform or create T_SELTAB with parameters options
    PERFORM Create_seltab_table.
    *Call second program.
    SUBMIT ZREP WITH  SELECTION-TABLE t_seltab AND RETURN.
    *Close Job.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = w_jobacount
            jobname              = w_jobname
            strtimmed            = c_x  "Immediate Start
         EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    ENDLOOP.
    Hope this helps.
    Regards
    Ernesto
    PS: Raymond Giuseppi was faster.
    Edited by: Ernesto Caballero on Mar 10, 2010 1:57 PM

  • Job with multiple variant

    Dear Friends,
    I have some jobs which has many variants. So it possible to create a job with multiple variants or only option is to create job chain.
    Please suggest.
    Thanks in advance.
    Regards,
    Jiggi

    Hi,
    You can submit the same job with different variant, but that is your runtime.
    Limitation is that you can't migrate all these runtime jobs.
    It is better you create different jobs with different variants, so that you have frexibility to run them independently, monitor and troubleshoot them, also migrate them to next environment (QA or PRD). And you can still create a job chain using all these independent jobs if require.
    Only creating Job Chain would be useful only if you want to run them in parallel or in sequence. (Not if you want to run them independently).
    Hope this help.
    regards,
    Sunil Rohit

  • ITunes is totally frozen with multiple paints of same screen within itself. Also incredibly slow. Are there alternative players I can use with my iPhone, or must I use iTunes with my iPhone? iTunes is effectively unusably slow.

    iTunes is totally frozen with multiple paints of same screen within itself. Also incredibly slow. Are there alternative players I can use with my iPhone, or must I use iTunes with my iPhone? iTunes is effectively unusably slow. I am using Windows 7.
    I only use it once every few weeks and each time it is more disappointing than the previous time. does it run better on a Mac than Windows? Is this app really the future of media? Really?

    I am using iTunes 11.1.3 -- The most recent version. When I select something from my albums it just freezes. I have restarted it a few times with same result.

  • Help using /AFS/BAPI_PO_CREATE with multiple schedule lines

    I'm using /AFS/BAPI_PO_CREATE to create POs and everything works fine until I pass an item with multiple schedule lines. 
    When you pass multiple schedules it is giving each of the schedule lines under an item the same grid value!  So if I want to order one black, one white shirt...  both grid values are changed to black when the PO is created.
    I'm wondering if you need to pass some sort of sequence value into the BAPI when you have multiple schedule lines for an item.  Does anyone know?

    Hi Justin
    Please make sure that you are specifying the <b>item number</b> while passing the ITEM Details and their correponding SCHEDULE lines.
    Though i couldnt find FM: /AFS/BAPI_PO_CREATE in our system, i guess it is similar to BAPI_PO_CREATE.
    Kind Regards
    Eswar

  • Will it be possible to run several jobs in background at the same time?

    Hi!
    The new release looks promising. Look forward to hear more in Birmingham.
    Just now we have a problem. It have to do with functionality In Toad compared to SQL Developer.
    Will it be possible to run several jobs in background at the same time. Toad allows that.
    If yes: How can we make that happen?

    "Jobs" are always background.
    But I take you mean queries. Yes, since v1.5.x you can open an Unshared SQL Worksheet (ctrl-shift-n or the toolbar button).
    Have fun,
    K.

  • How to change Payment Terms in multiple orders at same time?

    How to change Payment Terms in multiple orders at same time?
    I have got 10,000 Order, I need to change the payment terms for all these Orders.
    Can I Know the way out for this.
    Regards,
    Dantham Conpolwedson
    Edited by: Dantham Conpolwedson on Mar 25, 2009 11:18 AM

    Hi
    There are as many options for that
    You can go for
    1)MASS t code
    2) LSMW  (by recording)
    3)BDC (by recording)
    and the most easiest way is by doing the MASS tcode
    goto MASS and enter the object type as BUS2032
    execute now select the sales order haeader data and execute and now enter the sales doc from and to range and execute now all the sales dox will be displayed
    and from the menu click on select fields  and select the terms of payment
    now select the terms of payment row and enter the new values  and click on carry out new changes
    regards

  • Print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9

    I'm trying to print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9. HELP!!Version 7.0 (826.4)
    I'm using Preview Version 7

    Hello @kgingeri1, 
    Welcome to the HP forums.
    If you have sent a test print via ePrint, and experience this issue, i would call the Cloud Services department.
    If ePrint works fine, it is definitely a Google Cloud Print issue.
    Also, when you print from your android device, are you using Google Cloud print or the HP ePrint app?
    Please call our Cloud Services at 855-785-2777.
    If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Hours:
    Mon-Fri. 8am - 11pm, Sat. 9am-8pm - EST
    Mon-Fri. 7am - 10pm, Sat. 8am-7pm - CST
    Mon-Fri. 6am - 9pm, Sat. 7am-6pm - MST
    Mon-Fri. 5am - 8pm, Sat. 6am-5pm - PST
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • I am trying to upload a project with multiple tracks to iTunes.  only the first track seems to be uploading. what do I do?

    I am trying to upload a project from garageband with multiple tracks to itunes but only the first track is uploading. what do i do to make them all upload together?

    Couple of questions:
    What type of Tracks are they (MIDI, AUdio, Drummer)?
    WHen you play your Project, do You hear all Tracks playing?
    What happens when you change the Track order, i.e. A-B-C to B-C-A? WHen you export, do you still get only one Track and if so, is it talways the first Track in the list or a specific Track regardless if it is the first, second, or third?
    Are you sure you don't have any Tracks Muted or Soloed (which auto-mutes the other Tracks)?
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Is it possible to listen to music through bluetooth and be on a call with earbuds at the same time?

    Is it possible to listen to music through bluetooth and be on a call with earbuds at the same time?
    I would like to be able to talk on my iPhone with the EarPods while playing music via Bluetooth in my car.  Are there any third party products that will allow this?

    Sorry,  iOS will pause the music playback when you are on the phone call.  You can set iOS to use bluetooth for your audo playback on your music app, and select the earpods for the phone app, but as soon as you answer the phone call, iOS will pause the music playback.  This is a core OS feature, so you will not find any certified iOS app that will do what you want.
    As a side note, please use extra caution when using your ear pods while driving.  It is not safe as you may not hear emergency vehicles, car horns, railroad crossing bells, etc., and it is illegal in many states (in the US).

Maybe you are looking for