IBM Support

IT00506: -901 FROM RUNNING A QUERY.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Some necessary conditions to hit the problem are:
    The query is in a pattern of
    SELECT FROM (<SUBQUERY1> as A, (SELECT FROM WHERE <ANYCOL> IN
    <SUBQUERY2>) as B) WHERE A.col1 = B.col1 GROUP BY A.col2;
    
    here,
    SUBQUERY1 = SELECT col1, col2 from <SUBQUERY3> GROUP BY col1,
    col2
    SUBQUERY2 = SELECT DISTINCT col1 from <SUBQUERY3>
    SUBQUERY3 = SELECT col1, col2 from <base tables> WHERE
    <ANYPREDICATES>
    

Local fix

  • Manually rewrite SUBQUERY2 from "SELECT DISTINCT col1 from
    <SUBQUERY3>" to "SELECT col1 from <SUBQUERY3> GROUP BY col1".
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 10.5fp5 or higher                             *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 10.5fp5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT00506

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-03-21

  • Closed date

    2020-07-20

  • Last modified date

    2020-07-20

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

    IC99823

  • 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

[{"Business Unit":{"code":"BU029","label":"Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.5","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
03 August 2020