IBM Support

IY93789: A VERY COMPLEX QUERY MAY RETURN A WARNING MESSAGE SQL0437W AFTER UPGRADING TO FIX PACK 10 OR LATER

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Due to changes in the DB2 optimizer code that started in DB2 9.1
    a very complex query that used to work fine before an upgrade to
    DB2 9.1, may return the following warning after the upgrade:
    
      SQL0437W Performance of this complex query may be sub-optimal.
      Reason code: "1". SQLSTATE=01602.
    
      Explanation:
      The statement may achieve sub-optimal performance since
      the complexity of the query requires resources that are
      not available or optimization boundary conditions were
      encountered.  The following is a list of reason codes:
    
      1 The join enumeration method was altered due to
        memory constraints
    

Local fix

  • Two options to Workaround the issue.
    
    Set the DB2_REDUCED_OPTIMIZATION registry variable to YES
    
      db2set db2_reduced_optimization=yes
    
    or
    
    Reduce the current query optimization level
      (e.g. set current query optimization 2)
    

Problem summary

  • Users Affected:
    
    All
    
    Problem Description:
    
    Query may return a warning message SQL0437W after upgrading to
    Fix Pack 10 or later
    
    
    Error Description:
    
    
    Due to changes in the DB2 optimizer code that started in Fix
    Pack 10,
    a query that used to work fine before the upgrade, it may return
    the following warning after the upgrade:
    
    SQL0437W Performance of this complex query may be sub-optimal.
    Reason code: "1". SQLSTATE=01602.
    
    Problem Summary:
    
    Query may return a warning message SQL0437W after upgrading to
    Fix Pack 10 or later
    
    
    Error Description:
    
    
    Due to changes in the DB2 optimizer code that started in Fix
    Pack 10,
    a query that used to work fine before the upgrade, it may return
    the following warning after the upgrade:
    
    SQL0437W Performance of this complex query may be sub-optimal.
    Reason code: "1". SQLSTATE=01602.
    
    Explanation:
    
    The statement may achieve sub-optimal performance since the
    complexity of the query requires resources that are not
    available
    or optimization boundary conditions were encountered.  The
    following is a list of reason codes:
    
    
     1 The join enumeration method was altered due to memory
    constraints
    

Problem conclusion

  • Problem was first fixed in version 9 fixpack 4  (s071028)
    

Temporary fix

  • db2set db2_reduced_optimization=yes
    
    or
    
    Reduce the current query optimization level
    (e.g. set current query optimization 2)
    

Comments

APAR Information

  • APAR number

    IY93789

  • Reported component name

    DB2 UDB ESE SOL

  • Reported component ID

    5765F4102

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-01-19

  • Closed date

    2008-02-20

  • Last modified date

    2011-07-20

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

    IY93788

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

    IZ09197

Fix information

  • Fixed component name

    DB2 UDB ESE SOL

  • Fixed component ID

    5765F4102

Applicable component levels

  • R810 PSN

       UP

  • R820 PSN

       UP

  • R910 PSN

       UP

  • R950 PSN

       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:
07 January 2022