IBM Support

IT19312: REMARKS ON VIEW COLUMNS NOT RETAINED AFTER CHANGES TO BASE TABLE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Remarks on view columns not retained after changes to base
    table.
    
    When we alter underline table, the Remarks on the Columns of our
    views were lost
    e.g.
    $ db2 "create table t1 (col1 varchar(10))"
    DB20000I The SQL command completed successfully.
    
    $ db2 "create view v1 as select col1 from t1"
    DB20000I The SQL command completed successfully.
    
    $ db2 "comment on column jbms.v1.col1 is 'Hello world'"
    DB20000I The SQL command completed successfully.
    
    $ db2 "select char(remarks,30) from syscat.columns where tabname
    = 'V1'"
    1
    ------------------------------
    Hello world
    1 record(s) selected.
    
    
    $ db2 "alter table t1
    alter column col1 set data type varchar(20)"
    DB20000I The SQL command completed successfully.
    $ db2 "select * from v1"
    COL1
    --------------------
    0 record(s) selected.
    
    
    $ db2 "select char(remarks,30)  from syscat.columns where
    tabname = 'V1'"
    1
    ------------------------------
    -
    1 record(s) selected.
    
    So Alter statement on Base table deleting the Remark on
    view.column after "select * from view" (refreshing view)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 11.1 Mod 2 Fix Pack 2 or higher               *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 11.1 Mod 2 Fix Pack 2
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT19312

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-02-17

  • Closed date

    2017-06-23

  • Last modified date

    2017-06-23

  • APAR is sysrouted FROM one or more of the following:

    IT15055

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
29 June 2020