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 IT21792 Status: Closed

DB2 EVENT MONITOR FOR CHANGE HISTORY IS NOT LOGGING THE ATTACH PARTITION
COMMAND

product:
DB2 FOR LUW / DB2FORLUW / B10 - DB2
Problem description:
Our event monitor for change history is not logging the alter
table attach partition command while it is logging the detach.
Here is a simple scenario that easily demonstrates the issue. It
looks like we forgot to include logging the attach:

db2 "create event monitor DDLHIST_EVM for change history where
event in (DDLALL) write to table DDLSTMTEXEC (table
DDLSTMT_CHGHIST), TXNCOMPLETION (table DDLTXN_CHGHIST)
autostart"

db2 set event monitor DDLHIST_EVM state 1

db2 "CREATE TABLE mysales (invoice_date date, inv_month int NOT
NULL GENERATED ALWAYS AS (month(invoice_date)), inv_year INT NOT
NULL GENERATED ALWAYS AS ( year(invoice_date)), item_id int NOT
NULL, cust_id int NOT NULL) PARTITION BY RANGE (inv_year,
inv_month) (PART Q1_2002 STARTING (2002,1) ENDING (2002, 3)
INCLUSIVE, PART Q2_2002 ENDING (2002, 6) INCLUSIVE, PART Q3_2002
ENDING (2002, 9) INCLUSIVE, PART Q4_2002 ENDING (2002,12)
INCLUSIVE)"

db2 "CREATE TABLE Q1_2003 (invoice_date date, inv_month int NOT
NULL GENERATED ALWAYS AS (month(invoice_date)), inv_year INT NOT
NULL GENERATED ALWAYS AS ( year(invoice_date)), item_id int NOT
NULL, cust_id int NOT NULL)"

db2 "alter table mysales attach partition Q1_2003 ENDING (2003,
3) INCLUSIVE from table Q1_2003"
db2 "alter table mysales detach partition Q1_2002 into Q1_2002"
db2 set integrity for mysales allow no access immediate checked

db2 "select event_timestamp, substr(STMT_TEXT,1,60) as STMT from
DDLSTMT_CHGHIST"

EVENT_TIMESTAMP            STMT
--------------------------
-----------------------------------------------------------
2016-09-06-09.05.18.858916 CREATE TABLE mysales (invoice_date
date, inv_month int NOT
2016-09-06-09.10.00.503836 alter table mysales detach partition
Q1_2002 into Q1_2002
2016-09-06-09.10.36.395227 set integrity for mysales allow no
access immediate checked

This issue affects DB2 LUW v10.1 and v10.5.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to v11.1.1.2 or later                                *
****************************************************************
Local Fix:
Solution
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : IT17937 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
04.08.2017
16.10.2017
16.10.2017
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)