IBM Support

IC93905: DB2ADVIS MAY FAIL WITH SQL0304N WHEN PROCESSING LARGE INPUT FILES

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Depending on the size and content of the input file, db2advis
    may fail with error SQL0304N. Symptoms could look like the
    following in the output file: i
    
        +1  execution started at timestamp
    2013-06-26-11.38.36.254710
        +2  found [4945] SQL statements from the input file
        +3  Recommending indexes...
        +4
        +5  0 solutions were evaluated by the advisor
        +6
        +7  exiting with error code [-304]
    
    and in db2diag.log:
    
    2013-06-26-17.07.01.758200+060 I165624A714        LEVEL: Error
    PID     : 54657106             TID  : 1           PROC :
    db2advis
    INSTANCE: db2inst1              NODE : 000
    APPID   : *N0.db2inst1.130906150326
    EDUID   : 1
    DATA #1 : String, 51 bytes
    
    ***   Error at line 1372, in file db2advindex.SQC
    DATA #2 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes
     sqlcaid : SQLCA     sqlcabc: 136   sqlcode: -304   sqlerrml: 0
     sqlerrmc:
     sqlerrp : SQLADRBO
     sqlerrd : (1) 0x882A000C      (2) 0x0000000C      (3)
    0x00000000
               (4) 0x00000000      (5) 0x00000000      (6)
    0x00000000
     sqlwarn : (1)      (2)      (3)      (4)        (5)       (6)
    
               (7)      (8)      (9)      (10)        (11)
     sqlstate: 22003
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all using db2advis                                           *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to version 9.7 Fixpack 9                             *
    ****************************************************************
    

Problem conclusion

  • First fixed in version 9.7 Fixpack 9
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC93905

  • 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

    2013-07-03

  • Closed date

    2013-10-01

  • Last modified date

    2013-10-01

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

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

    IC95453 IC96285

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSY

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC93905

Modified date: 01 October 2013