IBM Support

IT25481: SQL0901N ERROR OR HANG MIGHT OCCUR WHEN RUNNING QUERIES CONTAINING NOT EXISTS OR NOT IN SUB-QUERIES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as unreproducible.

Error description

  • When running queries containing NOT EXISTS or NOT IN
    sub-queries, user
    might observe the following SQL0901 error:
    Bad Plan; Unresolved QNC found
    Or hangs in "sqlnr_sort_sips_order" function
    
    
    A query causing this 901 error or hang usually have the
    following
    characteristics:
    1. the query contains at least one NOT EXISTS or NOT IN
    sub-query
    2. the NOT EXISTS or NOT IN sub-query is correlated to at least
    another
    sub-select (sub-select A)
    or base tables joined with other sub-selects
    3. sub-select A is correlated to another sub-select (sub-select
    B) that
    is not referenced by the NOT EXISTS or the NOT IN sub-query
    

Local fix

  • Work-around:
    DB2_ANTIJOIN=NO
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * unclear the problem is not reproducible in v11147            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Use the local fix DB2_ANTIJOIN=NO as work-around             *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT25481

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED UR5

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-06-25

  • Closed date

    2022-03-10

  • Last modified date

    2022-03-10

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

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

Fix information

Applicable component levels

  • RB10 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":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 May 2022