Running index statistics
Use the Index Statistics window to update the catalog's information about
index usage.
Authorities and privileges
To run index statistics:
-
Open
the Index Statistics window.
-
On the Options pages, specify how the utility runs.
-
On the Indexes pages, specify correlation statistics
properties.
-
Click OK.
Related information
Displaying reports about indexes
Stopping indexes
Starting
indexes

Specifying how the utility runs
Specify statistics options in the Statistics Options page:
-
Specify a Share level
-
Reference only
-
Allows read-only access to other applications while the utility is running.
-
Allow changes
-
Allows write access to other applications while the utility is running.
This setting can allow uncommitted data to be collected in the statistical
report.
-
Specify Yes or No in the Report statistics radio buttons.
Specifying Yes indicates that a set of messages is sent to the SYSPRINT
data set.
-
Specify how you want the utility to update
the DB2 catalog:
-
Access path and space statistics
-
The utility updates all the statistics.
-
Access path statistics only
-
The utility updates only the catalog tables used for access path selection.
-
Space statistics only
-
The utility updates only the catalog that provide statistics to help database
administrators assess the status of a space or index.
Specifying correlation statistics properties
-
Specify the Collect key cardinalities check box to collect all of
the distinct values in all of the 1 to n key column combinations for the
specified indexes, where n is the number of columns in the index.
-
To collection frequent value statistics, select the index in the
table and click the Add push button.The Index Correlation Statistics window
opens.