IBM Support

JR57506: FEDERATED OLAP QUERY TO ISERIES CAN FAIL WITH AN SQL0104N ERROR.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A Federated OLAP query against DB2 for iSeries can fail with an
    SQL0104N error.
    
    For example:
    
    SELECT MAX(COL1) OVER (PARTITION BY COL2) FROM MYNICK.TAB1
    
    Unexpected error code "42601" received from data source "MYDB"
    Associated text and tokens are "func="do_prep" msg=" SQL0104N
    An unexpected token "(" "
    
    The remote query that is pushed down to iSeries is not valid.
    

Local fix

  • Can change the query to make it compatible to DB2 for iSeries:
    
    Example:   SELECT MAX(COL1), RANK() OVER (PARTITION BY COL2
    ORDER BY COL2) FROM MYNIC.TAB1 GROUP BY COL1
    
    
    Another workaround would be to alter the SERVER definition by
    setting db2_olap_supp to 'N':
    
    ALTER SERVER <server name> OPTIONS (ADD db2_olap_supp 'N')
    

Problem summary

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

Problem conclusion

  • First fixed in Db2 10.5 Fix Pack 9
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR57506

  • Reported component name

    FEDERATION SERV

  • Reported component ID

    5724N9700

  • Reported release

    A50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-02-28

  • Closed date

    2017-09-29

  • Last modified date

    2017-09-29

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

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

    JR57507

Fix information

  • Fixed component name

    FEDERATION SERV

  • Fixed component ID

    5724N9700

Applicable component levels

  • RA50 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCAVPY","label":"General Issues"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.5","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
29 September 2017