IBM Support

IT33954: SQL0206N OR SQL0901N ON STANDBY AFTER ALTER TABLE ADD COLUMN ON PRIMARY WHEN HADR IS STOPPED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • This problem only happens when
    DB2_HADR_ROS_AVOID_REPLAY_ONLY_WINDOW=ON.
    
    Alter table adding a column after stopping HADR on primary,
    select the table including the newly added column may return
    SQL0206N or SQL0901N error  on standby.
    
    To reproduce:
    
    == primary ==
    db2 connect to sample
    db2 "Drop table test2"
    db2 "create table test2 like employee"
    db2 "insert into test2 select * from employee"
    
    == standby ==
    db2 connect to sample
    db2 "select * from test2"
    
    == primary ==
    db2 stop hadr on db sample
    db2stop force
    db2start
    db2 connect to sample
    db2 "alter table test2 add column c1 CHAR(8) not null with
    default ''"
    
    == primary ==
    db2 terminate
    db2 start hadr on db sample as primary
    
    == standby ==
    db2 connect to sample
    db2 "select c1 from test2"   # -206 error
    db2 "select * from test2"    # -901 error
    

Local fix

  • Don't stop HADR when altering the table, or deactivate/activate
    the standby database to prevent the SQL0206N OR SQL0901N error.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Update to DB2 11.1 Mod 4 Fix pack 7                          *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in DB2 11.1 Mod 4 Fix pack 7
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT33954

  • 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

    2020-08-19

  • Closed date

    2021-12-02

  • Last modified date

    2021-12-02

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

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

    IT33960

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"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:
04 May 2022