IBM Support

PI16184: SQLCODE904 WHEN ACCELERATED SQL REFERENCES COMPLEX VIEW

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • query referencing complex views returns
    
    SQL error: SQLCODE = -904, SQLSTATE = 57011, SQLERRMC =
    00001080 00E7000E HY000: ERROR:  Column reference "TnnnCnnn" is
    ambiguAQT     . SQLCODE=-904, SQLSTATE=57011, DRIVER=3.66.46
    
    when offloaded to IDAA
    

Local fix

  • execute query without acceleration
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of DB2 10 for z/OS and DB2 11 for  *
    *                 z/OS who use IBM DB2 Analytics Accelerator.  *
    ****************************************************************
    * PROBLEM DESCRIPTION: This APAR fixes an SQLCODE -904 for     *
    *                      a complex query that is executed on an  *
    *                      acclerator.                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    This APAR fixes an SQLCODE -904 for a complex query that is
    executed on an acclerator. The SQLERRMC for the SQLCODE -904
    may have text similar to the following:
    
    HY000: ERROR:  Column reference "T146C104" is amibguous
    
    This SQLCODE -904 may occur for queries that contain multiple
    outer joins, views and/or table expressions.
    
    Keywords:
    IDAAV3R1/K IDAAV4R1/K SQLCODE904 SQLVIEW SQLOUTERJOIN
    SQLTABLEEXPR
    

Problem conclusion

  • Code is fixed so that the complex query executes successfully
    on an accelerator.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI16184

  • 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

    2014-04-17

  • Closed date

    2014-05-05

  • Last modified date

    2014-06-03

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

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

    UI17690 UI17691

Modules/Macros

  • DSNXONZC
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RA10 PSY UI17690

       UP14/05/21 P F405

  • RB10 PSY UI17691

       UP14/05/21 P F405

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:
03 June 2014