DB2 for LUW 9.1.4...on AIX 6...
Going through a PeopleSoft migration..about 3600 tables...big boss
wants us to do a runstats AFTER a redirected-restore to ensure that
the row-count is the same on the target DB as it was on the source...I
tried to explain...etc.etc.etc... but they still want this.
I did 'db2 reorgchk update statistics...' and it took 17 hours.
I did a 'db2 runstats on table xyz' for the entire DB and it took 10
hours...
Is there a better faster way to get CARD on syscat.tables updated?
I suppose I could SELECT COUNT(*) for all tables...on source and
target DB's...and write the results somewhere and compare...
The entire exercise is pointless but...still...thought I'd
ask....Looking for a quick thinggie here.
Arun
Did you even read my question? Sheesh...I know all
that...obviously...I pointed it all out in my posting...I'm asking for
a simple easier way to update CARD without running a long-ass DB2
utility that does 'the world'.
"A simple easier way":
update sysstat.tables
set card=NNN
where tabschema='YOUR_TABLE_SCHEMA' and tabname='YOUR_TABLE_NAME'
and you will see the same value NNN in the syscat.tables.card after
that.
Regards,
Mark B.