IBM Support

IT23557: FEDERATED QUERY CONTAINING ROWNUM CRITERIA MISSING IN REMOTE SQL

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Federated SQL  containing rownum criteria missing in remote SQL
    
    RMTQTXT : (Remote statement)
                            SELECT B0.C0 C0, B0.C1 C1 FROM ((SELECT
    /*+ PARALLEL(B1, 4)  */ 'PSS2' C0, B1."TEST_NAME" C1 FROM
    "TAB1"."A_TEST" B1 WHERE ((BITAND(B1."S_CODE", :H0 ) <> 0) OR
    (B1."S_CODE" IS NULL)) AND (B1."TEST_NAME" LIKE 'A%')) UNION ALL
    (SELECT /*+ PARALLEL(B2, 4)  */ 'PSS1' C0, B2."TEST_NAME" C1
    FROM "TAB1"."A_TEST" B2 WHERE ((BITAND(B2."S_CODE", :H1 ) <> 0)
    OR (B2."S_CODE" IS NULL)) AND (B2."TEST_NAME" LIKE 'A%'))) B0
    
    Should contain ROWNUM as below
    
    RMTQTXT : (Remote statement)
                            SELECT B0.C0 C0, B0.C1 C1 FROM ((SELECT
    /*+ PARALLEL(B1, 4)  */ 'PSS2' C0,
    B1."TEST_NAME" C1 FROM "TAB1"."A_TEST" B1 WHERE
    ((BITAND(B1."S_CODE", :H0 ) <> 0) OR (B1."S_CODE" IS NULL)) AND
    (B1."TEST_NAME" LIKE 'A%')) UNION ALL (SELECT /*+ PARALLEL(B2,
    4)  */ 'PS
    S1' C0, B2."TEST_NAME" C1 FROM "TAB1"."A_TEST" B2 WHERE
    ((BITAND(B2."S_CODE", :H1 ) <> 0) OR
    (B2."S_CODE" IS NULL)) AND (B2."TEST_NAME" LIKE 'A%'))) B0 WHERE
    (ROWNUM <= 4 )
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.1 Mod 3 Fix Pack 3 or higher               *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 11.1 Mod 3 Fix Pack 3
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT23557

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-12-21

  • Closed date

    2018-03-19

  • Last modified date

    2018-03-19

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

  • 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

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
19 March 2018