IC90069: THE PROCEDURE SYSPROC.ADMIN_MOVE_TABLE STRIPS SPACES FROM OR ADDS SPACES TO THE END OF A TABLE NAME.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When you call the procedure SYSPROC.ADMIN_MOVE_TABLE with the
    MOVE option, if the second argument matches the name of some
    table except that the argument has extra spaces at the end or
    the name of the table has extra spaces at the end, the table
    gets renamed.
    
    For example:
    
    1) Stripping spaces from the end of the table name.
    
    --Create a table called "TAB1 "
    --(with a space at the end of the name).
    db2 'create table schema1."TAB1 "(col1 int)'
    
    --Call SYSPROC.ADMIN_MOVE_TABLE passing 'TAB1'
    --as the second argument (without the space at the end).
    db2 "call sysproc.admin_move_table ('SCHEMA1', 'TAB1', '' ,
     '' ,'', '',  '' , '', '', '', 'move' )"
    
    --Now in the system catalog the space has been stripped off
    --the end of the name.
    db2 "select substr(tabname, 1, 20), length(tabname),
     substr(hex(tabname), 1, 20) from syscat.tables
     where tabname like 'TAB1%'"
    
     1                    2           3
     -------------------- ----------- --------------------
     TAB1                           4 54414231
    
       1 record(s) selected.
    
    
    2) Adding spaces to the end of the table name.
    
    --Create a table called TAB1 without any spaces at the end
    --of the name.
    db2 "create table schema1.tab1(col1 int)"
    
    --Call SYSPROC.ADMIN_MOVE_TABLE passing 'TAB1 '
    --as the second argument (with an extra space at the end).
    db2 "call sysproc.admin_move_table ('SCHEMA1', 'TAB1 ',
     '' ,'' ,'', '',  '' , '', '', '', 'move' )"
    
    --Now in the system catalog the extra space has been added
    --to the end of the table name.
    db2 "select substr(tabname, 1, 20), length(tabname),
     substr(hex(tabname), 1, 20) from syscat.tables
     where tabname like 'TAB1%'"
    
    
    1                    2           3
    -------------------- ----------- --------------------
    TAB1                           5 5441423120
    
      1 record(s) selected.
    

Local fix

  • You can change the table back to its old name by calling
    SYSPROC.ADMIN_MOVE_TABLE passing the old table name as the
    second argument.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of DB2 for Linux, UNIX and Windows                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * .                                                            *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in Version 10.1 Fix Pack 3
    At a minimum, this fix should be applied on the server.
    

Temporary fix

  • You can change the table back to its old name by calling
    SYSPROC.ADMIN_MOVE_TABLE passing the old table name as the
    second argument.
    

Comments

APAR Information

  • APAR number

    IC90069

  • 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

    2013-02-06

  • Closed date

    2013-10-08

  • Last modified date

    2013-10-08

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

    IC90066

  • 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

  • R970 PSN

       UP

  • RA10 PSN

       UP

  • RA50 PSN

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

10.1

Reference #:

IC90069

Modified date:

2013-10-08

Translate my page

Machine Translation

Content navigation