A fix is available
APAR status
Closed as program error.
Error description
In DB2 Object Compare Tool for z/OS customer reports that when a table is involved in a DROP / CREATE scenario and there is an INDEX defined on that table, then OC generates a REBUILD INDEX utility that follows the LOAD of that table. Customer complains that the REBUILD INDEX is redundant as the LOAD utility performs that function. . Customer reports INDEX uses DEFER YES and would prefer to see OC APPLY job without REBUILD INDEX utility included.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of the DB2 Object Comparison Tool for * * z/OS who compare indexes between target and * * source with the 'Run REORG/REBUILD' option * * set to 'Mandatory' or 'All relevant' on * * panel GOC5 'Generate Compare Jobs'. * **************************************************************** * PROBLEM DESCRIPTION: In the DB2 Object Comparison Tool for * * z/OS, when the 'Run REORG/REBUILD' * * option on panel GOC5 'Generate * * Compare Jobs' is set to 'Mandatory' * * or 'All relevant', the tool will * * generate the needed REBUILD INDEX * * utility in the APPLY job to make the * * target indexes operational after * * applying the changes from the * * comparison. When the table the index * * is created on is dropped and * * recreated while applying the * * changes, and the LOAD utility is * * executed to RELOAD the table, * * then the REBUILD INDEX utility * * should be ignored because the * * LOAD utility will rebuild all the * * indexes of the table. However, * * the DB2 Object Comparison Tool * * still generates the REBUILD INDEX * * utility in some cases, which is * * unnecessary and redundant. * * * * One example is when the index * * is dropped and recreated with the * * DEFER YES option specified, the * * index could be put into REBUILD * * pending status after it is recreated. * * A REBUILD INDEX utility is needed * * to remove the pending condition. * * When the 'Run REORG/REBUILD' option * * on panel GOC5 'Generate Compare Jobs' * * is set to 'Mandatory' or 'All * * relevant', Object Compare will always * * generate the REBUILD INDEX utility for * * the index. However, in the case when * * the table the index is created on is * * dropped and recreated, and the LOAD * * utility is executed to RELOAD the * * table, the REBUILD INDEX utility * * should be omitted because LOAD WILL * * rebuild all the indexes of the table. * **************************************************************** * RECOMMENDATION: * **************************************************************** The DB2 Object Comparison Tool for z/OS generates an unnecessary REBUILD INDEX statement that follows the LOAD utility of the table the index is created on. The REBUILD INDEX statement is redundant in this case, as the LOAD utility will rebuild all the indexes of the table.
Problem conclusion
Problem has been resolved.
Temporary fix
Comments
APAR Information
APAR number
PM65873
Reported component name
DB2 OBJECT COMP
Reported component ID
5697G6400
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-05-30
Closed date
2012-07-27
Last modified date
2012-08-09
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
ADB2CMF ADB2CMP ADB2CMR ADB2CMS ADB2CMT ADB7000
Fix information
Fixed component name
DB2 ADMIN TOOL
Fixed component ID
568851500
Applicable component levels
RA10 PSY UK80590
UP12/08/01 P F207
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
09 August 2012