IBM Support

IT17095: ACCIDENTAL REMOVAL OF DAT FILE FROM SMS TABLESPACE COULD RESULT IN DUPLICATE TABLE IDS IN CATALOGS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • The following steps could reproduce this problem:
    
    db2 "create tablespace sms1 managed by system using
    ('/data2/bennyv/path1' ) "
    for i in 0 1 2 3 4 5 6 7 8 9
    do
    db2 "create table tab$i ( col1 int ) in sms1 "
    done
    db2stop force
    $ ls /data2/bennyv/path1
    SQL00002.DAT  SQL00003.DAT  SQL00004.DAT  SQL00005.DAT
    SQL00006.DAT
    SQL00007.DAT  SQL00008.DAT  SQL00009.DAT  SQL00010.DAT
    SQL00011.DAT
    SQLTAG.NAM
    $ rm /data2/bennyv/path1/SQL00004.DAT
    db2start
    db2 "create table tab11 ( col1 char, col2 int) in sms1 "
    
    $ db2 -tvf dup2.sql
    select ctime, substr(name,1,30) name, substr(creator,1,30)
    schema,fid,tid, colcount from sysibm.systables s1 where type =
    'T' and (select count(*) from sysibm.systables s2 where s1.fid =
    s2.fid and s1.tid = s2.tid ) > 1 order by fid,tid, ctime desc
    
    CTIME                      NAME                           SCHEMA
    FID    TID    COLCOUNT
    -------------------------- --------------------
    ---------------------- ------ ------ --------
    2015-03-05-06.34.09.907963 TAB11                          BENNYV
    4      5        2
    2015-03-05-06.32.49.984790 TAB2                           BENNYV
    4      5        1
    

Local fix

  • Don't remove DAT file manually from SMS tablespace or move data
    to DMS tablespace.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * See SYSROUTE APARs to see where this APAR is addressed       *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT17095

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-09-18

  • Closed date

    2017-05-08

  • Last modified date

    2017-05-08

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

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

    IT17141 IT17147 IT17148

Fix information

Applicable component levels

  • R970 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
08 May 2017