IBM Support

PI26033: ABEND04E RC00E2000C AT DSNHXLTR DSNSVSVB OFFSET0AB6 DUE TO A STORAGE LEAK IN AN ALTER TABLE ALTER COLUMN

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ABEND04E RC00E2000C AT DSNHXLTR DSNSVSVB OFFSET0AB6 DUE TO A
    STORAGE LEAK IN AN ALTER TABLE ALTER COLUMN
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All DB2 10 and 11 for z/OS users of an       *
    *                 ALTER TABLE ALTER COLUMN or ALTER VIEW       *
    *                 statement referencing a TABLE or VIEW        *
    *                 which has a TRIGGER defined on it.           *
    ****************************************************************
    * PROBLEM DESCRIPTION: An ABEND04E RC00E2000C at location      *
    *                      DSNHXLTR DSNSVSVB OFFSET0AB6 may occur  *
    *                      when a statement satisfies all of the   *
    *                      following list of conditions:           *
    *                                                              *
    *                      1. ALTER TABLE ALTER COLUMN or          *
    *                         ALTER VIEW statement that references *
    *                         a TABLE or VIEW.                     *
    *                      2. A TRIGGER is defined on above TABLE  *
    *                         or VIEW.                             *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The following example helps to illustrate the problem.
    
    Step 1. Create objects.
    
    CREATE TABLE T1(
      C1 VARCHAR(8),
      C2 VARCHAR(2)
    )!
    
    CREATE VIEW V1(D1, D2) AS
      SELECT C1, C2 FROM T1!
    
    CREATE TRIGGER TRI1
     AFTER INSERT ON T1
     REFERENCING NEW AS RNEW FOR EACH ROW MODE DB2SQL
     BEGIN ATOMIC
    
       INSERT INTO T1 VALUES(RNEW.C1, RNEW.C2);
    
     END!
    
    CREATE TRIGGER TRI2
     INSTEAD OF INSERT ON V1
     REFERENCING NEW AS RNEW FOR EACH ROW MODE DB2SQL
     BEGIN ATOMIC
    
       INSERT INTO V1 VALUES('AAA', 'BB');
    
     END!
    
    Step 2. Statements which can cause ABEND.
    
    Example#1:
    
    ALTER TABLE T1
     ALTER COLUMN C1 SET DATA TYPE VARCHAR(10)
     ALTER COLUMN C2 SET DATA TYPE VARCHAR(10)!
    
    Example#2:
    
    ALTER VIEW V1 REGENERATE!
    
    DB2 does not free storage properly when process the above ALTER
    statement which may result in the ABEND.
    
    The ABEND occurs because DB2 run out of storage since the
    storage that are allocated when processing the statement
    ALTER TABLE... ALTER COLUMN... SET DATA TYPE... isn't freed.
    

Problem conclusion

  • DB2 has been modified correctly to free storage when
    processing ALTER statement.
    
    Additional keywords: SQLALTER SQLVIEW SQLTRIGGER SQLSTORAGE
                         DB2STGLK/K
    

Temporary fix

  • *********
    * HIPER *
    *********
    

Comments

APAR Information

  • APAR number

    PI26033

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-09-18

  • Closed date

    2015-01-18

  • Last modified date

    2015-03-03

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

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

    UI24475 UI24476

Modules/Macros

  •    DSNXISUB DSNXOOP
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RA10 PSY UI24475

       UP15/02/03 P F502 Ž

  • RB10 PSY UI24476

       UP15/02/03 P F502 Ž

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"DB2 for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
31 July 2023