IBM Tivoli Monitoring > Version 6.3 Fix Pack 2 > Installation Guides > Installation Guide > Performance tuning > Tivoli Data Warehouse > Relational database design and performance tuning for DB2 Database servers > Database design details > Database maintenance

IBM Tivoli Monitoring, Version 6.3 Fix Pack 2


RUNSTATS

The DB2 optimizer uses information and statistics in the DB2 catalog to determine optimal access to the database based on the provided query. Statistical information is collected for specific tables and indexes in the local database when you run the RUNSTATS utility.

When significant numbers of table rows are added or removed, or if data in columns for which you collect statistics is updated, execute RUNSTATS again to update the statistics.

Use the RUNSTATS utility to collect statistics in the following situations:

The RUNSTATS command has several formats that primarily determine the depth and breadth or statistics that are collected. If you collect more statistics, the command takes more time to run. The following options are included:

Take care when running RUNSTATS, because the collected information impacts the selection of access paths by the optimizer. Implement RUNSTATS as part of a regularly scheduled maintenance plan if some of the conditions occur. To ensure that the index statistics are synchronized with the table, execute RUNSTATS to collect table and index statistics at the same time.

Consider some of the following factors when deciding what type of statistics to collect:


Parent topic:

Database maintenance

+

Search Tips   |   Advanced Search