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

INSTANCE TRAP WHEN CREATING A VIEW USING AN EXISTING TABLE ALIAS AND
DB2_WORKLOAD=SAP

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
You might encounter an instance trap while attempting a CREATE 
VIEW using a view name that matches an existing table alias in 
SYSTABLES. 
 
Following steps reproduce the issue in DB2 v9.7: 
 
0. DB2_WORKLOAD=SAP 
1. db2 "create table t1 (col1 int, col2 int)" 
2. db2 "create alias v1 for table t1" 
3. db2 "drop view v1" 
4. db2 "create view v1 as select * from t1"  -> instance trap 
 
At step 3 DB2 returns error SQL0159N - The statement references 
"DB2V978.T1" which identifies a(n) "TABLE" rather than a(n) 
"VIEW". 
If an application or user does not handle this and proceeds to 
step 4 the instance will trap during execution of the CREATE 
VIEW statement. 
 
This APAR fix ensures DB2 returns error SQL0601N - The name of 
the object to be created is identical to the existing name 
"DB2V978.V1" of type "ALIAS" - at step 4 instead of trapping the 
instance.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 version 9.7 FixPack 10.                       * 
****************************************************************
Local Fix:
Solution
First fixed in DB2 version 9.7 FixPack 10.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
04.03.2014
18.11.2014
18.11.2014
Problem solved at the following versions (IBM BugInfos)
9.7.FP10
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.10 FixList