Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB2 Reorg of Tables and recreation of indexes

Status
Not open for further replies.

kozlow

MIS
Mar 3, 2003
326
US
I created a script that runs a reorgchk of tables.

It then decides if the table needs to be reorged.
Checks the Indexes and decides if any need to be recreated.

It then drops / creates the selected indexes (adds the associated table to the select tables).
REORGS the selected tables by it primary index.
Runs RUNSTATS on the selected tables.

I have not been able to figure or find out if it is better to reorg the indexes then the tables or the tables then the indexes.

Any advantage to one way or the other?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top