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

ALTER TABLE STATEMENT WITH AN ATTACH PARTITION CLAUSE MAY RECEIVE
SQL0803N

product:
DB2 FOR LUW / DB2FORLUW / B10 - DB2
Problem description:
An ALTER TABLE STATEMENT WITH ATTACH PARTITION CLAUSE may
receive the following even though there are no unique constrains
or primary keys:
SQL0803N
One or more values in the INSERT statement, UPDATE statement, or
foreign key update caused by a DELETE statement are not valid
because
the primary key, unique constraint or unique index identified by
"" constrains table "" from having duplicate values for the
index key. SQLSTATE=23505


The following scenario will end up reproducing the conditions
under which the SQL0803N is received:
1. The 'build missing indexes clause' is used to attach a table
that does not have indexes into a range partitioned table that
already has indexes
2. Two or more tables are attached to the range partition table
that do not have indexes.
3. The same tables are then detached.
4. An attempt is made to attach those tables back.
5. SQL0803N is received when you try to attach the second table
onwards.


DIAG.LOG would show messages similar to the following:
2016-02-21-11.24.09.325466-300 I6128898E1041         LEVEL:
Severe
PID     : 19374                TID : 139985843906304 PROC :
db2sysc 0
INSTANCE: TESTINST             NODE : 000            DB   :
TESTDB
APPHDL  : 0-8362               APPID: 
AUTHID  : TEST                 HOSTNAME: TESTHOST

EDUID   : 577                  EDUNAME: db2agent (TESTDB) 0

FUNCTION: DB2 UDB, catalog services, sqlrlalt, probe:9122

MESSAGE : ZRC=0x80090005=-2146893819=SQLI_DUPKEY "Duplicate key

violation"

          DIA8005C Duplicate key encountered, file token ""
index token
""

          record id "".

DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes

sqlcaid : SQLCA     sqlcabc: 136   sqlcode: -803   sqlerrml: 0

sqlerrmc:

sqlerrp : sqldmisr

sqlerrd : (1) 0x80090005      (2) 0x00000005      (3) 0x00000000

           (4) 0x00000000      (5) 0x00000000      (6)
0x00000000
sqlwarn : (1)      (2)      (3)      (4)        (5)       (6)

           (7)      (8)      (9)      (10)        (11)

sqlstate:
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Db2 Mod 2 Fix Pack 2 or higher                    *
****************************************************************
Local Fix:
You can drop and recreate the indexes on the detached partition
and then proceed with attaching the partition
Solution
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : IT16094 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
03.08.2017
24.10.2017
24.10.2017
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)