suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IT33995 Status: Closed

POPULATED STATISTICS WERE NOT CLEANED UP AFTER ALTER TABLE ALTERCOLUMNS

product:
DB2 FOR LUW / DB2FORLUW / B10 - DB2
Problem description:
By design, dropping a column or changing its data type removes
all statistics information from the table being altered, and
Statistics must be recollected after it is again accessible.

However, it seems that ALTER TABLE is using the presence of the
latest_statsrun_offset(command "db2cat -d  -s 
-n  -o .pd" can used to dump out
latest_statsrun_offset value) as an indication of whether
statistics exist, but it won't exist if stats have been set
manually using UPDATE SYSSTAT statements(i.e. the db2look mimic
approach) instead of actually running runstats, as a result, the
statistics won't be cleaned up.

The statistics need to be cleaned up regardless of how they were
set or collected because the column alteration could mean that
the statistics are inconsistent with the data type i.e. wrong
length, wrong format etc.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* n/a                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Db2 for LUW V11.1 Mod4 Fixpack6 or later.         *
****************************************************************
Local Fix:
Run RUNSTATS against the table to remove and collect the latest
statistics after the table is again accessible after alter table
operation.
Solution
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : 
follow-up : IT34032 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
25.08.2020
21.03.2021
21.03.2021
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)