IBM Support

IT30905: DB2MOVE FAILS DUE TO SQL0668N RC 1 FOR CREATE OF INDEXES ON MQTS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • db2move (copy of whole schema) fails with SQL0668N rc=1 error
    during DDL phase when trying to copy a schema which contains
    MQTs with indexes
    
    39 Schema        : <schema>   .<table name>
      Type          : INDEX
      Error Msg     : [IBM][CLI Driver][DB2/AIX64] SQL0668N
    Operation not allowed for reason code "1" on table
    "<table>.<table name>".  SQLSTATE=57016
      DDL           :
    CREATE INDEX "<schema>   "."<index name>" ON "<schema>
    "."<table name>"
    ("SOFTWARE_NAME" ASC,
    "SOFTWARE_VERSION" ASC)
    COMPRESS YES
    INCLUDE NULL KEYS ALLOW REVERSE SCANS
    

Local fix

  • Drop all indexes of MQTs before copying the schema using db2move
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.1.4.6 or higher                            *
    ****************************************************************
    

Problem conclusion

  • Upgrade to Db2 11.1.4.6 or higher
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT30905

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-11-11

  • Closed date

    2021-03-31

  • Last modified date

    2021-03-31

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

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 May 2022