IBM Support

IC79701: CAN DROP A RANGE PARTITIONED TABLE WITH AN ACTIVE QUIESCE TABLESPACE LOCK, SHOULD RETURN SQL0290N INSTEAD

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • DB2 will allow to DROP a range partitioned table, which has an
    active QUIESCE TABLESPACE lock. This leaves the tablespaces in
    quiesce state, without the ability to do a QUIESCE RESET. While
    the QUIESCE is active, DROP should return SQL0290N, which is the
    case for a table without range partitioning.
    
    Example for a range partitioned table:
    CREATE TABLE "DB2V974 "."T1"  (
                      "C1" INTEGER NOT NULL ,
                      "C2" CHAR(10) )
                     PARTITION BY RANGE("C1") (
                     PART "PART0" STARTING(1) ENDING(10) IN "TS1",
                     PART "PART1" STARTING(11) ENDING(20) IN "TS2",
                     PART "PART2" STARTING(21) ENDING(30) IN "TS3"
                     );
    
    After QUIESCE TABLESPACES FOR TABLE T1 EXCLUSIVE, LIST
    TABLESPACES SHOW DETAIL will show the following information for
    tablespaces TS1, TS2 and TS3:
    ...
     Tablespace ID                        = 3
     Name                                 = TS1
    ...
     Number of quiescers                  = 1
       Quiescer 1:
         Tablespace ID                    = 65530
         Object ID                        = 32768
    
    Please note, that the GLOBAL Tablespace ID and Object ID are
    shown in the tablespace quiesce information, which differes from
    the real Tablespace ID, as shown above. All tablespaces used by
    the range partitioned table will show the same quiesce
    information.
    

Local fix

  • Do a QUIESCE TABLESPACES RESET before DROP TABLE.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 6.                       *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.7 Fix Pack 6.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC79701

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-09

  • Closed date

    2012-12-14

  • Last modified date

    2012-12-14

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

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

    IC84458

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC79701

Modified date: 14 December 2012