IBM Support

PK73452: ABEND04E RC00E70005 AT DSNXIAB2: P068 WHEN ALTER TABLE WITH DROPFOREIGN KEY

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Customer got ABEND04E RC00E70005 at DSNXIAB2: P068 when trying
    to ALTER TABLE to DROP FOREIGN KEY:
    
    ==SQL Statement
       -------------
     ALTER TABLE "UT001"."SXX_STAT_OTHER" DROP FOREIGN KEY "FKSXX"
    
    DB2 abend because it was looking for the index UT001.XSTA04
    which is exsiting in SYSIBM.SYSINDEXES that was associated with
    UT001.SXX_STAT_OTHER but DM return an error code for could not
    find it.
    
    From REPAIR DBD TEST report, there is an inconsistance of DBD in
    directory and catalog for the particular index.
    
    But REPAIR DBD with REBUILT option couldn't solve issue.
    
    Even both DSN1CHKR & REPAIR REBUILD jobs ran OK, REPAIR TEST for
    the database after the REBUILD shows the inconsistance is
    gone,  customer still got the same error when they alter the
    table to drop foreign key.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All DB2 users of constraints.                *
    ****************************************************************
    * PROBLEM DESCRIPTION: ABEND04E RC00E70005 at DSNXIAB2:P068 on *
    *                      ALTER TABLE DROP FOREIGN KEY.           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    DB2 is not correctly handling some error conditions when
    processing constraints, which may result in unexpected symptoms,
    such as ABEND04E RC00E70005 at DSNXIAB2:P068 on ALTER TABLE DROP
    FOREIGN KEY.
    
    Affected SQL statements:
    CREATE TABLE PRIMARY KEY
    CREATE TABLE UNIQUE
    CREATE TABLE FOREIGN KEY
    CREATE TABLE CHECK
    ALTER TABLE ADD PRIMARY KEY
    ALTER TABLE ADD UNIQUE
    ALTER TABLE ADD FOREIGN KEY
    ALTER TABLE ADD CHECK
    ALTER TABLE DROP PRIMARY KEY
    ALTER TABLE DROP UNIQUE
    ALTER TABLE DROP FOREIGN KEY
    ALTER TABLE DROP CHECK
    ALTER TABLE DROP CONSTRAINT
    

Problem conclusion

  • DB2 code has been fixed to handle these error conditions
    properly.
    
    ADDITIONAL KEYWORDS:
    SQLALTER
    SQLCREATE
    

Temporary fix

  • *********
    * HIPER *
    *********
    

Comments

APAR Information

  • APAR number

    PK73452

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    810

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-10-08

  • Closed date

    2009-06-28

  • Last modified date

    2009-08-03

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

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

    UK47862 UK47863

Modules/Macros

  • DSNXISB3
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • R810 PSY UK47862

       UP09/07/14 P F907

  • R910 PSY UK47863

       UP09/07/14 P F907

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":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
03 August 2009