IC92610: DB2 MIGHT TRAP WHILE COMPILING AN SQL STATEMENT ELIGIBLE FOR STAR JOIN

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • You might encounter a trap when a compiling an SQL statement
    that satisfies the following conditions:
    
    1.  the statement qualifies the starjoin eligibility criteria,
    and
    2.  one or more tables participating in the starjoin apply
    subquery
    predicates, and
    3.  an optimization guideline is applied to the statement
    
    In a trap file, you might see the stack traces as following:
    
    ...
    sqlno_crule_nljn
    sqlno_crule_join_choices
    sqlno_crule_join_order
    sqlno_crule_join_root
    sqlno_crule_join
    sqlno_starjn
    ...
    
    Following is an example of a query that satisfies conditions 1
    and 2, assuming F is identified as the fact table of the star
    join, and D1 and D2 are the dimension tables:
    
    select F.D1, F.D2, F.D3, F.D4, M, substr(D1.C,1,4)
    from F, D1, D2
    where F.D1=D1.key AND D1.attr<80 AND D1.keya<40 AND
          F.D2=D2.key AND D2.attr<80
    AND D1.Y not in (select Y from D3 where Y > 10 order by Y);
    

Local fix

  • Avoid applying the optimization guideline.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 10.1 fixpack 3.                       *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 10.1 fixpack 3.
    

Temporary fix

  • See Local Fix
    

Comments

APAR Information

  • APAR number

    IC92610

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-05-26

  • Closed date

    2013-10-13

  • Last modified date

    2013-10-13

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

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

    IC95387

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RA10 PSN

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

10.1

Reference #:

IC92610

Modified date:

2013-10-13

Translate my page

Machine Translation

Content navigation