IBM Support

IC88290: SQL0901N ERROR MAY BE RETURNED WHEN CREATING AN INDEX ON A USER-DEFINED TEMPORARY TABLE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Problem description:
    
    A create index on a user-defined temporary table (also knows as
    CGTT) may fail with the error SQL0901N.
    
    The following example may reproduce the problem :
    
    db2 "create user temporary tablespace ts1"
    db2 "create table t1 (i1 int, i2 int)"
    db2 "insert into t1 values (1,1),(2,2),(3,3)"
    db2 "create global temporary table session.t2 as (select i1,i2
    from t1) definition only"
    db2 "insert into session.t2 values (4,4),(5,5),(6,6)"
    db2 "create index session.t2_i1 on session.t2 (i1,i2)"
    
    The last CREATE INDEX statement is where the failure may occur
    and return :
    SQL0901N  The SQL statement failed because of a non-severe
    system error. Subsequent SQL statements can be processed.
    (Reason "".)  SQLSTATE=58004
    

Local fix

  • If possible instead of a user-defined temporary table a regular
    table could be used.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 8.                       *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.7 Fix Pack 8.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC88290

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-11-16

  • Closed date

    2013-04-02

  • Last modified date

    2013-04-02

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

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

    IC88471

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
02 April 2013