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 > scheduling in db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-11-08, 04:53
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
Question scheduling in db2

Hi,
i tried scheduling a task in db2 but it gives me this error

SQL22221N The scheduler is not active. Reason code "1".

the parameter named 'sched_enable' in the admin config file is also set to 'ON', still giving the same error. if anybody had faced the same problem before, do let me know how it worked for you.
Reply With Quote
  #2 (permalink)  
Old 07-11-08, 07:34
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What DB2 version and OS?

Andy
Reply With Quote
  #3 (permalink)  
Old 07-11-08, 22:27
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by nittal
Hi,
i tried scheduling a task in db2 but it gives me this error

SQL22221N The scheduler is not active. Reason code "1".

the parameter named 'sched_enable' in the admin config file is also set to 'ON', still giving the same error. if anybody had faced the same problem before, do let me know how it worked for you.
What does it say in the Messages and Codes manual for that error?
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 07-14-08, 00:26
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
its db2 version 8.1 and OS is windows
Reply With Quote
  #5 (permalink)  
Old 07-14-08, 07:07
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
did you try restarting your db2 admin server.... that is the second resolution provided by IBM after SCHED_ENABLE thing which you have already done....
Reply With Quote
  #6 (permalink)  
Old 07-14-08, 09:08
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
restarted the server also, still facing the same problem....
Reply With Quote
  #7 (permalink)  
Old 07-15-08, 05:26
d_mohan81 d_mohan81 is offline
Registered User
 
Join Date: Feb 2007
Posts: 31
Yes..I too faced the same problem.IBM suggested that DAS or Tools Catalog might be corrupted. They asked me to re-configure the DAS and Tools catalog database(ie Droping and creating). After that it worked for me !!!
__________________
Regards
Mohan
Reply With Quote
  #8 (permalink)  
Old 07-15-08, 07:11
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
hi mohan,
I hope this solution will work for me also...but can you tell me how do I reconfigure the tools catalog database? The parameter TOOLSCAT_DB is assigned value DWCTRLDB, but I can find no database in any of my node with this name, so no issue of dropping it. and if i recreate it, m i supposed to create it with same name or....? I just have no idea about how to recreate tools catalog database.
Reply With Quote
  #9 (permalink)  
Old 07-16-08, 00:17
d_mohan81 d_mohan81 is offline
Registered User
 
Join Date: Feb 2007
Posts: 31
Please try this command, if you dont have a DB name called DWCTRLDB

db2 "create tools catalog systools create new database DWCTRLDB".

After that stop and start the DAS.
__________________
Regards
Mohan
Reply With Quote
  #10 (permalink)  
Old 07-17-08, 05:08
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
thanks a lot...its working
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