cron job first Sunday of each month

Hello
I have a job to run the 1st Sunday of each month

33 7 1,73,4,5,6,7 * 0

but his run every Sunday and every 1st to the 7th of each month

a little confused, I thought that all checks must return true for cron job

Hello

Please see this:

http://www.linuxquestions.org/questions/linux-software-2/scheduling-a-cron-job-to-run-on-the-first-sunday-of-the-month-524720/

HTH
KK

Tags: Database

Similar Questions

  • Find the 2nd Sunday of each month in a report

    Hello

    I have the data of EMP_Name and Join_Date. I have to build a dashboard report where

    1. In the dashboard, there is a command prompt. If I select a year and a month then, the report is expected to show that the data of the respective month.
    2. This report will show the employees who joined the company only after the 2nd Sunday of each month until the end of the month.

    Inputs/suggestions, how to build it?

    Thanks in advance.

    You have a question, Yes... a SQL query... OBIEE do not mean SQL but LSQL, your query will be not really usable like this...

    You're right, it seems that when the first day of the month is a Saturday he jump 1 week...

    The correct formula for the 3rd Friday is:

    TIMESTAMPADD (SQL_TSI_DAY, (14 + 6-CASE WHEN DAYOFWEEK (TIMESTAMPADD (SQL_TSI_DAY, 1-DAYOFMONTH (CURRENT_DATE), CURRENT_DATE)) = 7 THEN 0 END ELSE DAYOFWEEK (TIMESTAMPADD (SQL_TSI_DAY, 1-DAYOFMONTH (CURRENT_DATE), CURRENT_DATE))), TIMESTAMPADD (SQL_TSI_DAY, 1-DAYOFMONTH (CURRENT_DATE), CURRENT_DATE))

    If instead of CURRENT_DATE you want to use your own column date just to replace in the formula and it works.

  • How to get the date for the first Monday of each month

    Dear members,

    How to get the date for the first Monday of each month.

    I wrote the following code

    SELECT decode (to_char (trunc (sysdate + 30, 'MM'), 'DAY'), 'MONDAY', trunc (sysdate + 30, 'MM'), NEXT_DAY (trunc (sysdate + 30, 'MM'), "LUN")) FROM DUAL

    But he looks at complex bith.

    Abhishek

    Published by: 9999999 on 8 March 2013 04:30

    Use the IW format - it will make independent NLS solution. And all you need is truncated 7th day of each month using IW:

    select  sysdate current_date,
            trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
      from  dual
    /
    
    CURRENT_D FIRST_MON
    --------- ---------
    08-MAR-13 04-MAR-13
    
    SQL> 
    

    Here is the list of the first Monday of the month of this year:

    with t as(
              select  add_months(date '2013-1-1',level-1) dt
                from  dual
                connect by level <= 12
             )
    select  dt first_of_the_month,
            trunc(dt + 6,'iw') first_monday_the_month
      from  t
    /
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-JAN-13 07-JAN-13
    01-FEB-13 04-FEB-13
    01-MAR-13 04-MAR-13
    01-APR-13 01-APR-13
    01-MAY-13 06-MAY-13
    01-JUN-13 03-JUN-13
    01-JUL-13 01-JUL-13
    01-AUG-13 05-AUG-13
    01-SEP-13 02-SEP-13
    01-OCT-13 07-OCT-13
    01-NOV-13 04-NOV-13
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-DEC-13 02-DEC-13
    
    12 rows selected.
    
    SQL> 
    

    SY.

  • How can I program a list of Interfaces that will run on the last Sunday of each month...

    Hi can someone help me to achieve this scenario...

    Thanks in advance...

    Hello

    Make the scenario for each interface and expand when the script option is planning.

    Scheduling---> option execution---> select month (day of week)---> monthly date = last & Sunday and schedule accordingly.

    Let me know

    Thank you

  • How to find the first Sunday and the second Saturday of each month

    Hi all

    How to find the first Sunday and the second Saturday of each month

    Thank you

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production

    994122 wrote:

    Hello

    I need to pass the months parameter how to do this? like Jan, Feb etc... (one of those)

    Do you have a procedure?

    Should you output only for the months you passed in the parameter?

    The easiest way is to set the parameter as date. When you go such as p_date as DATE ' 2014-10-01', then you can

    PROCEDURE two_dates)

    p_date IN DATE

    p_first_sunday DATE

    p_second_saturday DATE

    )

    IS

    BEGIN

    p_first_sunday: = NEXT_DAY (TRUNC (p_date, 'MM') - 1, TO_CHAR (DATE ' 2014-10-12', 'DAY'));

    p_second_saturday: = NEXT_DAY (TRUNC (p_date, 'MM') - 1, TO_CHAR (DATE ' 2014-10-11', 'DAY')) + 7;

    END two_dates;

    Or you describe what you need.

  • First day/last day of each month

    Hello
    y at - it sql/script to get the first day/last day of each month.new to bi do not know the syntax

    If a point on the link to get these things will be highly appreciated

    Hello
    I suggest that you go through the following link

    (1) http://oracle.ittoolbox.com/groups/technical-functional/oracle-bi-l/obiee-date-comparison-1726677#M1729534

    Toget first/last day of the month

    (2) http://www.obinotes.com/2010/02/tip-to-get-firstday-lastday.html

    New to OBIEE---> http://obiee101.blogspot.com/2009/07/obiee-how-to-get-started.html

    Thank you
    Saichand.V

  • each first day of the month

    Hi friends here is the querry I wrote to display every first day of the month, but there is something wrong in it... Help me...
    create or replace procedure minmax is
    cursor minmax_cur is
    Select min (hiredate), max in emp (hiredate);
    number of v_minmonths;
    number of v_maxmonths;
    number of v_minyears;
    number of v_maxyears;
    x date of publication;
    date of y;

    Start
    Open minmax_cur;
    extraction minmax_cur
    x, y;
    v_minmonths: = extraction (x months);
    v_minyears: = extraction (year x);
    While (x, y) loop
    because me in 1... v_minmonths loop
    If (v_minmonths < 12) then
    v_minmonths: = v_minmonths + 1;
    x: = x + 28.
    dbms_output.put_line(v_minmonths ||) '/' || '01'. '/' ||
    v_minyears);
    on the other
    v_minmonths: = 0;
    v_minyears: = v_minyears + 1;
    x: = x + 28.

    end if;
    end loop;
    end loop;
    minMax end;
    and the results are

    01/01/1981
    01/02/1981
    01/03/1981
    ..................
    .........---
    01/04/1987
    01/05/1987
    01/06/1987
    01/07/1987
    01/08/1987
    01/09/1987
    01/10/1987
    01/11/1987 the problem is max (hiredate) is 5/23/1987...it must show up to 01/05/1987...
    I get a few more months...
  • How to view the 3rd working day of each month.

    Hello

    could someone help me with a proc to display the 3 day working rd of each month?
    By day, I mean working Mon - Fri.
    Thank you.

    Hello

    Sorry, I initially responded to the question "what is the * first * work of the month ', which is a little easier.

    Here's a way you can code in SQL:

    ALTER SESSION     SET NLS_DATE_FORMAT     = 'DD-Mon-YYYY Dy';
    
    WITH     got_dates     AS
    (
         SELECT     TRUNC ( ADD_MONTHS (SYSDATE, LEVEL)
                    , 'MONTH'
                    )     AS a_date
         FROM     dual
         CONNECT BY     LEVEL     <= 12
    )
    -- The part above just generates some sample dates
    -- The part below is the actual query:
    --
    SELECT    a_date
    ,       CASE  TO_CHAR ( a_date + 2
                            , 'fmDay'
                      , 'NLS_DATE_LANGUAGE=ENGLISH'     -- If needed
                      )
               WHEN  'Monday'    THEN  4
               WHEN  'Tuesday'     THEN  3
               WHEN  'Saturday'  THEN  4
               WHEN  'Sunday'     THEN  4
                                  ELSE  2
           END + a_date     AS third_workday
    FROM       got_dates
    ORDER BY  a_date
    ;
    

    Output:

    A_DATE            THIRD_WORKDAY
    ---------------   ---------------
    01-Nov-2012 Thu   05-Nov-2012 Mon
    01-Dec-2012 Sat   05-Dec-2012 Wed
    01-Jan-2013 Tue   03-Jan-2013 Thu
    01-Feb-2013 Fri   05-Feb-2013 Tue
    01-Mar-2013 Fri   05-Mar-2013 Tue
    01-Apr-2013 Mon   03-Apr-2013 Wed
    01-May-2013 Wed   03-May-2013 Fri
    01-Jun-2013 Sat   05-Jun-2013 Wed
    01-Jul-2013 Mon   03-Jul-2013 Wed
    01-Aug-2013 Thu   05-Aug-2013 Mon
    01-Sep-2013 Sun   04-Sep-2013 Wed
    01-Oct-2013 Tue   03-Oct-2013 Thu
    

    Published by: Frank Kulash, October 4, 2012 17:56

  • First day of the month between 08:00 and 18:30

    DB version: 10.2.0.4

    Due to the nature of our the first working day of each month (like today 1 MS), the DB will be very busy.
    We execute a proc purge planned Windows Scheduler every 5 minutes every day.

    But the first day of every month (like today 1 MS), if it's a day of the week (Monday to Friday) we do not want this proc running between 08:00 and for dinner from 18:30.

    So, I thought including the logic in the procedure itself.

    How can I implement this?

    Edited by: user872043, Sep 1 2010 08:48

    Here is an example of using DBMS_SCHEDULER which should meet your needs:

    Create schedules

    BEGIN
            DBMS_SCHEDULER.CREATE_SCHEDULE
            ( schedule_name   => 'every_5_schedule'
            , repeat_interval => 'FREQ=MINUTELY; BYMONTHDAY=2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31; INTERVAL=5; BYSECOND=0'
            , comments        => 'Schedule to run every 5 minutes'
            );
    
            DBMS_SCHEDULER.CREATE_SCHEDULE
            ( schedule_name   => 'busy_hourly_schedule'
            , repeat_interval => 'FREQ=MINUTELY; BYMONTHDAY=1; BYHOUR=0,1,2,3,4,5,6,7,19,20,21,22,23; INTERVAL=5;'
            , comments        => 'Schedule to run every 5 minutes except certain hours on the first of the month'
            );
    
            DBMS_SCHEDULER.CREATE_SCHEDULE
            ( schedule_name   => 'busy_6pm_schedule'
            , repeat_interval => 'FREQ=MINUTELY; BYMONTHDAY=1; BYHOUR=18; BYMINUTE=30,35,40,45,50,55'
            , comments        => 'Schedule to run every 5 minutes from 6:30 - 7'
            );
    END;
    /
    

    There are three lists.

    every_5_schedule - runs every 5 minutes for all the days that are not on the first day of the month
    busy_hourly_schedule - runs every 5 minutes for the acceptable hours on the first day of the month
    busy_6pm_schedule - retrieves the half hour from 6:30 - 7 on the first day of the month.

    Then, create your business:

    Job creation

    BEGIN
            DBMS_SCHEDULER.CREATE_JOB
            ( job_name        => 'YOUR JOB'
            , job_type        => 'PLSQL_BLOCK'
            , job_action      =>'BEGIN YOURPROC; END;'
            , repeat_interval => 'EVERY_5_SCHEDULE, BUSY_HOURLY_SCHEDULE, BUSY_6PM_SCHEDULE'
            , enabled         => TRUE
            , comments        => 'Some comments'
            );
    END;
    /
     
    

    HTH!

  • I need an event to repeat the 1st Thursday of each month; the only option I have is every 8th 6 or each day.

    I wish I had a repetitive on the first event and the third Thursday of each month. I can't make it a monthly event repeated the same day of the week.

    Also, I get an overlay on my Yahoo screen that says I must be disconnected or closed another page and I need to connect when I did this. Is this a problem of Yahoo?

    For your repeat again, I guess that's your Yahoo calendar? This isn't a matter of Firefox, I suggest you try to communicate with yahoo.

    For the other questions, try the following:
    Upgrade to Firefox 15. Then, Firefox Refresh - reset the parameters and modules

  • I tried to write a script, the user can use. This return number file *.tiff associations back using the image viewer is caused each month.

    Original title: automation of file tiff without elevated rights association

    I tried to write a script, the user can use. This return number file *.tiff associations back using the image viewer is caused each month.

    Hi, Unclemarcus2002,

    You would be wiser to post on the Forum TechNet where there is COMPUTER experts.

    http://social.technet.Microsoft.com/forums/en-us/newThread

    Maybe using the ASSOC and FTYPE command in a script will do what you want? I think that these orders would also apply the association throughout the world, rather than on a per-user basis.

    ASSOC: http:

    FTPYE: http:

    Here is an example, that you can try.

    Let's say you have a text file called "foo.bar" and you want the extension .bar always open with Notepad. There is an association for text files, so get him by typing "Ftype | more' at the command prompt (it will make a major announcement). Finally, you'll see the line "txtfile". On mine, it's "txtfile=%systemroot%\system32\notepad.exe %1" without the quotes.

    First create your association: assoc .bar = FooBarText

    Now to assign your request to your file type association: ftype FooBarText=%systemroot%\system32\notepad.exe %1

    You should now be able to double-click the foo.bar file and it will automatically open in Notepad.

    If you already have a Microsoft Office Document Imaging association, I think that it should be relatively simple type of substitution. Use ftype /? for a little more help.

    http://community.Spiceworks.com/topic/119639-Windows-7-automate-file-assocations

  • How to create the rule to trigger only 5 and 20th of each month in Foglight

    Hi team,

    One needs to create a rule in Foglight that fire only a day as the 5th and 20th of each month and check the status. I tried to create it, but I've not found an option less create rule. I think we can do it by Time Driven option or calendar drove but I'm confuse. Can someone let me know how or the document where it mentioned.

    Thank you for your help in advance.

    Thank you

    Shashank Soni.

    That sounds more like a rule-based program.  First, create a new calendar and choose the monthly option and enter one of the days of the month.  I think it might be difficult to get a calendar to be true on two different days, you may create two programs and then create a rule for each.  We can be one simple copy of the other.  Once the calendar is created, you can create a rule, choose led calendar and choose one of your two annexes.

    Maybe someone can be smarter about how to create a monthly calendar for two different dates.

    I hope this helps.
    Jeff (I work for Dell)

  • Recurring appointment Set for certain days of the week each month in the calendar on Surface RT?

    It seems to me that this is not possible, but is there a way I can put a recurring appointment for a certain day of the week of each month in the calendar on the Surface RT? For example, a meeting Tuesday on two or one excursion each fourth Sunday?  I know that this is possible in Outlook on a PC and I would like to do it on the Surface RT as well.  Most of my recurring appointments are of this type.  When I recur every month on the Surface, it just sets it for the same date (for example the 12th of each month) instead of the second Tuesday.  Thank you!

    Hi Lisa,

    You were correct when you say that 'it seems to me that's not possible. ' The recurring appointment for some day of the week each month in the calendar on Surface RT cannot be done by date and not day.

    Good day!

  • ATTN: Staff [added kglad] double load for each month and one subscription

    Hello

    Each month I reveived TWO bills of adobe, but I only have ONE subscription in my account. I contacted the customer servive twice, but they both finally asked me to communicate with the Bank. However, the Bank asked me to contact adobe.

    I joined the subscription from August 12, 2016. When I finished first payment online, I have not received any confirmed e-mail. I tried to use photoshop, but it showed that I have a subscription. I thought I was suffering from network problem that the payment is not completed. Then I presented again. I received a confirmation by e-mail immediately. A month later, I found two charges of Adobe on the same date. I tried to do everything that I could to solve the problem, but the problem is still there... Can someone help me? And I hope that I can be reimbursed in double.

    Hello

    Please contact support by calling/chat for billing queries:

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    You can also check the help below document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

    Please go through the Adobe - General conditions of subscription as well.

    Kind regards

    Sheena

  • Incompetent support costs me 35 percent more money each month!

    Hello dear community! This is my first topic here, so I apologize if I am doing sth wrong.

    I was a happy user of plan of photography in the last months and it costed me€ 8.80 each month. I got this price during the sale last spring.

    I decided that I would use a few additional applications and began to seek another plan. Student offer has been great for me! I have found no restrictions on the region. And when I chose my region (Estonia) this (plan) offer still seems where it supposed to be. My logical conclusion was so that I can get as a student in my country.

    But I already had the plan of photography and decided to ask for help in the development of plans to support cat. This nice guy agreed to cancel my plan photography without cancellation so will order a new one. Before the cancellation, I mentioned, that I am NOT in the United States, but his answer was: no problem.

    So my plan of photography 'right price' has been canceled and I started to order the plan of the student. Then immediately got an error, that it is not available for the Estonia. I was upset, but thought: ok, so I'll try to do all my things in Photoshop and change of plan later. But I already lost my plan of photography and can restore it no more! This type of support said sth like: you should find the dealer in your country! It was like... WHAT?

    Then was talking with local Helpdesk 'a bit' (Estonian), who succeeded in doing nothing.

    Then the second guy to support cat said, I'm still able to get this plan student if I call the after-sales service. I have not had the opportunity to call, so I found cat for sale, where I got the answer, this student plan is not available for my country.

    To my question on how I can get my package of photography for the price that I had before contacting the 'support', I got answer smth like "Oops sorry, pay full price now".

    So, dear community, I know it looks like pure complain, but I need to support or explain to me where I'm wrong... I really must now pay the full price for the plan of photography (€11.99) or there is no chance of getting the student or photo for my 'old' price plan?

    Thank you all!

    As mentioned above, please contact customer service for that.

Maybe you are looking for

  • KERNEL PANICS

    Hi, so I'm getting random kernel panic, nothing in particular seems to be they are triggered. I was wondering if someone can help me in this. Here's my last crash log... Anonymous UUID: A7D68F1B-8046-5A9A-69B6-6123820EC986 Mon Aug 15 04:06:20 2016 Pa

  • off volume control

    Hello My Macbook Pro: When I start my Macbook Pro, I can hear the volume of the speakers to boot. After the start of the Mac, the volume control is completely disabled and cannot be controlled. But when I plug my headphones his license. Is there a se

  • What battery does take to Satellite A30 921

    I bought Toshiba A30-921, powered by PA3366U-1BRS battery and is still under warranty. I find no battery any where even now Toshiba A30-921 is not listed. Any suggestion?

  • stop the top right of the scrolling screen razr maxx

    How do I stop my maxx to parade at the upper right cofrner of the screen. It is the blocking of the icons and other?

  • Clip + - all of a sudden no radio option available?

    My Clip + (including FM radio) works very well for a long time, when he decided to die on me.  Fortunately I found help and managed to revive and at the same time reinstalled the firmware (I have v01.02.18E now, don't know what it was before, but thi