IBM Support

PM66983: SQLCODE901 SYSTEM ERROR FROM IBM DB2 ANALYTICS ACCELERATOR TOKEN 58004 with outer join and complex view query

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • set current query acceleration = enable
    ;
    select * from COMPLEX_VIEW_WITH_OUTER_JOIN;
    ---------+---------+---------+---------+---------+---------+---
      COL1 COL2 COL3
    ---------+---------+---------+---------+---------+---------+---
    DSNT408I SQLCODE =   -901, SQLSTATE = 58004, SYSTEM ERROR FROM
    IBM DB2  ANALYTICS ACCELERATOR TOKENS 58004:
    
    
    Additional Keywords:
    IDAAV2R1/K SQLCODE901 SQLJOIN SQLVIEW
    

Local fix

  • disable  query acceleration
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of DB2 10 for z/OS who are also    *
    *                 using IDAA ( IBM DB2 Analytics Accelerator ) *
    ****************************************************************
    * PROBLEM DESCRIPTION: (1) Query offload to an accelerator     *
    *                      fails when a GROUP BY expression does   *
    *                      not match the corresponding SELECT list *
    *                      expression.                             *
    *                                                              *
    *                      (2) Query offload to an accelerator     *
    *                      fails when there are multiple views     *
    *                      in a complex query.                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    (1) Query offload to an accelerator fails with SQLCODE -904
    when a GROUP BY expression does not match the corresponding
    SELECT list expression. For example:
    
    SELECT 3+(C1+C2),C4
    FROM T1
    WHERE C3 >1
    GROUP BY (C1+C2)+3,C4
    ORDER BY 2,1;
    
    (2) Query offload to an accelerator fails with SQLCODE -901
    when for a complex query with multiple views.
    
    
    Additional keywords:
    SQLCODE904 IDAAV2R1/K SQLGROUPBY SQLCODE901 SQLVIEW
    

Problem conclusion

  • (1) The converted query text used for offload is fixed so that
    the GROUP BY expression matches the SELECT list expression.
    
    (2) The converted query text used for offload is fixed so that
    the complex query with multiple views executes successfully.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM66983

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-18

  • Closed date

    2012-08-03

  • Last modified date

    2012-09-05

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

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

    UK80823

Modules/Macros

  • DSNXONZC
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RA10 PSY UK80823

       UP12/08/21 P F208

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
05 September 2012