IBM Support

JR31074: A SQL USING UDF WITH CORRELATION AND UNION ALL VIEW CAN ABEND DB

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In a very rare condition when a statement contains a
    user-defined function with correlation and
    a Union All view, DB2 could create an invalid internal structure
    during the compilation and abend
    the database with the call stack like the one below:
    
    0x090000001403C360 pp__17sqlnq_fcsqclchildFv + 0xC
    0x090000001405D964
    sqlnr_multicolprd_cond__FP14sqlnr_progressP10sqlnr_qrwaPi +
    0x5CC
    0x09000000140698C4
    sqlnr_comp__FPiiP16sqlnr_rule_stateP10sqlnr_qrwaP14sqlnr_progres
    s + 0x334
    0x090000001406A038
    sqlnr_seq__FPiP10sqlnr_qrwaP14sqlnr_progressP12sqlnr_rclass +
    0x168
    0x090000001406A684 sqlnr_rcc__FiP10sqlnr_qrwaPiP14sqlnr_progress
    + 0x174
    0x0900000014003654
    sqlnr_any_prd_action__FP10sqlnr_qrwaPiP14sqlnr_progress + 0xB8
    0x0900000014069A64
    sqlnr_comp__FPiiP16sqlnr_rule_stateP10sqlnr_qrwaP14sqlnr_progres
    s + 0x4D4
    0x090000001406A038
    sqlnr_seq__FPiP10sqlnr_qrwaP14sqlnr_progressP12sqlnr_rclass +
    0x168
    0x090000001406A684 sqlnr_rcc__FiP10sqlnr_qrwaPiP14sqlnr_progress
    + 0x174
    

Local fix

  • The problem can be avoid by issuing "SET CURRENT QUERY
    OPTIMIZATION 1."
    

Problem summary

  • Users Affected: All
    
    Problem Description:
    In a very rare condition when a statement contains a
    user-defined function with correlation and a Union All view,
    DB2 could create an invalid internal structure during the
    compilation and abend
    
    Problem summary:
    

Problem conclusion

  • First fixed in DB2 UDB Version 9.5, FixPak 4
    

Temporary fix

  • The problem can be avoid by issuing "SET CURRENT QUERY
    OPTIMIZATION 1."
    

Comments

APAR Information

  • APAR number

    JR31074

  • Reported component name

    DB2 UDB PE WIND

  • Reported component ID

    5724B5501

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-11-12

  • Closed date

    2009-06-14

  • Last modified date

    2009-06-14

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

    JR31070

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

Fix information

  • Fixed component name

    DB2 UDB PE WIND

  • Fixed component ID

    5724B5501

Applicable component levels

  • R950 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
14 June 2009