A fix is available
APAR status
Closed as program error.
Error description
In DB2 Object Comparison Tool for z/OS, an extra ALTER TABLE ADD PRIMARY KEY appears in the .CHG file when compared table is dropped/recreated and CREATE TABLE DDL contains PRIMARY KEY keyword.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of the DB2 Object Comparison Tool for * * z/OS who compare tables with unique * * constraints. * **************************************************************** * PROBLEM DESCRIPTION: DB2 Object Comparison Tool generates an * * ALTER TABLE ADD PRIMARY KEY statement * * although a CREATE TABLE statement with * * a primary key has been generated for * * the same table. When applying the * * change, DB2 will issue message * * SQLCODE = -624/SQLCODEN624, * * SQLSTATE = 42889. * **************************************************************** * RECOMMENDATION: * **************************************************************** The DB2 Object Comparison Tool generates an ALTER TABLE ADD PRIMARY KEY statement although a CREATE TABLE statement with a primary key has been generated for the same table.
Problem conclusion
The DB2 Object Comparison Tool has been changed to correctly detect unique constraints.
Temporary fix
Comments
APAR Information
APAR number
PM22670
Reported component name
DB2 OBJECT COMP
Reported component ID
5697G6400
Reported release
720
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-09-16
Closed date
2011-04-01
Last modified date
2011-05-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
GOC2CMF
Fix information
Fixed component name
DB2 OBJECT COMP
Fixed component ID
5697G6400
Applicable component levels
R720 PSY UK66435
UP11/04/08 P F104
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:
12 February 2021