IBM Support

PM66849: APPLY JOB ALTER STATEMENT FAILS SQLCODEN20385 DUE TO EARLIER ALT ER STATEMENT SQLCODE610.

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 Comparison Tool for z/OS' APPLY job fails with a
    return code 8 / RC8 as an ALTER statement fails with a SQLCODE
    -20385 / SQLCODEN20385 due to an earlier ALTER statement causing
    a SQLCODE 610 / SQLCODE610.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Object Comparison Tool for  *
    *                 z/OS who compare table spaces and indexes    *
    *                 between source and target on DB2 10 New      *
    *                 Function Mode (NFM) and there are attribute  *
    *                 changes that result in pending definition    *
    *                 changes during the APPLY.                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: The DB2 Object Comparison Tool for      *
    *                      z/OS does not generate ALTER            *
    *                      TABLESPACE statements in the correct    *
    *                      sequence which causes the APPLY job     *
    *                      or Work Statement List (WSL) to fail    *
    *                      with a return code 8 / RC8 as an        *
    *                      ALTER TABLESPACE statement fails        *
    *                      with a SQLCODE=-20385 / SQLCODEN20385   *
    *                      due to an earlier ALTER TABLESPACE      *
    *                      statement causing a pending change      *
    *                      and SQLCODE=610 / SQLCODE610.           *
    *                                                              *
    *                      Example:                                *
    *                      DB2 Object Comparison Tool              *
    *                      generates the following ALTER           *
    *                      TABLESPACE statements                   *
    *                      in the APPLY job or WSL:                *
    *                                                              *
    *                      ALTER TABLESPACE                        *
    *                      >dbname<.>tsname<                       *
    *                      MEMBER CLUSTER;                         *
    *                      ALTER TABLESPACE                        *
    *                      >dbname<.>tsname<                       *
    *                      FREEPAGE n;                             *
    *                                                              *
    *                      ALTER TABLESPACE MEMBER CLUSTER         *
    *                      results in a pending definition         *
    *                      change on the table space               *
    *                      and SQLCODE=610 / SQLCODE610:           *
    *                                                              *
    *                      DSNT404I SQLCODE = 610,                 *
    *                      WARNING:  A CREATE/ALTER                *
    *                      ON OBJECT >dbname<.>tsname<             *
    *                      HAS PLACED OBJECT IN                    *
    *                      ADVISORY REORG PENDING                  *
    *                                                              *
    *                      Subsequently, the ALTER                 *
    *                      TABLESPACE FREEPAGE statement           *
    *                      will fail with a                        *
    *                      SQLCODE=-20385 / SQLCODEN20385:         *
    *                                                              *
    *                      DSNT408I SQLCODE = -20385,              *
    *                      ERROR:  THE STATEMENT CANNOT            *
    *                      BE PROCESSED BECAUSE THERE ARE          *
    *                      PENDING DEFINITION CHANGES FOR          *
    *                      OBJECT >dbname<.>tsname< OF TYPE        *
    *                      TABLESPACE (REASON 15)                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The DB2 Object Comparison Tool for z/OS does not generate
    ALTER TABLESPACE statements in the correct sequence which
    causes APPLY job or WSL fails with a return code 8 / RC8 as an
    ALTER TABLESPACE statement fails with a SQLCODE=-20385/
    SQLCODEN20385 due to an earlier ALTER TABLESPACE statement
    causing a pending change and SQLCODE=610 / SQLCODE610.
    
    Example:
    DB2 Object Comparison Tool generates the following ALTER
    TABLESPACE statements in the APPLY job or WSL:
    
    ALTER TABLESPACE  >dbname<.>tsname<
    MEMBER CLUSTER;
    ALTER TABLESPACE >dbname<.>tsname<
    FREEPAGE n;
    
    ALTER TABLESPACE MEMBER CLUSTER results in a pending
    definition change on the table space and
    SQLCODE=610 / SQLCODE610:
    
    DSNT404I SQLCODE = 610, WARNING:  A
    CREATE/ALTER ON OBJECT >dbname<.>tsname<
    HAS PLACED OBJECT IN ADVISORY REORG PENDING
    
    Subsequent ALTER TABLESPACE FREEPAGE statements will fail with
    a SQLCODE=-20385 / SQLCODEN20385:
    
    DSNT408I SQLCODE = -20385, ERROR:  THE STATEMENT CANNOT BE
    PROCESSED BECAUSE THERE ARE PENDING DEFINITION CHANGES FOR
    OBJECT >dbname<.>tsname< OF TYPE TABLESPACE (REASON 15)
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM66849

  • Reported component name

    DB2 OBJECT COMP

  • Reported component ID

    5697G6400

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-14

  • Closed date

    2012-10-24

  • Last modified date

    2012-11-02

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

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

    UK82941

Modules/Macros

  •    ADB2CMF  ADB2CMP  ADB2CMR  ADB2CMS
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK82941

       UP12/10/30 P F210

  • RA20 PSY UK82942

       UP12/10/30 P F210

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":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
02 November 2012