473,405 Members | 2,404 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,405 software developers and data experts.

DB2 Scheduler

Hi

I have posted this question on IBM's DB2 forums without much success
and I hope I'll have success here.

I would like to know if there is a way to create a scheduled job in DB2
(I'm using DB2 8.1 on Linux) without having to use the DB2 Task Center
GUI. Ideally, I'd like to create a set of stored procedures that
accept job parameters (much like msdb.dbo.sp_add_job in MSSQL) and
update the scheduler tables accordingly.

According to what I have read, there is no public API on DB2 that
allows this functionality.

If this is indeed possible by inserting schedule information into the
tools cataglog directly, will DB2 necessarily pick this up?

Any advice would be greatly appreciated.
Thank you.

Jun 12 '06 #1
5 2607
"db2inst2" <tg*****@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
Hi

I have posted this question on IBM's DB2 forums without much success
and I hope I'll have success here.

I would like to know if there is a way to create a scheduled job in DB2
(I'm using DB2 8.1 on Linux) without having to use the DB2 Task Center
GUI. Ideally, I'd like to create a set of stored procedures that
accept job parameters (much like msdb.dbo.sp_add_job in MSSQL) and
update the scheduler tables accordingly.

According to what I have read, there is no public API on DB2 that
allows this functionality.

If this is indeed possible by inserting schedule information into the
tools cataglog directly, will DB2 necessarily pick this up?

Any advice would be greatly appreciated.
Thank you.


Are you familiar with Linux/UNIX cron jobs? This is a scheduler build into
the OS. You could create the SP's to access DB2 tables (that you create)
with the parms and write to a another table with the job status.
Jun 12 '06 #2
db2inst2 wrote:
Hi

I have posted this question on IBM's DB2 forums without much success
and I hope I'll have success here.

I would like to know if there is a way to create a scheduled job in DB2
(I'm using DB2 8.1 on Linux) without having to use the DB2 Task Center
GUI. Ideally, I'd like to create a set of stored procedures that
accept job parameters (much like msdb.dbo.sp_add_job in MSSQL) and
update the scheduler tables accordingly.

According to what I have read, there is no public API on DB2 that
allows this functionality.
The scheduling information is stored in the tools catalog. You can add your
own jobs by modifying the respective tables.
If this is indeed possible by inserting schedule information into the
tools cataglog directly, will DB2 necessarily pick this up?


I would think so, yes.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jun 12 '06 #3
Hi Mark, thankyou for your reply.

I have considered this but my aim is to create a generic set of
scheduler stored procedures that work with the database (MSSQL or
DB2LUW) scheduler. This is easy with MSSQL because these stored
procedures (such as sp_add_job, sp_add_job_step, etc) are exposed.

Jun 12 '06 #4
Thank you for your reply Knut,

There are however quite a few tables and views within the tools catalog
that I have created. I intend to monitor how these tables are changed
by the Task Center GUI and to attempt a manual insertion. This strikes
me as a bit labour-intensive but I will probably resort to this if
there is no simpler way to achieve this.

Thanks

Knut Stolze wrote:
db2inst2 wrote:
Hi

I have posted this question on IBM's DB2 forums without much success
and I hope I'll have success here.

I would like to know if there is a way to create a scheduled job in DB2
(I'm using DB2 8.1 on Linux) without having to use the DB2 Task Center
GUI. Ideally, I'd like to create a set of stored procedures that
accept job parameters (much like msdb.dbo.sp_add_job in MSSQL) and
update the scheduler tables accordingly.

According to what I have read, there is no public API on DB2 that
allows this functionality.


The scheduling information is stored in the tools catalog. You can add your
own jobs by modifying the respective tables.
If this is indeed possible by inserting schedule information into the
tools cataglog directly, will DB2 necessarily pick this up?


I would think so, yes.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany


Jun 12 '06 #5
Hi Knut,

I have one other question, is there manual or spec that I could use to
determine how the integer values map in the scheduler tables? (for
instance INTERVAL_DETAIL of 5 means day of month).

Thanks.

Knut Stolze wrote:
db2inst2 wrote:
Hi

I have posted this question on IBM's DB2 forums without much success
and I hope I'll have success here.

I would like to know if there is a way to create a scheduled job in DB2
(I'm using DB2 8.1 on Linux) without having to use the DB2 Task Center
GUI. Ideally, I'd like to create a set of stored procedures that
accept job parameters (much like msdb.dbo.sp_add_job in MSSQL) and
update the scheduler tables accordingly.

According to what I have read, there is no public API on DB2 that
allows this functionality.


The scheduling information is stored in the tools catalog. You can add your
own jobs by modifying the respective tables.
If this is indeed possible by inserting schedule information into the
tools cataglog directly, will DB2 necessarily pick this up?


I would think so, yes.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany


Jun 12 '06 #6

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

Similar topics

4
by: keepyourstupidspam | last post by:
Anyone know of a reliable design for a Windows C++ Task Scheduler Class. The scheduler will expose a member function that will add schedules, its parameters will be an interval to run the tasks...
1
by: Mike Thomas | last post by:
I want to start this thread again - on my first attempt I was a little ambiguous and was not able to get the answer I need. I am trying to start Access 2000 on Windows NT 2000 Server by using the...
1
by: Neil Ginsberg | last post by:
I am having trouble using Windows Scheduler with an A2K database that has a password. The password is a db password, not a user-level security password. I have a routine I am looking for Scheduler...
4
by: LongBow | last post by:
Hello all, I have been working on my first embedded project which has been exciting and stressfull at the same time. My task now is to develop a good scheduler for transmitting ARINC labels....
7
by: Shane Story | last post by:
Have an app and would like to allow easy addition of MYAPP.EXE /F /P (for example) my prog with command line args, as a job to be run. Would like to make it easier on the user to run the app. ...
8
by: VMI | last post by:
I'm searching for a way to build a scheduler that will store its data in sql server. I've searched google but it mostly displays sites that sell scheduler controls. Anyone know of any sites that...
3
by: mayur_hirpara | last post by:
Hi, I am writing a VB.NET application. It is a Windows application at the moment. The application contains a button. the click event of button perform a long running task. It needs to be started...
2
by: yamca | last post by:
I want to write a task scheduler. But i cant make the logic between the scheduler and tasks. For example a have an external process which can add and delete tasks from scheduler. Every task has...
4
by: Sid Price | last post by:
Is there a .NET (2003) class available somewhere that might provide a comprehensive task scheduler with a better granularity than the one minute of the built-in scheduler on XP? Even down to 15...
1
by: =?Utf-8?B?YXVzdGlyb2I=?= | last post by:
Hi, While I realise that this may not be a very nice solution architecturally, I kick off a Scheduler in an ASP.NET 2.0 webservice in Application_Start() which is supposed to call a stored proc...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.