NGTSTATS syntax
NGTSTATS | Keyword that begins the statistics collection statement.
| |||||
---|---|---|---|---|---|---|
OBJECTSET objectSetName | Specifies the name of an existing object set. For more information, see the chapter about using object sets in the Using object setstopic. | |||||
EXCLUDE TABLESPACE | Indicates an object to be excluded from processing. You can use either a specific qualified table space name (databaseName.tableSpaceName) or use wildcards (databasePattern.tablespacePattern):
|
Statistics specification block
TABLE(ALL) | (optional) BMC AMI Stats collects statistics for all tables in the table space. BMC AMI Stats collects statistics for all tables by default, even if you omit TABLE(ALL). Collecting statistics for only specific tables is not an option. | ||||||
COLUMN | (optional) BMC AMI Stats collects statistics for index columns. If you omit COLUMN, BMC AMI Stats collects statistics only for the first key column for each index.
| ||||||
COLGROUP specification block | |||||||
INDEX(ALL) or INDEXES(ALL) | (optional) BMC AMI Stats collects statistics for all indexes by default, even if you omit INDEX(ALL) or INDEXES(ALL). Collecting statistics for only specific indexes is not an option. | ||||||
Distributed options specification block | |||||||
Common options syntax |
COLGROUP specification block
COLGROUP | COLGROUP indicates that the specified columns are to be treated as a group. BMC AMI Stats collects correlation statistics for the specified columns. Restrictions
| ||
FREQVAL COUNT (numberValues) [MOST|LEAST|BOTH] | FREQVAL is specified for each COLGROUP to collect frequency data on the COLGROUP. The following additional considerations apply:
The parameters associated with KEYCARD do not apply to COLGROUP. |
Distributed options syntax block
KEYCARD FREQVAL NUMCOLS numberColumns COUNT numberValues [MOST|LEAST|BOTH] | BMC AMI Stats collects and posts statistics as follows:
| ||||
TBCOLFREQ | BMC AMI Statscollects single column frequency statistics for all or a list of table columns by reading the table space. When you specify TBCOLFREQ, the KEYCARD FREQVAL COUNT, MOST, LEAST, and BOTH values apply to data collection. |
Reset specification block
RESET ACCESSPATH | Resets the access-path statistics for the tables and indexes This keyword does not affect real-time statistics or space-related statistics. If you specify RESET ACCESSPATH, you cannot specify any other keywords for collecting specific statistics. |
HISTORY ACCESSPATH | Inserts rows into SYSTABLES and SYSINDEXES for each affected object after BMC AMI Stats resets statistics via RESET ACCESSPATH |