Creating statistics profiles
You can create and use statistics profiles to collect statistics for particular tables with consistent options, without the need to explicitly specify the options each time. Db2 also uses the statistics profiles when you implement autonomic statistics maintenance.
About this task
Db2 uses statistics profiles when you enable autonomic statistics maintenance. When you first enable autonomic statistics maintenance, the ADMIN_UTL_MONITOR stored procedure sets a profile for each monitored table based on the existing statistics. However, if a profile exists for a table, Db2 uses the existing profile.
Procedure
To set a statistics profile, complete one of the following actions:
Results
When you specify the SET PROFILE option, the RUNSTATS utility collects no statistics and a new statistics profile is created. If a profile exists for the specified table, that profile is replaced with the new one, and the existing profile is lost. Only one profile can exist for a particular table.
FL 507 When you later collect statistics with the RUNSTATS TABLESPACE, REORG TABLESPACE, or LOAD utilities with USE PROFILE, the utility also removes any statistics that are not included in the profile.