473,395 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Scheduled tasks never run on time

DB2 UDB ESE is running at V8.1 FP5 on 32-bit Solaris 7, single
partition. The tools catalog database is on the same instance as
everything else.

I have not really embraced the DB2 Task Center because I can't get it
to run a task anywhere close to the specified start time. In fact, any
task I schedule to run daily always starts about 100 minutes late. This
delay has been consistent for months, as opposed to a delay that grows
over time. When I edit the task and look at the scheduled start time,
it appears correct. The Journal confirms how late each job run is.

Has anyone experienced this type of behavior? I have very little to go
on so far, so I don't think I'll get very far opening a PMR at this
point. Scouring the APAR list has revealed nothing. My Unix admins are
also less than helpful, chiding me for using a flaky job scheduler
instead of using Unix's crude but effective cron utility.

If you're not encountering this exact behavior, but are still less than
satisfied with Task Center, please reply anyway, and maybe we'll come
up with something together.

Nov 12 '05 #1
8 4010
"Another DB2 UDB DBA" <sa*****@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
DB2 UDB ESE is running at V8.1 FP5 on 32-bit Solaris 7, single
partition. The tools catalog database is on the same instance as
everything else.

I have not really embraced the DB2 Task Center because I can't get it
to run a task anywhere close to the specified start time. In fact, any
task I schedule to run daily always starts about 100 minutes late. This
delay has been consistent for months, as opposed to a delay that grows
over time. When I edit the task and look at the scheduled start time,
it appears correct. The Journal confirms how late each job run is.

Has anyone experienced this type of behavior? I have very little to go
on so far, so I don't think I'll get very far opening a PMR at this
point. Scouring the APAR list has revealed nothing. My Unix admins are
also less than helpful, chiding me for using a flaky job scheduler
instead of using Unix's crude but effective cron utility.

If you're not encountering this exact behavior, but are still less than
satisfied with Task Center, please reply anyway, and maybe we'll come
up with something together.


You should definitely open a PMR if you have a support contract. They will
tell you what information they need from you and how to get that
information.

Or just schedule everything 100 minutes early.

Cron is definitely crude. For example it cannot schedule a job to run the
first Sunday of the month (although I am not sure about the DB2 Task
Center).
Nov 12 '05 #2
Mark A wrote:
Cron is definitely crude. For example it cannot schedule a job to run the
first Sunday of the month (although I am not sure about the DB2 Task
Center).


Cron can do it - quite easily:

12 0 1-7 * 0 /my/command
The fifth column is the day of the week - 0 is Sunday. The third
column is the day of the month; the first Sunday always falls between
the 1st and the 7th of the month.

See: http://www.opengroup.org/onlinepubs/009695399/toc.htm
Type crontab in the search field and look at the specification.

--
Jonathan Leffler #include <disclaimer.h>
Email: jl******@earthlink.net, jl******@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
Nov 12 '05 #3
> > Cron is definitely crude. For example it cannot schedule a job to run
the
first Sunday of the month (although I am not sure about the DB2 Task
Center).


Cron can do it - quite easily:

12 0 1-7 * 0 /my/command
The fifth column is the day of the week - 0 is Sunday. The third
column is the day of the month; the first Sunday always falls between
the 1st and the 7th of the month.

See: http://www.opengroup.org/onlinepubs/009695399/toc.htm
Type crontab in the search field and look at the specification.

--
Jonathan Leffler #include <disclaimer.h>


According to the site you referenced:

"Finally, if either the month or day of month is specified as an element or
list, and the day of week is also specified as an element or list, then any
day matching either the month and day of month, or the day of week, shall be
matched."

Doesn't this mean that your example will run on the first 7 days of the
month (1-7), and also run on any Sunday (0) regardless of the day of the
month?
Nov 12 '05 #4
Jonathan Leffler wrote:

Mark A wrote:
Cron is definitely crude. For example it cannot schedule a job to run the
first Sunday of the month (although I am not sure about the DB2 Task
Center).


Cron can do it - quite easily:

12 0 1-7 * 0 /my/command

The fifth column is the day of the week - 0 is Sunday. The third
column is the day of the month; the first Sunday always falls between
the 1st and the 7th of the month.

See: http://www.opengroup.org/onlinepubs/009695399/toc.htm
Type crontab in the search field and look at the specification.

--
Jonathan Leffler #include <disclaimer.h>
Email: jl******@earthlink.net, jl******@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/


(ranges are OR'd in crontab),
but maybe:

12 0 * * 0 if [ `date +\%d` -lt 8 ]; then /my/command; fi
(escape '%', as it's special in crontab).

Wolfgang
Nov 12 '05 #5
Mark A wrote:
Cron is definitely crude. For example it cannot schedule a job
to run the first Sunday of the month (although I am not sure
about the DB2 Task Center).
Cron can do it - quite easily:

12 0 1-7 * 0 /my/command
The fifth column is the day of the week - 0 is Sunday. The third
column is the day of the month; the first Sunday always falls between
the 1st and the 7th of the month.

See: http://www.opengroup.org/onlinepubs/009695399/toc.htm
Type crontab in the search field and look at the specification.

--
Jonathan Leffler #include <disclaimer.h>

According to the site you referenced:

"Finally, if either the month or day of month is specified as an element or
list, and the day of week is also specified as an element or list, then any
day matching either the month and day of month, or the day of week, shall be
matched."


Didn't reread that bit, and forgot that oddit.
Doesn't this mean that your example will run on the first 7 days of the
month (1-7), and also run on any Sunday (0) regardless of the day of the
month?


Yes. You can still do, just not so compactly. I started off with the
7 line version, then remembered ranges and saw that in the man page.
So, moderately easily:

12 0 1 * 0 /my/command
12 0 2 * 0 /my/command
12 0 3 * 0 /my/command
....
12 0 7 * 0 /my/command

Sorry for the mis-steer. There had to be a reason why I did it the
long-winded way, but I'd forgotten the gotcha (so I was thoroughly
gotch-me'd).

--
Jonathan Leffler #include <disclaimer.h>
Email: jl******@earthlink.net, jl******@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
Nov 12 '05 #6
"Jonathan Leffler" <jl******@earthlink.net> wrote in message
news:2k****************@newsread1.news.pas.earthli nk.net...

Yes. You can still do, just not so compactly. I started off with the
7 line version, then remembered ranges and saw that in the man page.
So, moderately easily:

12 0 1 * 0 /my/command
12 0 2 * 0 /my/command
12 0 3 * 0 /my/command
...
12 0 7 * 0 /my/command
12 0 1-7 * 0 /my/command
Sorry for the mis-steer. There had to be a reason why I did it the
long-winded way, but I'd forgotten the gotcha (so I was thoroughly
gotch-me'd).

--
Jonathan Leffler #include <disclaimer.h>


I believe that your latest attempt runs the first seven days of the month
AND runs on Sundays (in fact, I think it will kick off 7 jobs on Sunday at
the same time). If I am wrong, some please correct me.

The original request was to run on the first Sunday of each month (or run
once a month but always on Sunday).
Nov 12 '05 #7
Mark A wrote:
"Jonathan Leffler" <jl******@earthlink.net> wrote in message
news:2k****************@newsread1.news.pas.earthli nk.net...
Yes. You can still do, just not so compactly. I started off with the
7 line version, then remembered ranges and saw that in the man page.
So, moderately easily:

12 0 1 * 0 /my/command
12 0 2 * 0 /my/command
12 0 3 * 0 /my/command
...
12 0 7 * 0 /my/command

12 0 1-7 * 0 /my/command
Sorry for the mis-steer. There had to be a reason why I did it the
long-winded way, but I'd forgotten the gotcha (so I was thoroughly
gotch-me'd).

--
Jonathan Leffler #include <disclaimer.h>

I believe that your latest attempt runs the first seven days of the month
AND runs on Sundays (in fact, I think it will kick off 7 jobs on Sunday at
the same time). If I am wrong, some please correct me.

The original request was to run on the first Sunday of each month (or run
once a month but always on Sunday).

Maybe - OK, I give in.

--
Jonathan Leffler #include <disclaimer.h>
Email: jl******@earthlink.net, jl******@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
Nov 12 '05 #8
I finally opened a PMR, and it appears that the problem goes away in V8
FP6a and newer. For what it's worth, I was able to reproduce the
problem on a couple different installations of V8 FP5, so anyone else
experiencing problems with scheduled jobs at FP5 should consider
upgrading.

Nov 12 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bart Simpson | last post by:
Hi, I want to control 'Scheduled Tasks' in Windows 2003 by python program. But I couldn't find any Python module about win32 'Scheduled Tasks'. I could find only Perl module about it. (see...
4
by: Colin Steadman | last post by:
We have a number of scheduled tasks on our IIS server that run daily at some point during the early morning. These tasks run as a specific user that has the correct permissions to perform whatever...
4
by: DFS | last post by:
I have two nightly scheduled jobs at a client site - one at 2:00am and the other at 5:00am Both jobs launch Access 2003, log into the default system workgroup, open a Access .mdb that collects...
6
by: John Bowman | last post by:
Hi, I have a C# app that needs to launch the "Add Scheduled Tasks" wizard found in the control panel "Scheduled Tasks" applet. I realize that this "applet" really just opens the tasks folder,...
11
by: Max | last post by:
I'm writing a program that needs to be able to create custom .job files and add them to the scheduled tasks folder. What I'd like to know is, what is the format of a .job file and how do I go about...
3
by: Mike | last post by:
Hi all, In my recent project (using ASP.NET 2.0 and MSSQL), I need to scheduled a certain operation to be executed, for example, on beginning of a month. Is there anyway to do this on...
0
by: Satish | last post by:
Scheduled Tasks (.Net ) does not run when server is logged off (Windows 2003): I have a .net executable (command line exe) which performs certain business operations. I can run the program...
0
by: kkkanoor | last post by:
I am trying to schedule tasks in Windows from my C# program. The tasks get listed in Windows Schedule Tasks list, but it is not getting invoked. It seems I need to give the user name and password to...
0
by: Paulson | last post by:
Dear Freinds I want to make a program that acts as a reminder for the users.I need to open up the Scheduled task wizard programmatically.If you type Tasks in the run command the Tasks...
1
by: naveensrirangam | last post by:
We want to do a total 10 number of scheduled tasks daily. These tasks will run in certain time in daily and every task application developed in different technologies . Now we are looking to do...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.