IBM Support

IC84015: EXP0009W ERROR IN EXFMT OUTPUT WHEN OPT GUIDELINE IS USED.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When DB2 registry variable DB2_OPTPROFILE is set to YES, for
    some
    queries when optimization guideline is used, EXP0009W may be
    returned in explain output and the optimization guideline will
    not be used.
    
    EX:
    
    select a.c1, b.c2, c.c1, d.c2, e.c1
    from tab1 a, tab2 b, tab3 c, tab4 d, tab5 e
    where a.c1=b.c1 and b.c1=c.c1 and c.c1=d.c1 and d.c2=e.c2
    /*<OPTGUIDELINES>
               <HSJOIN> <ACCESS TABLE='e'/> <NLJOIN> <HSJOIN>
    <ACCESS TABLE='a'/>
               <HSJOIN> <ACCESS TABLE='d'/> <ACCESS TABLE='b'/>
    </HSJOIN>
               </HSJOIN> <ACCESS TABLE='c'/> </NLJOIN> </HSJOIN>
               </OPTGUIDELINES>*/;
    
    
    The error in exfmt output:
    
    Extended Diagnostic Information:
    --------------------------------
    
    Diagnostic Identifier:     1
    Diagnostic Details:     EXP0009W  Invalid access request. The
    table
                reference identified by the TABLE attribute could
                not be found. Line number "11", character number
                "44".
    

Local fix

  • As a temporary workaround, TABID can be used in the optimization
    guideline.
    
    EX:
    
    /*<OPTGUIDELINES>
      <HSJOIN> <ACCESS TABLE='e'/>
               <NLJOIN>
                        <HSJOIN> <ACCESS TABID='Q1'/>
                                 <HSJOIN> <ACCESS TABID='Q4'/>
                                          <ACCESS TABID='Q2'/>
                                 </HSJOIN>
                        </HSJOIN>
                        <ACCESS TABID='Q3'/>
               </NLJOIN>
      </HSJOIN>
    </OPTGUIDELINES>*/;
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 version 9.7 fix pack 7                        *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 version 9.7 fix pack 7
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC84015

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-07

  • Closed date

    2012-12-31

  • Last modified date

    2012-12-31

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

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

    IT02219

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       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":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
31 December 2012