IBM Support

IC84547: 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 and having two indexes on    *
    * the same column                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to the latest DB2 level                              *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IC84547

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-14

  • Closed date

    2012-11-06

  • Last modified date

    2012-11-06

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

    IC77972

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

Fix information

Applicable component levels

  • RA10 PSN

       UP

  • RA10 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
06 November 2012