A fix is available
APAR status
Closed as program error.
Error description
The DB2 Administration Tool Change Management function generated an ALTER INDEX ADD COLUMN which fails with a SQLCODE -20181 as no DROP FOREIGN KEY was issued.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of Object Compare v7.2 who append a * * column to a non primary index which is an * * index over the foreign key columns. * **************************************************************** * PROBLEM DESCRIPTION: When trying to add a column to an index * * in a foreign key relationship, the SQL * * rror -20181 occurs during the change * * management RUN job. The reason is that * * an ALTER INDEX ... ADD COLUMN statement * * generated for this change can not be * * used to alter such index. * **************************************************************** * RECOMMENDATION: Apply The PTF. * **************************************************************** Object Compare should not have generated ALTER INDEX statement savan index is in a foreign key relationship and has a column appended.
Problem conclusion
DROP/CREATE INDEX not ALTER INDEX .. ADD COLUMN will be enerated for an index that matches a foreign key. This will follow DB2 rules which does not allow ALTER INDEX ... ADD COLUMN statement for an index that enforces a primary key, unique key, or referential constraint, or matches a foreign key.
Temporary fix
Comments
APAR Information
APAR number
PK64316
Reported component name
DB2 ADMIN TOOL
Reported component ID
568851500
Reported release
720
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2008-04-10
Closed date
2008-09-24
Last modified date
2008-10-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
GOC2CMF GOC2CMP GOC2CMR
Fix information
Fixed component name
DB2 OBJECT COMP
Fixed component ID
5697G6400
Applicable component levels
R720 PSY UK40164
UP08/09/27 P F809
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":"SSAUVH","label":"IBM Db2 Object Comparison Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"720","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
03 October 2008