IBM Support

PK31804: GOC JOB FAILS WITH SQLCODE625 AS ALTER ADD PRIMARY KEY ON SECOND INDEX OCCURS BEFORE UNIQUE INDEX IS ALTERED.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The DB2 Object Comparision Tool created DDL which attempted to
    ALTER ADD PRIMARY KEY to a table before the UNIQUE index had a
    ALTER INDEX ADD COLUMN issued against it.
    Additional search args:
    SQLCODEN625 SQLCODE625N
    

Local fix

  • Reorder the DDL statements so that the ALTER's appear in the
    correct order.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of DB2 Object Comparison Tool, who     *
    *                 have  ALTER  statements in the generated     *
    *                 JCL job, may be affected.                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: Object Compare  job failed with SQLCODE *
    *                      -625 as ALTER ADD PRIMARY KEY on SECOND *
    *                      INDEX occurred  before UNIQUE INDEX was *
    *                      altered.                                *
    *                      .*                                      *
    *                      The  sequence  of  the ALTER statements *
    *                      was produced incorrectly: attempting to *
    *                      ALTER ADD PRIMARY KEY to a table before *
    *                      having  "ALTER INDEX ADD COLUMN to  the *
    *                      UNIQUE INDEX on the table".             *
    *                      .*                                      *
    *                      The  created DDL attempted to ALTER ADD *
    *                      PRIMARY  KEY  to  a  table  before  the *
    *                      UNIQUE  index  had  a  ALTER  INDEX ADD *
    *                      COLUMN issued against it.               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    See Problem Description.
    

Problem conclusion

  • Apply the fix.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK31804

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2006-09-21

  • Closed date

    2006-11-26

  • Last modified date

    2006-12-01

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UK20017

Modules/Macros

  •    GOC2CMF
    

Fix information

  • Fixed component name

    DB2 OBJECT COMP

  • Fixed component ID

    5697G6400

Applicable component levels

  • R710 PSY UK20017

       UP06/11/30 P F611

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":"710","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 February 2021