Online Documentation for SQL Manager for DB2

Setting runstats options


This step of the wizard allows you to set the runstats options.

 

Run Statistics - Setting runstats options

 

 

Table options

 

CheckBox Collect table statistics

When this option is selected, table statistics are collected.

 

CheckBox Collect column statistics

When this option is selected, column statistics are collected.

 

Specify whether basic column statistics are to be collected RadioButton on all columns or RadioButton on key columns only.

 

CheckBox Collect distribution statistics

If this option is enabled, both basic statistics and distribution statistics are collected on the columns.

 

Specify whether distribution statistics are to be collected RadioButton on all columns or RadioButton on key columns only.

 

If necessary, specify the Frequency and the Quantile values that will be used to determine the maximum number of frequency and quantile statistics to be collected for the columns.

 

 

Index options

 

CheckBox Collect index statistics

When this option is selected, index statistics are collected.

 

CheckBox Collect detailed statistics

Use this option to calculate extended index statistics.

 

CheckBox Collect sampled statistics

Use this option to employ a CPU sampling technique when compiling the extended index statistics.

 

Access mode

 

RadioButton Read-only

This option specifies that other users can have read/write access to the table while statistics are calculated.

RadioButton Read/Write

This option specifies that other users can have read-only access to the table while statistics are calculated.

 

Sampling options (available for server version 9.7)

 

RadioButton System

This option allows RUNSTATS to collect statistics on a sample of the data pages from the table(s).

RadioButton Bernoulli

This option allows RUNSTATS to collect statistics on a sample of the rows from the table or statistical view.

 

 

Click the Next button to proceed to running statistics.