IBM Support

PK25809: CHECK CONSTRAINTS DELETED AND REDEFINED EVEN WHEN IDENTICAL AND SYNTAX SQL CODE IS INCORRECT ALSO

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Customer uses Object Compare tool and has Check constraints
    which are identical on the source and target but the tool
    deletes and redefined them anyway and creates invalid or bad
    syntax.  Incorrout SQL code example:
    ALTER TABLE MLGAR.GARANTIE_LOCATIVE
          CHECK ("CODE_VALIDITE" IN ( 'I' , 'V' , ' ' ) ) ;
      ADD CONSTRAINT CODE_DECISION
          CHECK ("CODE_DECISION" IN ( ' ' , 'A' , 'R' ) ) ;
    ALTER TABLE MLGAR.GARANTIE_LOCATIVE
      ADD CONSTRAINT INDIC_RESIDENT
      ADD CONSTRAINT CODE_DECISION_SYS
          CHECK ("CODE_DECISION_SYS" IN ( 'R' , 'A' , ' ' ) ) ;
    

Local fix

  • please apply ptf when available
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of DB2 Object Comparison Tool, who     *
    *                 use Check Constraints, may be affected.      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Check constraints, which are identical  *
    *                      on the source and target,  got deleted  *
    *                      and redefined and  invalid/bad  syntax  *
    *                      got created.                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Check Constraint of identical data has been deleted and
    redefined, leading to invalid syntax.
    

Problem conclusion

  • The column name in the  CHECK CONSTRAINT was quoted on both
    source  and  target (both DDL files). Unquoting only column
    name from source before compare led to a difference between
    both CHECK CONSTRAINTs.
    .*
    The reported problem has been corrected. Apply the fix.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK25809

  • 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-05-31

  • Closed date

    2006-07-18

  • Last modified date

    2006-08-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

  • R310 PSY UK16375

       UP06/07/22 P F607

  • R710 PSY UK16376

       UP06/07/22 P F607

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