DB2 - Problem description
Problem IC93787 | Status: Closed |
AUTOMATIC REORG RETURNS SQL2220W ON REORG OF EMPTY COMPRESSED TABLE AND DICTIONARYOPTION="REBUILD" | |
product: | |
DB2 FOR LUW / DB2FORLUW / A10 - DB2 | |
Problem description: | |
Automatic reorg will return following errors in the db2diag.log: 2013-06-26-01.00.01.149619+120 I3779E669 LEVEL: Error PID : 4132 TID : 139923044009728PROC : db2acd 0 INSTANCE: db2v977 NODE : 000 FUNCTION: DB2 UDB, Automatic Table Maintenance, db2AutoReorgExec, probe:190 DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes sqlcaid : SQLCA sqlcabc: 136 sqlcode: 2220 sqlerrml: 0 sqlerrmc: sqlerrp : db2Reorg sqlerrd : (1) 0x801A006D (2) 0x00000000 (3) 0x00000000 (4) 0x00000000 (5) 0x00000000 (6) 0x00000000 sqlwarn : (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) sqlstate: 2013-06-26-01.00.01.149779+120 I4449E342 LEVEL: Event PID : 4132 TID : 139923044009728PROC : db2acd 0 INSTANCE: db2v977 NODE : 000 FUNCTION: DB2 UDB, Automatic Table Maintenance, db2AutoReorgExec, probe:10 STOP : Automatic reorg has completed with errors on table SAMPLE ."DB2V977 "."TESTTAB" To hit the above errors following conditions need to be met: - table is a compressed table (CREATE TABLE ... COMPRESS YES) - automatic reorg policy uses option dictionaryOption="Rebuild" - table data has been deleted With the above conditions being true the table will be marked for a reorg. DB2 automatic reorg will attempt to reorganize the table and starts a REORG. Due to table being empty the REORG will fail to build a new compression dictionary and return warning SQL2220. The table reorganization as such will be successful only the dictionary rebuilt could not be performed. Automatic reorg does treat the warning as error and prints the db2diag.log messages. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * All * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 Version 10.1 Fix Pack 3. * **************************************************************** | |
Local Fix: | |
You should execute a manual runstats against such a table to reflect the current state after the messages are seen in the db2diag.log. This will ensure the table is no longer in need for reorg and prevent it from being considered in the next automatic reorg window. | |
available fix packs: | |
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows | |
Solution | |
First fixed in DB2 Version 10.1 Fix Pack 3. | |
Workaround | |
not known / see Local fix | |
BUG-Tracking | |
forerunner : APAR is sysrouted TO one or more of the following: IC95452 follow-up : | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 28.06.2013 27.09.2013 27.09.2013 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
10.1.0.3 | |
10.1.0.3 |