Does job in DEFAULT_JOB_CLASS run on the weekend?

I scheduled a job for 2am everyday but it ran only during the weekdays (from the EM Job History). While in dbms_scheduler.create_schedule I specifiied that
BYDAY=SAT,SUN,MON,TUE,WED,THU,FRI;
Not
BYDAY=MON,TUE,WED,THU,FRI,SAT,SUN;
Don't know if this will make a difference. Thanks.
for example:
dbms_scheduler.create_schedule(
schedule_name => p_sched
, start_date => trunc(sysdate)+2/24
, repeat_interval => 'FREQ=DAILY; BYDAY=SAT,SUN,MON,TUE,WED,THU,FRI; BYHOUR=2;'
, comments => 'Run, Forest, Run!');
- Zac

Hi,
I have a couple comments.
- If you want the job to run every day you don't need to list all the days, just freq=daily defaults to every day
- you can use the dbms_scheduler.evaluate_calendar_string to test your repeat_interval. I tested this on your repeat interval and it ran fine. So there may be some other problem, you should take a look at the job_log etc . Below I give the code I used to verify your repeat interval
- for further dbms_scheduler question there is a dedicated forum at
Scheduler
I used the following code to confirm that the repeat_interval of 'FREQ=DAILY; BYDAY=SAT,SUN,MON,TUE,WED,THU,FRI; BYHOUR=2;' works as it should
create or replace procedure print_dates
cal_string in varchar2,
start_date in timestamp with time zone,
nr_of_dates in pls_integer
is
date_after timestamp with time zone := start_date - interval '1' second;
next_execution_date timestamp with time zone;
begin
for i in 1 .. nr_of_dates
loop
dbms_scheduler.evaluate_calendar_string
(cal_string, start_date, date_after, next_execution_date);
dbms_output.put_line(to_char(next_execution_date,
'DY DD-MON-YYYY (DDD-IW) HH24:MI:SS TZH:TZM TZR'));
date_after := next_execution_date;
end loop;
end;
begin
print_dates(
'FREQ=DAILY; BYDAY=SAT,SUN,MON,TUE,WED,THU,FRI; BYHOUR=2;',
sysdate,30);
end;
-- this also returns the same dates
begin
print_dates(
'FREQ=DAILY; BYHOUR=2;',
sysdate,30);
end;
Hope this helps,
Ravi.

Similar Messages

  • ICal failing to run applescripts: The 'Open' button does not change to 'Run', and the script file is opened but not executed on alert.

    iCal failing to run applescripts: The 'Open' button does not change to 'Run', and the script file is opened but not executed.

    Calendar (not called iCal anymore) does not include that capability any longer, apparently.  What you have to do now is go to Automator and create a Calendar Alert action.  You can add a Run AppleScript object to the action and paste in your script there, then when you save it, it will become available as a choice in the alert menu in Calendar.

  • Code to determine which jobs are being run in the database

    Hello
    I'm using Oracle 9
    If it is possible I would like to write an SQL statement that determines what DBMS_JOB's are stored and being run in the database.
    Thanks
    Doug

    you can try this code:
    SELECT r.sid,
           r.job,
           r.this_date,
           r.this_sec,
           SUBSTR(what,1,40) what
      FROM dba_jobs_running r,
                   dba_jobs j
    WHERE r.job = j.job;hope this helps.

  • Does LV 8.2 run on the Intel-based Mac?

    1) Does NI Labview run on the Intel-based Mac
    2) If no, when, if ever, does NI anticipate fixing the problem?

    No worries Jarrod, I am just being a pest - as usual ; but thanks anyway for your links, I knew them already but I am sure they will help other Mac Users !
    As you can see from my icon, I am a convinced mac user, so to me, any person who will help a mac user is a nice person and a potential friend
    Message Edité par TiTou le 08-16-2006 05:06 PM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Background job - programs all running at the same time...

    Hi experts,
    i have an issue regarding background job.i have to run multple programs in background one after another in one program.so i am using function modules job_open,submit and job_close.
    my problem all the jobs are statrting at same time .but i want to run after completion of first job second job should start.
    please guide me
    Thanks
    sai
    Edited by: Julius Bussche on Feb 19, 2009 9:36 AM
    Please use meaningfull subject titles

    Try something like
    LOOP AT it_filenames INTO ts_filenames.
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname  = jobname
           IMPORTING
                jobcount = jobcount.
      SUBMIT program
        WITH p_file1 = ts_filenames-zzfname
        VIA JOB jobname NUMBER jobcount
        AND RETURN.
      IF sy-tabix EQ 1.
        CLEAR: pred_jobcount,
               pred_jobname.
        GET TIME.
        IF sy-uzeit LT '235950'.
          sdlsstrttm = sy-uzeit + 10.
          sdlstrtdt = sy-datum.
        ELSE.
          sdlsstrttm = '000010'.
          sdlstrtdt = sy-datum + 1.
        ENDIF.
      ELSE.
        sdlsstrttm = '      '. " no_time from LBTCHTOP
        sdlstrtdt = '        '. " no_date from LBTCHTOP
      ENDIF.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = jobcount
                jobname              = jobname
                predjob_checkstat    = ' '
                pred_jobcount        = pred_jobcount
                pred_jobname         = pred_jobname
                sdlstrtdt            = sdlstrtdt
                sdlstrttm            = sdlstrttm
           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.
      pred_jobcount = jobcount.
      pred_jobname = jobname.
    ENDLOOP.
    I removed the checkstat, cause if you want to check the status you only have to submit one job with multiple steps. (Put JOB_OPEN and JOB_CLOSE out of the loop)
    CALL FUNCTION 'JOB_OPEN'
         EXPORTING
              jobname  = jobname
         IMPORTING
              jobcount = jobcount.
    LOOP AT it_filenames INTO ts_filenames.
      SUBMIT program
        WITH p_file1 = ts_filenames-zzfname
        VIA JOB jobname NUMBER jobcount
        AND RETURN.
    ENDLOOP.
    CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
              jobcount  = jobcount
              jobname   = jobname
              strtimmed = 'X'.
    Regards

  • Does Adobe Document Service run on the JAVA server?

    I have simple question about ADS.
    Do I need any internet connection to use print forms?
    The JAVA server at customer site does not allow any outside internet connection,
    so I'm wondering I still can use Print forms.
    Thanks for your time.

    Hi Kim,
    ASD Runs on Java stack. But internet is not a pre-requisite for ADS to run.
    Thanks & Regards,
    Sanoosh

  • Why does my .exe file run on the PC I created it on, which has LV installed, but it will not run on a PC which does not have LV installed?

    I am trying to run a stand alone application on a PC which does not have Lab View installed. I created the executable file and the installer. However, when I run the .exe the VISA functions contained in the VI return error messages and the power supply I am trying to control does not respond. The stand alone application will run on a PC that has Lab View installed. 
    My application initially used a VISA resource control to selct the instrument GPIB address on the PC I used to create the application. Since the PC I am trying to run the .exe on has an older version of NI-MAX I cannot create aliases that the VISA control can interpret.I have tried to upgrade NI-MAX hoping that would solve my problem:
    Here is what I tried:
    uninstall NI-488 and NI-MAX ( if you want to uninstall MAX you must uninstall NI-488 ) reinstall NI-488 and NI-MAX Ver 3.1 then try to install NI-MAX version 4.1 which I downloaded from NI website. When I do this I get an error message when I try to run MAX. None of this worked so I hard coded the instrument address as a constant and again that works on the PC with LV installed but does not on the PC without LV.
    Any input would be greatly appreciated.

    It looks like you do have the LabVIEW runtime engine installed.  It might be that the VISA drivers you have are not compatible versions.  In NIMAX, look under software to see what versions of VISA software you have installed on both systems.
    It does not matter what version of NI MAX you have installed, since your application does not use NI MAX.  NI MAX only helps you look at (or simulate) the hardware and software you have on your system.
    One thing you could do is include drivers and the runtime engine while creating your installer.  That way, you should be able to do a complete install on a clean system.
    Message Edited by Sudhir Gopinath on 06-19-2007 12:26 PM
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor

  • How well does Aperture 2.0 run on the new 13" Macbook Pro?

    Hi,
    I'm seriously considering buying a new mac in the next week or so. I was just wondering if any of you had any advice as to whether the new 13" Macbook Pro is good enough to run Apple's Aperture 2.0, quite well? I'm not worried about the screen size as I will mostly be working from home, but the mobility would be a huge advantage in the field.
    Thank-you,
    Rob

    Mac is the future, for me! wrote:
    ...advice as to whether the new 13" Macbook Pro is good enough to run Apple's Aperture 2.0, quite well?
    The 13" MBP is relatively a lower end box for running a VERY hardware-hungry application. There are folks who consider strong Mac Pros marginal yet at the same time there are folks who find Macbooks even weaker than the 13" MBP "strong enough," so "quite well" unfortunately is in the eyes of the beholder. IMO IF one is aware of and accepts the limitations a 13" MBP certainly "works."
    RAM fortunately can go to 8GB, a very big deal; however among Macs the 13" box has minimum-in-class graphics, no EC/34 slot forever preventing eSATA and/or SSD utility, and has a glossy-only display.
    I'm not worried about the screen size as I will mostly be working from home, but the mobility would be a huge advantage in the field.
    Working from home you will presumably be driving a secondary display, further taxing the weaker graphics of the 13" size.
    Personally I don't find the ~1 pound saving over the 15" or the ~2 pound saving over the 17" to be "a huge advantage in the field." IMO for graphics, especially photos, the loss of screen real estate and pixels in the 13" size is a huge disadvantage in the field. The pound or two of weight IMO is much, much less relevant than the huge benefits of extra pixels and screen real estate in larger sizes.
    -Allen Wicks

  • How & When does the Scheduler calculates the next run of the job?

    I have created 3 jobs (J1, J2, J3). All of these are using same named schedule. My concept is that all the jobs should run on the same time according to the repeat interval of the schedule but it doesnt happen. When i alter the scheduler information, only one job's next run time gets updated and the rest of two keep on containing the older values. This results in only one of the job to be running on the next recurrence. Is it a known issue,..or am i getting anything wrong?

    I ran the test and not found issue.
    begin
    --dbms_scheduler.drop_job(job_name => 'j1');
    --dbms_scheduler.drop_job(job_name => 'j2');
    --dbms_scheduler.drop_job(job_name => 'j3');
    DBMS_SCHEDULER.CREATE_SCHEDULE
    (schedule_name => 'TEST_SCHED',
    start_date=> sysdate,
    end_date => null,
    repeat_interval=> 'FREQ=DAILY',
    comments=>NULL);
    DBMS_SCHEDULER.create_job(job_name => 'j1',
    job_type => 'PLSQL_BLOCK',
    job_action => 'declare a number begin select 1 into a from dual; end;',
    schedule_name => 'TEST_SCHED',
    comments => 'TEST');
    DBMS_SCHEDULER.create_job(job_name => 'j2',
    job_type => 'PLSQL_BLOCK',
    job_action => 'declare a number begin select 1 into a from dual; end;',
    schedule_name => 'TEST_SCHED',
    comments => 'TEST');
    DBMS_SCHEDULER.create_job(job_name => 'j3',
    job_type => 'PLSQL_BLOCK',
    job_action => 'declare a number begin select 1 into a from dual; end;',
    schedule_name => 'TEST_SCHED',
    comments => 'TEST');
    end;
    select job_name,next_run_date From user_scheduler_jobs
    1     J3     *06-MAR-10* 05.28.59.600000 PM +07:00
    2     J1     *06-MAR-10* 05.28.59.500000 PM +07:00
    3     J2     *06-MAR-10* 05.28.59.700000 PM +07:00
    begin
    dbms_scheduler.set_attribute(name => 'TEST_SCHED',attribute => 'repeat_interval' ,value => 'FREQ=MINUTELY;INTERVAL=20');
    end;
    select job_name,next_run_date From user_scheduler_jobs
    1     J3     *05-MAR-10* 05.48.59.000000 PM +07:00
    2     J1     *05-MAR-10* 05.48.59.000000 PM +07:00
    3     J2     *05-MAR-10* 05.48.59.000000 PM +07:00
    try check job has been enabled.

  • Dbms_schduler job is not running on a 2 node rac when 1st node fails

    Hi,
    I want to create a dbms_scheduler job in a 2 node RAC and the job should always run on the node1 and if node1 is down then it should run on node2. This is Oracle 10gR2 (10.2.0.3 in WINDOWS) .In order to do the same I did following
    -- First Step
    Using DBCA- Service Managment - Created a service (BATCH_SERVICE) and given node1 as preferred and node2 as available. This created following entry in tnsnames.ora in both nodes.
    BATCH_SERVICE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = BATCH_SERVICE)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    (RETRIES = 180)
    (DELAY = 5)
    --- Step 2
    -- Created BATCH job classes.
    BEGIN
    DBMS_SCHEDULER.create_job_class(
    job_class_name => 'BATCH_JOB_CLASS',
    service => 'BATCH_SERVICE');
    END;
    -- Step 3 -- created a job using job_class as BATCH_JOB_CLASS
    begin
    dbms_scheduler.create_job(
    job_name => 'oltp_job_test'
    ,job_type => 'STORED_PROCEDURE'
    ,job_action => 'schema1.P1'
    ,start_date => systimestamp at time zone 'US/Central'
    ,repeat_interval => 'FREQ=DAILY;BYHOUR=11;BYMINUTE=30;'
    ,job_class => 'BATCH_JOB_CLASS'
    ,enabled => TRUE
    ,comments => 'New Job.');
    end;
    Now when I monitor this job it runs on node1. Now I started testing for failover. I manually shutdown 1st instance. Then as per my understanding job should run on 2nd node. But job is not picking up.
    when I run the followign command
    srvctl status service -d db -s BATCH_SERVICE
    service BATCH_SERVICE is running on instance node2.
    Any help is really appreciated.

    It does not show that whether job is running or broken.

  • Job is not running in Source system.

    Hi Experts,
    One issue I have because of this I am not able to load data into Data sources.
    I am in BI 7.0 environment.
    when I execute infopackage, total and techinical status are in yellow.
    I found in R/3 Job is not running, based on this statement in SM37. from the fallowing.
    Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 0 records
    Result of customer enhancement: 0 records
    IDOC: Info IDoc 2, IDoc No. 3136, Duration 00:00:00
    IDoc: Start = 14.05.2009 07:23:39, End = 14.05.2009 07:23:39
    Synchronized transmission of info IDoc 3 (0 parallel tasks)
    IDOC: Info IDoc 3, IDoc No. 3137, Duration 00:00:00
    IDoc: Start = 14.05.2009 07:23:39, End = 14.05.2009 07:23:39
    Job finished
    Job satrt time and end time are same, so job is not running in the sourcesystem, am i right. let me known if i am worng.
    It is Standard Data source but in the above statement becasue  *result of Customer enhancement:0 records.*
    please help me to reslove this issue to load data into BI.
    1. what I have to do to run job in source system side.
    2. should I take any help from Basis.
    Regards
    Vijay
    Edited by: vijay anand on May 14, 2009 3:02 PM
    Edited by: vijay anand on May 14, 2009 3:04 PM

    Hi Rupesh,
    in RSA3 data is availbale,
    but it is not coming to BI,
    Messages from source system
    see also Processing Steps Request
    These messages are sent by IDoc from the source system. Both the extractor itself as well as the service API can send messages. When errors occur, several messages are usually sent together.
    From the source system, there are several types of messages that can be differentiated by the so-called Info-IDoc-Status. The IDoc with status 2 plays a particular role here; it describes the number of records that have been extracted in a source system and sent to BI. The number of the records received in BI is checked against this information.
    the abovemessage I am getting in details tab.
    Regards
    Vijay

  • My acrobat pro will only run while the disc is in

    Why does Acrobat Pro only run when the disc is in?

    Hi johnheaney
    Please provide more details around the issue to help you further.
    -- What is the workflow?
    -- Are you trying to install acrobat or launch it?
    -- what is the version of acrobat that you're using?
    -- What is the OS ?
    ~Mandy

  • Does Photoshop Elements 9 run on OSX 10.7 Lion?

    Does Photoshop Elements 9 run on the current version of OSX? Can it run WITHOUT Rosetta, which was present up to 10.6 for PowerPC programs?

    Sure. PSE has been intel native at least since PSE 6. PSE 6, 8, 9 and 10 all work fine in lion.

  • How to run a job group mult x per day M-F but only 1x on the weekend

    I currently have a job group that runs M-F, repeating several times each day. I'd like to now have this same group also run on Sat and Sun only once for these days. Is this possible on a single job group configuration or must I create a 2nd copy of the group and apply a weekend calendar with no repeat? I'm trying to avoid copying the group because I assume any changes I make to the group I'd then have to make twice? One approach I'm trying to figure out is if I can trigger the group to run on Sat and Sun via variable trigger and hoping this will not cause it to repeat in this case?

    Micheal
    What version are you running?
    In 5.31, what I would do is to have the main set M-F then use a different job (like a cmd echo or powershell write-host) on weekends that inserts the MF set at the time you want with a job event \ job insert action. This would override the time and execute when you want (you could probably just use one for  SAT, SUN). we do similar things to avoid maintenance windows.
    You might lose any downstream dependecies if the original is in a nested group but that might even work with a slight modification to the job depdency with the match occurance check box (relative to group, otherwise, for day) option
    It would be best if tidal let you add multiple calendars to one job, not sure if that is in the works but it should be on their radar.
    Marc

  • How to: Schedule a job to run on the first business day of the month

    In Oracle 10.2.0.3, is there a way to schedule a repeating job to run on the first business day of the month? For example, if the first of the month falls on a weekend (such as Saturday, 11/01/2008), I would like the job to run automatically on Monday (for example, 11/03/2008) instead.

    set serveroutput on
    begin
      print_dates('FREQ=MONTHLY;BYDAY=MON,TUE,WED,THU,FRI;BYSETPOS=1;',
          to_timestamp_tz('01-JAN-2008 12:00:00','DD-MON-YYYY HH24:MI:SS'), 12);
    end;
    Gives:
    TUE 01-JAN-2008 (001-01) 12:00:00 -07:00 -07:00
    FRI 01-FEB-2008 (032-05) 12:00:00 -07:00 -07:00
    MON 03-MAR-2008 (063-10) 12:00:00 -07:00 -07:00
    TUE 01-APR-2008 (092-14) 12:00:00 -07:00 -07:00
    THU 01-MAY-2008 (122-18) 12:00:00 -07:00 -07:00
    MON 02-JUN-2008 (154-23) 12:00:00 -07:00 -07:00
    TUE 01-JUL-2008 (183-27) 12:00:00 -07:00 -07:00
    FRI 01-AUG-2008 (214-31) 12:00:00 -07:00 -07:00
    MON 01-SEP-2008 (245-36) 12:00:00 -07:00 -07:00
    WED 01-OCT-2008 (275-40) 12:00:00 -07:00 -07:00
    MON 03-NOV-2008 (308-45) 12:00:00 -07:00 -07:00
    MON 01-DEC-2008 (336-49) 12:00:00 -07:00 -07:00
    and the print_dates function is (10.2):
    create or replace procedure print_dates
      cal_string in varchar2,
      start_date in timestamp with time zone,
      nr_of_dates in pls_integer
    is
      date_after timestamp with time zone := start_date - interval '1' second;
      next_execution_date timestamp with time zone;
    begin
      dbms_output.put_line('  -->');
      for i in 1 .. nr_of_dates
      loop
        dbms_scheduler.evaluate_calendar_string
         (cal_string, start_date, date_after, next_execution_date);
        dbms_output.put_line(to_char(next_execution_date,
                        'DY DD-MON-YYYY (DDD-IW) HH24:MI:SS TZD TZH TZR'));
        date_after := next_execution_date;
      end loop;
    end;
    [\pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Trouble with external hard drive. help.

    I was formatting my hard drive to allow larger GB files with a lot of trouble so I got my other hard drive which I have previously formatted to find the program that worked. It was formatted with NTFS so I downloaded NTFS 3G and restarted my computer

  • When I go to the Soldiers Angel site or my Banking site it is asking for flash point, also saying no plugins

    when i go to my banking on line site it asks for flashpoint also has message no pluging.  I have this problem when I got to Soldiers Angels to get my much needed info to send letters to our Fallen Heroes Families.  Apparently I need flash point back

  • .csv files exported not converting to Tabular format jdev patch 6908968

    After jdeveloper patch 6908968 on 12.0.6, the data is copied into an Excel .csv file but the entire data is copied to the single cell/column. Developed an OAF page which has the standard Oracle Export Functionality for one of our requirements. When e

  • This is new, Frozen on iPhone

    I have been using the iphone since day one.  I am up to date with software.  I put my iphone down while in email. when I picked it up it was frozen on that email.  the phone won't work, you cant use the home button, you cant turn it off, It won't syn

  • Quicktime 7.0.3 - any adverse effects?

    Apple just released QT 7.0.3 via software update. Has anyone updated and experienced and adverse effects with FCP 4.5 or 5.0.2? I will update as soon as I am finished with my current project.