Hi All!
One of my customers has been hit by this and so I thought a general warning was called for! They applied
PH28092 UI71385 REORG PI PARALLEL BUILD IMPROVEMENT (Closed September)
REORG PI parallel BUILD improvement for partitioning indexes when running on a table space with a single PI
The enhancement takes place when all of the following criteria are met:
- REORG TABLESPACE SHRLEVEL REFERENCE or CHANGE is run on a multi-part range partitioned table space with only one clustering partitioned index defined on the table involved, with no other indexes defined
- REORG is sorting the data records into clustering order with the default or specified SORTDATA YES option
- Data unload/reload partition is used on the REORG with message DSNU1160I issued
- REBALANCE is not specified
Which is all in all a good idea. After a while they noticed "problems"... Now there is this HIPER APAR
PH30979 UI72742 DATA CORRUPTION AFTER REORG COMPLETED WITH RC00 WITH PH28092 INSTALLED, RC00C90206 ERQUAL5007, INCORROUT, ABEND0C4 DSNURBXD (closed end of November)
Multiple issues after PH28092 / UI71385 is applied.
Reorg utility might end with RC00 but leaving the tablespace in inconsistent state.
There are index related errors on PI during REORG or after REORG.
In particular there are rows with the same primary key while non key columns can have different values containing the tablespace rids.
Applications can get abend04E RC00C90206 ERQUAL5007 in DSNIDIFS, or can even get incorrect outputs depending on the access path chosen .
Other symptoms include next REORG possibly ending with ABEND04E RC00E4030F RC00C90003 in DSNURLOG or CHECK INDEX and REBUILD INDEX errors like MSGDSNU713I KEYS MISMATCH / MSGDSNU340I ERROR LOADING INDEX DUPLICATE KEY.
User can check if the Reorg output contains this message:
DSNU1160I.... PARTITIONS WILL BE UNLOADED/RELOADED IN PARALLEL...
If the message is there and PH28092/UI71385 is applied then the user is exposed to the issue which can cause the unavailability of the involved data to the applications, as the user needs to fix the bad data.
In the reported case the client performed the following actions to prevent additional duplicate keys:
- stop db2 applications / prevent all data access to corrupted tablespace
- drop unique index
- correct the data
- re-create the unique index
- start db2 application
Happy New Year - And I hope no-one else finds this...
Roy Boxwell
SOFTWARE ENGINEERING GmbH and SEGUS Inc.
-Product Development-
Vagedesstrasse 19
40479 Dusseldorf/Germany
Tel. +49 (0)211 96149-675
Fax +49 (0)211 96149-32
Email:
R.Boxwell@seg.deWeb
http://www.seg.deLink zur Datenschutzerklärung
Software Engineering GmbH
Amtsgericht Düsseldorf, HRB 37894
Geschäftsführung: Gerhard Schubert, Ulf Heinrich