The database configuration parameter STAT_HEAP_SZ determines the maximum amount of memory that will be used when RUNSTATS is performed. This limit applies whether RUNSTATS is issued manually or driven by automatic statistics collection. Although the default value (set when a database is created) is sufficient in many cases, it is usually too low for wide tables (tables with many columns). Whenever a RUNSTATS command fails to complete due to a low setting of STAT_HEAP_SZ, sqlcode SQL0973N is generated. When automatic statistics collection fails to perform RUNSTATS on a table due to insufficient statistics heap memory, the following logpoints will be written to the db2diag.log.
2007-03-23-23.49.33.246227-240 I1690146A941 LEVEL: Error
PID : 807008 TID : 1 PROC : db2agent (A)
INSTANCE: popivan NODE : 000 DB : A
APPHDL : 0-18 APPID: *LOCAL.popivan.070324034939
AUTHID : POPIVAN
FUNCTION: DB2 UDB, relation data serv, sqlr_init_tstat, probe:160
MESSAGE : ZRC=0x8B120006=-1961754618=SQLR_STATS_HEAP_TOO_SMALL
"Statistics heap size too small to begin with"
DIA8328C No memory available in the statistics heap.
«
This particular version was published on 14-Apr-2010 14:30 by RaffaelePedrini.