Quote:
|
Originally Posted by MarkhamDBA
Our db has more than 700 tables so running reorgs on all of them one by one would be time consuming (not to say ridiculous  ).
|
In my opinion, it will indeed be ridiculous, but for a different reason. It is highly unlikely that you need to reorg all 700 tables at once. Besides, only you can decide which will be the best clustering index, if any, for each table - you cannot automate that decision.
You would have to analyze the results of REORGCHK and make appropriate decisions. Nobody said being a DBA is easy...
As for statistics, you could use REORGCHK UPDATE STATISTICS FOR SCHEMA ... to, well, update statistics for all tables in a schema.