If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Sceduled jobs in db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-17-08, 08:08
prasadv18 prasadv18 is offline
Registered User
 
Join Date: Nov 2007
Posts: 26
Sceduled jobs in db2

Hi all

In my Database server Some sceduled jobs are not running
How to check what are causes.

Example:

I secduled job (backup) at 12:00 but it failed
backup was not initiated at that time
how check the what is problem


Tahnks & Regards
Reply With Quote
  #2 (permalink)  
Old 12-17-08, 09:28
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What is your DB2 version and OS? Is the DAS running?

Andy
Reply With Quote
  #3 (permalink)  
Old 12-17-08, 11:21
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
Need more info -
Are you using Task Manager or OS Scheduler?
What does your scheduled task do?
Is your scheduled task purely T-SQL or is it made up of scripts?
If you are talking about scheduling backups, are you defining the job in the automatic maintenance window?
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #4 (permalink)  
Old 12-18-08, 05:44
prasadv18 prasadv18 is offline
Registered User
 
Join Date: Nov 2007
Posts: 26
HI

db2 8.2 and AIX 5.2 are versions of database and OS
we are using crontab to scedule jobs
Reply With Quote
  #5 (permalink)  
Old 12-18-08, 09:08
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Do the cron log messages show that it is trying to execute the scripts?

Which user is executing the scripts? Does it have the correct rights and configurations?

Andy
Reply With Quote
  #6 (permalink)  
Old 12-18-08, 12:54
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
so its not a database issue and is an AIX issue..... try googling cron or maybe you cn ask the same question in some AIX forum for faster resolution.
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #7 (permalink)  
Old 12-18-08, 16:23
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by prasadv18
we are using crontab to schedule jobs
cron jobs run with the correct user-id, but practically without any environment.
Try adding a line like
. $HOME/.profile
at the beginning of the shell script that is started from crontab.
This should set DB2DIR, DB2INSTANCE, INSTHOME etc.; I'm assuming these are set through your .profile file. Typically, that file will have a line something like
. /data/udb/db2sysa/sqllib/db2profile
Adding that line to the cron script (instead of $HOME/.profile) should also work.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On