IBM Support

PI07837: TCZ TEMPLATE ADBMCMB 'UPGRADE CM DATABASE FROM V10.2 TO V11.1' FAILS WITH SQLCODEN612 ERROR: GRANTEE IS A DUPLICATE NAME

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The DB2 Administration Tool for z/OS' Tools Customizer based
    install template ADBMCMB 'Upgrade CM database from v10.2 to
    v11.1' fails with a SQLCODEN612 / SQLCODE -612:
     ALTER TABLE ADBCVERSCOPES
       ADD GRANTEE VARCHAR(128) NOT NULL WITH DEFAULT;
    SQLERROR ON   ALTER     COMMAND, EXECUTE   FUNCTION
     RESULT OF SQL STATEMENT:
     DSNT408I SQLCODE = -612, ERROR:  GRANTEE IS A DUPLICATE NAME
    The issue is the columns have different attributes
    NOT NULL WITH DEFAULT as opposed to WITH DEFAULT NULL.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Administration Tool and     *
    *                 IBM Tools Customizer for z/OS.               *
    ****************************************************************
    * PROBLEM DESCRIPTION: The UPGRADE option for the Change       *
    *                      Management Database task has            *
    *                      been enhanced to generate a job         *
    *                      template ADBMCMA that will upgrade      *
    *                      back-level DB2 Administration Tool      *
    *                      objects to the current maintenance      *
    *                      level.                                  *
    *                                                              *
    *                      The UPGRADE job template ADBMCMA also   *
    *                      has provisions to tolerate possible     *
    *                      SQLCODE = -601 / SQLCODEN601,           *
    *                      SQLCODE = -612 / SQLCODEN612, or        *
    *                      SQLCODE = 562 / SQLCODE562 errors       *
    *                      and not fail with RC=8 / RC8 when       *
    *                      these SQLCODEs are encountered.         *
    *                      Instead, a brief/simple informational   *
    *                      message ADB51791I / msgadb51791i        *
    *                      will be displayed in the job output.    *
    *                                                              *
    *                      For example, if SQLCODE = -612 is       *
    *                      encountered, the following message      *
    *                      will appear in the job output:          *
    *                                                              *
    *                      ADB5179I An expected sqlcode -612       *
    *                      was encountered and can be ignored.     *
    *                      No action needed.                       *
    *                                                              *
    *                      Due to this enhancement, the following  *
    *                      DB2 Administration Tool for z/OS        *
    *                      Version 11, Release 1 SADBSAMP jobs     *
    *                      are no longer required and have been    *
    *                      disabled:                               *
    *                                                              *
    *                      SADBSAMP(ADBCHG01)                      *
    *                      SADBSAMP(ADBCHG02)                      *
    *                      SADBSAMP(ADBCHG03)                      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The UPGRADE option for the Change Management Database task has
    been enhanced to generate a job template ADBMCMA that will
    upgrade back-level DB2 Administration Tool objects to the
    current maintenance level.
    
    The UPGRADE job template ADBMCMA also has provisions to
    tolerate possible SQLCODE = -601 / SQLCODEN601, SQLCODE = -612
    / SQLCODEN612, or SQLCODE = 562 / SQLCODE562 errors and not fail
    with RC=8 / RC8 when these SQLCODEs are encountered.  Instead, a
    brief/simple informational message ADB51791I / msgadb51791i will
    be displayed in the job output.
    
    For example, if SQLCODE = -612 is encountered, the following
    message will appear in the job output:
    
    ADB5179I An expected sqlcode -612 was encountered and
    can be ignored.  No action needed.
    
    Due to this enhancement, the following DB2 Administration Tool
    for z/OS Version 11, Release 1 SADBSAMP jobs are no longer
    required and have been disabled:
    
    SADBSAMP(ADBCHG01)
    SADBSAMP(ADBCHG02)
    SADBSAMP(ADBCHG03)
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI07837

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-12-10

  • Closed date

    2014-05-14

  • Last modified date

    2014-06-03

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

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

Modules/Macros

  • ADBBND01
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA20 PSY UI17985

       UP14/05/17 P F405

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

Document Information

Modified date:
03 June 2014