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 > Stats_time showing old timestamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-11, 12:09
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
Stats_time showing old timestamp

Hi All,

I am running Db2 9.5 FP 5 on RedHat 5.3. I run runstats once every week and i was looking at the stats_time column in the syscat.tables but the timestamp is from August 2010. Why is the stats_time showing an old timestamp when I am running runstats every week?

Thanks
Reply With Quote
  #2 (permalink)  
Old 03-17-11, 12:49
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Are you sure that runstats runs to completion without an error? What is the command you are using for runstats?

Andy
Reply With Quote
  #3 (permalink)  
Old 03-17-11, 14:33
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
I don't see any error messages in my output file. The command I am using for runstats is:

runstats on table tableschema.tablename with distribution and indexes all
Reply With Quote
  #4 (permalink)  
Old 03-17-11, 14:36
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
Quote:
Originally Posted by ARWinner View Post
Are you sure that runstats runs to completion without an error? Andy
Actually I did get this warning, not so much an error:

SQL2314W Some statistics are in an inconsistent state. The newly collected
"TABLE" statistics are inconsistent with the existing "INDEX" statistics.
SQLSTATE=01650
Reply With Quote
  #5 (permalink)  
Old 03-17-11, 14:39
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
This system does get a lot of updates so maybe thats why I sometimes see that warning message. But i still don't understand the reason why the stats_time timestamp is way off.
Reply With Quote
  #6 (permalink)  
Old 03-17-11, 17:01
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I do not know either. Do all of the tables have the problem, or are some correct?

Andy
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