IC83060: AN 'ALTER TABLE, ALTER COLUMN RESTART XXX" DDL STATEMENT IS NOT BEING CAPTURED IN DB2LOOK UNTIL AN ACTUAL VALUE HAS BEEN INSERTE

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as user error.

Error description

  • An 'alter table, alter column restart xxx" DDL statement is not
    being captured in db2look until an actual value has been
    inserted.
    
    How to Reproduce:
    ------------------
    1. db2 "create table test(a integer generated by default as
    identity, b integer)"
    
    DB20000I  The SQL command completed successfully.
    
    
    
    2. db2 "insert into test(a,b) values (400,400),(500,500)"
    
    DB20000I  The SQL command completed successfully.
    
    
    
    3. db2look -d sample -e -t test -nofed
    
    ------------------------------------------------
    
    -- DDL Statements for table "DB297   "."TEST"
    
    ------------------------------------------------
    
    CREATE TABLE "DB297   "."TEST"  (
                      "A" INTEGER NOT NULL GENERATED BY DEFAULT AS
    IDENTITY
    (
    
                        START WITH +1
    
                        INCREMENT BY +1
    
                        MINVALUE +1
    
                        MAXVALUE +2147483647
    
                        NO CYCLE
    
                        CACHE 20
    
                        NO ORDER ) ,
    
                      "B" INTEGER )
    
                     IN "IBMDB2SAMPLEREL" ;
    
    
    
    COMMIT WORK;
    
    CONNECT RESET;
    
    TERMINATE;
    
    
    
    4. db2 alter table test alter column a restart with 1000
    
    DB20000I  The SQL command completed successfully.
    
    
    
    5. db2look -d sample -e -t test -nofed
    
    
    
    Shows:
    
    ------------------------------------------------
    
    CREATE TABLE "DB297   "."TEST"  (
    
                      "A" INTEGER NOT NULL GENERATED BY DEFAULT AS
    IDENTITY
    (
    
                        START WITH +1
    
                        INCREMENT BY +1
    
                        MINVALUE +1
    
                        MAXVALUE +2147483647
    
                        NO CYCLE
    
                        CACHE 20
    
                        NO ORDER ) ,
    
                      "B" INTEGER )
    
                     IN "IBMDB2SAMPLEREL" ;
    
    COMMIT WORK;
    
    Note:  No restart DDL at this point.
    
    ------------------------------------------------
    
    6. But if we insert it picks it up:
    
    
    
    $ db2 "insert into test(b) values (4000),(5000)"
    
    DB20000I  The SQL command completed successfully.
    
    ------------------------------------------------
    
    CREATE TABLE "DB297   "."TEST"  (
    
                      "A" INTEGER NOT NULL GENERATED BY DEFAULT AS
    IDENTITY
    (
    
                        START WITH +1
    
                        INCREMENT BY +1
    
                        MINVALUE +1
    
                        MAXVALUE +2147483647
    
                        NO CYCLE
    
                        CACHE 20
    
                        NO ORDER ) ,
    
                      "B" INTEGER )
    
                     IN "IBMDB2SAMPLEREL" ;
    
    ALTER TABLE "DB297   "."TEST" ALTER COLUMN "A" RESTART WITH
    1039;
    COMMIT WORK;
    ------------------------------------------------
    

Local fix

  • Insert one row before issuing db2look.
    

Problem summary

Problem conclusion

Temporary fix

Comments

  • The problem fixed
    

APAR Information

  • APAR number

    IC83060

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED USE

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-05-02

  • Closed date

    2013-03-29

  • Last modified date

    2013-03-29

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

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

    IC88635

Fix information

Applicable component levels



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

9.7

Reference #:

IC83060

Modified date:

2013-03-29

Translate my page

Machine Translation

Content navigation