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 > update sysstat.tables failed with 23521 SQLSTATE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-01-09, 09:21
wondering wondering is offline
Registered User
 
Join Date: May 2009
Posts: 10
update sysstat.tables failed with 23521 SQLSTATE

I am using db2look to get a bunch of related table statistics from a production databaes, and update a test database using the generated statements. Both the production database and test database don't have detailed index statistics.

During this process, only one update statement failed, which is to update SYSSTAT.TABLES for a specific table X. It failed with the message:
The catalog statistis "963" for column "CARD" is out of its target column,has an invalid format or is inconsistent in relation to some other statistics. (23521, -1227)

This is strange, becaues:
1) The update statements for other tables and their columns statistis succeeded. (i.e. the statements that update SYSSTAT.TABLES and SYSSTAT.COLUMNS)
2) The update statements for table X's column statistis (SYSSTAT.COLUMNS) succeeded. So "CARD" of the table is greater than any column's COLCARD.

I suspect the relationship between "CARD" and "NPAGE", "FPAGE" might be off. However, i don't know how to confirm this. Could you please help?
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