A fix is available
APAR status
Closed as program error.
Error description
Merge does not have the implementation to correctly apply ALTER TABLE ... ADD/DROP PRIMARY KEY statement when the table has a history table relation ship. Merge Report reports: Cannot drop primary key. Table xxxx does not have a primary key ADB8020E An attempt was made to add a primary key to the table xxxx, but this table already has a primary key. ADB8057I Object details at the time of error: Operation : 50 Row type : TB Object qualifier: qqq Object name : xxxx Procedure : merge_tables
Local fix
n/a
Problem summary
**************************************************************** * USERS AFFECTED: Users of the DB2 Administration Tool * * for z/OS or DB2 Object Comparison * * Tool for z/OS who analyze a change. * **************************************************************** * PROBLEM DESCRIPTION: Merge module fails while analyzing * * a change which has ALTER TABLE * * ADD/DROP PRIMARY KEY statement * * with history table relationship. * **************************************************************** * RECOMMENDATION: * **************************************************************** When Merge module analyzes a change which has ALTER TABLE ADD/DROP PRIMARY KEY statement for a history table; the operation is not properly handled. The erroneous operation leads to an ADB8020E error. Cannot drop primary key. Table table_name does not have a primary key ADB8020E An attempt was made to add a primary key to the table table_name, but this table already has a primary key. ADB8057I Object details at the time of error: Operation : 50 Row type : TB Object qualifier: table_qualifier Object name : table_name Procedure : merge_tables
Problem conclusion
Problem has been resolved.
Temporary fix
Comments
APAR Information
APAR number
PH00004
Reported component name
DB2 ADMIN TOOL
Reported component ID
568851500
Reported release
C10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-07-03
Closed date
2018-09-05
Last modified date
2018-10-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI58306 UI58307
Modules/Macros
ADBCCMM
Fix information
Fixed component name
DB2 ADMIN TOOL
Fixed component ID
568851500
Applicable component levels
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":"BU011","label":"Systems - zSystems software"},"Product":{"code":"SG19M","label":"DB2 Tools for z\/OS"},"Platform":[{"code":"PF054","label":"z Systems"}],"Version":"12.1.0"}]
Document Information
Modified date:
06 July 2023