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

COMMENTS ON COLUMNS FROM VIEWS ARE DELETED AFTER REVALIDATION OFTHE VIEW

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
If you have a view with comments on its columns and this view 
becomes invalid, the revalidation of the view will delete 
these comments. The comments on the view itself are not 
impacted. 
 
 
Example : 
 
create table t1 (c1 integer, c2 varchar(10)) 
DB20000I  The SQL command completed successfully. 
 
create or replace view v1(c1,c2) as select c1, c2 from t1 with 
no row movement 
DB20000I  The SQL command completed successfully. 
 
comment on column  v1.c1 is 'Remark:Column1' 
DB20000I  The SQL command completed successfully. 
 
comment on column  v1.c2 is  'Remark: Column2' 
DB20000I  The SQL command completed successfully. 
 
 
select remarks from syscat.columns where tabname='V1' 
 
REMARKS 
---------------------------------------------------------------- 
---------------- 
---------------------------------------------------------------- 
---------------- 
---------------------------------------------------------------- 
---------------- 
-------------- 
Remark:Column1 
Remark: Column2 
 
  2 record(s) selected. 
 
 
drop table t1 
DB20000I  The SQL command completed successfully. 
 
create table t1 (c1 integer, c2 varchar(10)) 
DB20000I  The SQL command completed successfully. 
 
select remarks from syscat.columns where tabname='V1' 
 
REMARKS 
---------------------------------------------------------------- 
---------------- 
---------------------------------------------------------------- 
---------------- 
---------------------------------------------------------------- 
---------------- 
-------------- 
Remark:Column1 
Remark: Column2 
 
  2 record(s) selected. 
 
 
call sysproc.admin_revalidate_db_objects ('VIEW', NULL,'V1') 
 
  Return Status = 0 
 
select remarks from syscat.columns where tabname='V1' 
 
REMARKS 
---------------------------------------------------------------- 
---------------- 
---------------------------------------------------------------- 
---------------- 
---------------------------------------------------------------- 
---------------- 
-------------- 
- 
- 
  2 record(s) selected.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to Db2 10.5 Fix Pack 9 or higher                     * 
****************************************************************
Local Fix:
Extract the view column comments DDL using db2look so it can be 
executed after view revalidation
Solution
First fixed in Db2 10.5 Fix Pack 9
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
08.02.2017
29.09.2017
29.09.2017
Problem solved at the following versions (IBM BugInfos)
9.0.
Problem solved according to the fixlist(s) of the following version(s)