DB2 - Problem description
Problem IT09073 | Status: Closed |
INCORRECT RESULTS FROM SORT OPERATIONS ON DB2 VERSION 10.5.0.5 | |
product: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
Problem description: | |
Incorrect results from sort operations might occur when all of the following conditions are true: - DB2 version 10.5.0.5 (or a special build containing an incorrect fix for APAR IT01146) is being used. - The sort operation includes more than one column. - The sort operation includes one or more VARCHAR or VARCHAR FOR BIT DATA columns beyond the first column. - The sort operation includes more than 500 records containing duplicate data in the columns leading up to the VARCHAR column. In addition to potential wrong and/or incorrectly ordered results being returned to the user based on incorrect sort order, it is also possible that the incorrect sort could result in an unordered index if the index was created or rebuilt using the problematic version of DB2. This could result in the following symptoms: - Index errors during insert, update or delete processing. - Incorrect results from an index scan. - Duplicates being inserted into a unique index. The db2dart command can be used to detect any unordered indexes. This problem does not exist in v10.1. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * All users * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 version 10.5.0.6. * **************************************************************** | |
Local Fix: | |
To avoid hitting the problem while on an affected built, execute the following command and then recycle the instance: db2set DB2_BINSORT=off After applying the workaround above and/or moving to a build with this APAR fix, to fix an affected index, execute the command above, recycle the instance and then perform one of the following actions: - Drop and recreate the affected index(es). - Execute the REORG INDEXES command with REBUILD option to rebuild the affected index(es). | |
Solution | |
The problem is first fixed in DB2 version 10.5.0.6. | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 22.05.2015 01.09.2015 29.01.2016 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
10.5.0.6 | |
10.5.0.7 |