IBM Support

LI74418: DBA7617 ERROR WHEN ALTOBJ ADMIN ROUTINE IS CALLED AFTER ALTERING THE TABLE DEFINITION (ADDING CONSTRAINT TO TABLE)

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ALTOBJ SQL admin routine fails with DBA7617N when a Unique
    constraint is added to the table.
    
    Steps to reproduce the problem
    
    --create database tmp;
    --connect to tmp;
    
    drop table db2.test;
    CREATE TABLE db2.test (
       address_linked_person_id integer NOT NULL,
       address_id          integer NOT NULL,
       person_id           integer NOT NULL,
       linked_person_type  integer NOT NULL
    );
    
    ALTER TABLE db2.test
    ADD CONSTRAINT alp_uk
    UNIQUE(address_id,person_id,linked_person_type);
    
    call sysproc.altobj('VALIDATE', 'CREATE TABLE DB2.TEST(
       ADDRESS_LINKED_PERSON_ID INTEGER NOT NULL,
       ADDRESS_ID          INTEGER NOT NULL,
       PERSON_ID           INTEGER NOT NULL,
       LINKED_PERSON_TYPE  INTEGER NOT NULL,
       X                   INTEGER NOT NULL
    )', null, ?);
    
    It fails with DBA7617N error
    

Local fix

Problem summary

  • DBA7617 ERROR WHEN ALTOBJ ADMIN ROUTINE IS CALLED AFTER
    ALTERING THE TABLE DEFINITION (ADDING CONSTRAINT TO TABLE)
    

Problem conclusion

  • First Fixed in DB2 V9.1 FP8
    

Temporary fix

  • N/A
    

Comments

APAR Information

  • APAR number

    LI74418

  • Reported component name

    DB2 UDE ESE LIN

  • Reported component ID

    5765F4104

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-04-13

  • Closed date

    2009-10-09

  • Last modified date

    2009-10-09

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

    LI74417

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

    IC63975

Fix information

  • Fixed component name

    DB2 UDE ESE LIN

  • Fixed component ID

    5765F4104

Applicable component levels

  • R910 PSY

       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":"910","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 October 2021