IBM Support

IC84329: ADMIN_MOVE_TABLE MAY RETURN SQL0803N OR SQL0603N DURING COPY PHASE (DUPLICATE KEYS)

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The ADMIN_MOVE_TABLE procedure may fail with a duplicate values
    error (SQL0803N or SQL0603N) during the copy phase.
    
    
    The procedure will not ignore duplicate errors if the copy index
    is unique, we are clustering over the index, and a table scan is
    chosen to access the source data.
    
    If a table scan is used to access the data from the source
    table, insert/update/delete activity could result in the key
    values being copied from a location early in the source table,
    then removed, and reinserted into a location further down in the
    source table.  When the table scan finds the same key value
    again, it could see the duplicate values and fail with the
    SQL0803N error.
    
    If the COPY_WITH_INDEXES option is used, the indexes are created
    at the start of the COPY phase.
    
    If the COPY_WITH_INDEXES option is not used, the index creation
    is deferred to the end of the COPY phase and the duplicates
    prevent the index creation from succeeding.
    
    
    The triggers placed upon the source table to track
    insert/update/delete operations while the copy is taking place
    will account for the updates and so the duplicate error can be
    ignored during the copy phase and the source and target
    synchronized during the replay phase.
    
    This will primarily impact the moving of large tables that have
    lots of insert/update/delete operations where the unique key may
    be deleted or updated and then reinserted back into the table.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of Admin_move_table                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 LUW V10.1 FP1                                 *
    ****************************************************************
    

Problem conclusion

  • Problem fixed in DB2 LUW V10.1 FP1
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC84329

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-13

  • Closed date

    2012-11-21

  • Last modified date

    2012-11-21

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

    IC78443

  • 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

  • RA10 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 10.1

Reference #: IC84329

Modified date: 21 November 2012