IBM Support

IC78300: DB2 might return SQL0305N error when you request an access plan graph in Optim products

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • DB2 might return SQL0305N (The NULL value cannot be assigned to
    a host variable because no indicator variable is specified)
    error when you request an access plan graph in Optim products
    
    This problem can occur if any tables involved have a high2key or
    low2key statistical value of NULL.   You can check the
    SYSCAT.COLUMNS catalog view to confirm APAR applicability.
    

Local fix

  • Perform a statistics collection on the table to see if the error
    is resolved.  If that fails to resolve the issue, use the
    explain facility to get a textual explain.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All users V9.7 FP4 and below                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * DB2 might return SQL0305N (The NULL value cannot be assigned *
    * to                                                           *
    * a host variable because no indicator variable is specified)  *
    *                                                              *
    * error when you request an access plan graph in Optim         *
    * products                                                     *
    *                                                              *
    *                                                              *
    * This problem can occur if any tables involved have a         *
    * high2key or                                                  *
    * low2key statistical value of NULL.  You can check the        *
    *                                                              *
    * SYSCAT.COLUMNS catalog view to confirm APAR applicability.   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to V9.7 version FP5                                  *
    ****************************************************************
    

Problem conclusion

  • First fixed in V9.7 FP5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC78300

  • 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

    2011-08-24

  • Closed date

    2011-12-10

  • Last modified date

    2011-12-10

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

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

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 #: IC78300

Modified date: 10 December 2011