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 > Automatic Maintenance Parameters – ON for Runstats and Reorg but doesn’t Work

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-09, 15:04
db2raja db2raja is offline
Registered User
 
Join Date: Mar 2009
Posts: 21
Automatic Maintenance Parameters – ON for Runstats and Reorg but doesn’t Work

Hi All,
When I check my DB CFG parameters for Auto Maintenance for my Database. The Auto_Runstats and Auto_Reorg are turned ON for all the databases. But, when I am checking the statistics manually using the command: db2 “select stats_time, card, from syscat.tables where tabschema = ‘schema name’”. I am not getting the latest statistics time. And as per the performance issues from the application team I am again running the runstats manually.

So, can anyone please help me regarding this issue? Like, I want to check that for what time are these runstats and reorg scheduled daily? And even if the DB CFG parameters shows on why they are not running. How can I check these like? I need to work them properly for all the databases. Please help me what should I do.

DB2 Version: DB2 v9.1.0.5

OS Version: AIX 5.3

Thanks
Raja.
Reply With Quote
  #2 (permalink)  
Old 03-03-09, 17:17
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Reply With Quote
  #3 (permalink)  
Old 03-03-09, 22:04
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
There have been several APAR's with auto maintenance. Try the latest fixpack.
__________________
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 03-03-09, 23:31
challadb2 challadb2 is offline
Registered User
 
Join Date: Feb 2009
Posts: 1
Thanks Nick and Mark ...very useful information..
Reply With Quote
  #5 (permalink)  
Old 03-04-09, 03:58
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
Quote:
Originally Posted by db2raja
Hi All,
When I check my DB CFG parameters for Auto Maintenance for my Database. The Auto_Runstats and Auto_Reorg are turned ON for all the databases. .
the db cfg follows a tree structure and hence if AUTO_TBL_MAINT is OFF both AUTO_RUNSTATS and AUTO_REORG will be considered off even if they are set to ON.

Similarly if AUTO_MAINT is set to OFF then automatic maintenance itself is considered OFF even if you have set all the below parameters to ON
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #6 (permalink)  
Old 03-04-09, 05:05
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
and even Health_mon at instance level should be on..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #7 (permalink)  
Old 03-04-09, 09:13
db2raja db2raja is offline
Registered User
 
Join Date: Mar 2009
Posts: 21
Hi Nick,
the parameters AUTO_TBL_MAINT and AUTO_MAINT are both ON...


Thanks
Reply With Quote
  #8 (permalink)  
Old 03-04-09, 09:16
db2raja db2raja is offline
Registered User
 
Join Date: Mar 2009
Posts: 21
Thanks PRZYTULA guy ...I can see that Health_mon is OFF for all the instances that are handling databases...Thanks for your help..hope now it works..
Reply With Quote
  #9 (permalink)  
Old 03-04-09, 09:43
db2raja db2raja is offline
Registered User
 
Join Date: Mar 2009
Posts: 21
But my management says that I should not turn ON the Health_mon at instance level..
Guyzz..any other solution..
Reply With Quote
  #10 (permalink)  
Old 03-04-09, 23:23
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
Quote:
Originally Posted by db2raja
I want to check that for what time are these runstats and reorg scheduled daily?
Depends upon whether you have setup an automatic maintenance window or not.

Quote:
Originally Posted by db2raja
And even if the DB CFG parameters shows on why they are not running. How can I check these like?
did you check the stats in SYSTOOLS.HMON_ATM_INFO
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #11 (permalink)  
Old 03-05-09, 16:27
db2raja db2raja is offline
Registered User
 
Join Date: Mar 2009
Posts: 21
Thanks guyz..for the replies
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