IBM Support

IC77972: ADMIN_MOVE_TABLE FAILS WITH ERROR SQL2103N WHEN THERE ARE TWO INDEXES ON THE SAME COLUMN.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as fixed if next.

Error description

  • ADMIN_MOVE_TABLE fails with following error, when there are two
    indexes on the same column:
    
    SQL2103N  The ADMIN_MOVE_TABLE procedure could not be completed
    because some aspect of either the source table or target table
    is not supported  by the ADMIN_MOVE_TABLE procedure.  Reason
    code: "17".  SQLSTATE=5UA0M
    
    The problem is re creatable as follows:
    
    
    CREATE TABLE "ihubv97  "."tab1"  ("NUM" VARCHAR(12) NOT NULL  )
    
    CREATE INDEX "ihubv97  "."abc" ON "ihubv97"."tab1" ("NUM" ASC);
    
    CREATE UNIQUE INDEX "ihubv97  "."xyz" ON "ihubv97 "."tab1"
    ("NUM" ASC);
    
    CALL SYSPROC.ADMIN_MOVE_TABLE('ihubv97  ', 'tab1', 'USERSPACE1',
    'USERSPACE1', 'USERSPACE1', '', '', '', '', '', 'MOVE')
    
    The above command fails with error: SQL2103N
    

Local fix

  • To create the "UNIQUE" index first and then the other index.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Customer using ADMIN_MOVE_TABLE  can be affected by this     *
    * APAR                                                         *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Please upgrade to the latest version of DB2 V97 or above.    *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IC77972

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-08-08

  • Closed date

    2012-09-04

  • Last modified date

    2012-09-04

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

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

    IC84547

Fix information

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC77972

Modified date: 04 September 2012