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 > runstats on SYSCAT tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-10-09, 12:03
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
runstats on SYSCAT tables

we are migrating to v9.5 and manual says we should do RUNSTATS on SYSCAT tables as "during database migration, the statistics collected for system catalog tables are not retained".

My question is should we do RUNSTATS on SYSCAT tables on regular basis as a maintanence (same as for regular application tables)? Thanks
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #2 (permalink)  
Old 03-10-09, 12:40
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Yes, you should do RUNSTATS on the system tables. The frequency depends on the frequency of changes to them.

Andy
Reply With Quote
  #3 (permalink)  
Old 03-10-09, 18:43
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Any time you make a big schema change. Also the first time you run them on catalog tables, make sure run them twice because the first time will add a large number of rows to some of the stats tables, and you have to run again to get stats on the stats tables.
__________________
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
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