DB2 - Problem description
Problem IT03627 | Status: Closed |
RUNSTATS ON TABLE ... TABLESAMPLE(x) on a range partitioned table may result in a 'BadPage' error | |
product: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
Problem description: | |
Runstats command with the 'tablesample' clause may fail with error SQL2310N on a range partitioned table. The problem occurs if the partitions of the table are in different tablespaces; specifically, if at least one partition is in a reclaimable storage tablespace and at least one is in a non-reclaimable storage tablespace. The runstats command will return the following error: SQL2310N The utility could not generate statistics. Error "-1655" was returned. You may observe an error similar to the following in the db2diag.log: 014-07-12-13.00.14.536372-240 I14654250E5351 LEVEL: Severe PID : 30761 TID : 47011709577536 PROC : db2sysc 0 INSTANCE: instance NODE : 000 DB : DB1 APPHDL : 0-5034 APPID: 11.111.111.111.11111.140712145209 AUTHID : AUTHID HOSTNAME: hostname EDUID : 148 EDUNAME: db2agent (db1) 0 FUNCTION: DB2 UDB, buffer pool services, sqlb_verify_page, probe:3 MESSAGE : ZRC=0x86020001=-2046689279=SQLB_BADP "page is bad" DIA8400C A bad page was encountered. DATA #1 : String, 64 bytes Error encountered trying to read a page - information follows : DATA #2 : String, 23 bytes Page verification error DATA #3 : Page ID, PD_TYPE_SQLB_PAGE_ID, 4 bytes 17 DATA #4 : Object descriptor, PD_TYPE_SQLB_OBJECT_DESC, 96 bytes Obj: {pool:10;obj:206;type:0} Parent={10;206} | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * DB2 LUW * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Local Fix: Avoid using the 'tablesample' clause in the * * runstats command. * **************************************************************** | |
Local Fix: | |
Avoid using the 'tablesample' clause in the runstats command. | |
Solution | |
Upgrade to v10.5 FP7 | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 06.08.2014 13.03.2015 29.04.2016 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
10.5.0.5 | |
10.5.0.7 |