473,699 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4022
"Another DB2 UDB DBA" <sa*****@gmail. com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.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******@earthl ink.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******@earthl ink.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******@earthl ink.net, jl******@us.ibm .com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
Nov 12 '05 #6
"Jonathan Leffler" <jl******@earth link.net> wrote in message
news:2k******** ********@newsre ad1.news.pas.ea rthlink.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******@earth link.net> wrote in message
news:2k******** ********@newsre ad1.news.pas.ea rthlink.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******@earthl ink.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
4772
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 http://taskscheduler.sourceforge.net) But, I want to control 'Scheduled Tasks' by python :) Is there any python module about win32 'Scheduled Tasks'?
4
14695
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 task (processing SQL so I'm told) I have been asked if I can setup a page within ASP that a user could logon to with their own credentials (this I can do). And once logged on be presented with a list of scheduled tasks which they can then...
4
5033
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 data, then shuts down. Except for the scheduled time and file paths, the job settings are identical. The machine is password-protected, so when each job was created the password was entered.
6
8246
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, but I need to launch the add tasks wizard inside the folder. Does anyone have any ideas of how to do this? I can't find anything in the MSDN regarding this. All it mentions is the Task Scheduler API and I can't seem to find it in there either. Did...
11
15415
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 adding in all the data so that the task could run correctly? If that is something not so easy to do, then say I need a certain part of my program to execute on a schedule... How do I go about writing some internal scheduling routine that won't...
3
1896
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 server-side, either on ASP.NET side or SQL Server side? Many thanks in advance, Mike
0
4233
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 (scheduled or manually) without a problem if I am logged in. But when i log off and and set it up as a scheduled task using the Task Scheduler, I receive the following error. Event Type: Error
0
8159
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 start the task OR I have to set the property "RunOnlyIfLoggedOn" to true. But I don't know how to do this. Please help. The following code I used is posted in one of the forums. Please find the code below. --- CODE --- simply use...
0
1980
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 folder(ie. Scheduled Taks folder) is opened,but what I want is to open the Add Scheduled Task wizard in it.Is there any run command to do that? Also if I am able to open the Scheduled Task wizard like this is there any way by which I can...
1
1632
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 a automation system for all the daily scheduled processes.what is the best approach to check and run the scheduled events / tasks.
0
8686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9173
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8911
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6533
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.