home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IT06542 Status: Closed

EMPTY RESULT OR A HANG MAY HAPPEN for CDE TABLE QUERY IF TABLESPACE HAS
ENOUGH TABLES TO GENERATE NEGATIVE TABLE_ID

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
Empty result sets may return for a query even when the qualified 
data is not empty, or a hang may occur, if both the conditions 
below are met: 
 
1. The query is against a column-organized table 
2. There are enough tables in the table's tablespace so that the 
table's table_id is negative in SYSCAT.TABLES. 
 
The problem will typically only manifest when there are > 12000 
column-organized tables in a single tablespace. If there are a 
mix of row-organized and column-organized tables in the same 
tablespace, then the overall number of tables required to 
trigger the problem will be higher (since the row-organized 
tables do not involve the creation of the 'extra' synopsis 
table, while for each column-organized table, there will 
typically be a synopsis table created). Buf if there are 
partition tables, the overall number of tables required to 
trigger the problem will be lower because DB2 will create a 
'extra' table for each partition. 
 
This problem doesn't happen on AIX due to its characteristic. 
 
An example: 
db2 "create table test(a int,b varchar(10)) organize by column" 
DB20000I  The SQL command completed successfully. 
 
db2 "insert into test values(1,'aa')" 
DB20000I  The SQL command completed successfully. 
 
db2 "select * from test" 
 
A           B 
----------- ---------- 
 
  0 record(s) selected. 
 
 
db2 "select  substr(TABNAME,1,20) TABNAME, TABLEID,TBSPACEID 
from SYSCAT.TABLES where TABNAME='TEST' " 
 
TABNAME              TABLEID TBSPACEID 
-------------------- ------- --------- 
TEST                  -27349         3 
 
  1 record(s) selected. 
 
Example of the hang stack must have sqloWaitEDUWaitPost and 
sqlrr_smp_router: 
 
 semtimedop 
 sqloWaitEDUWaitPost 
 sqlriCdeOpen 
 sqlriCdeQuery 
 sqlriSectInvoke 
 sqlrr_smp_router 
 sqlrr_subagent_router
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* N/A                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2  V10.5 FIXPACK 7.                             * 
****************************************************************
Local Fix:
Solution
The problem is firstly fixed on V10.5 FIXPACK 7.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
16.01.2015
20.01.2016
20.01.2016
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.5.0.7 FixList