Skip to main content


PK18018: FETCH FIRST N ROW OR OPTIMIZE FOR N ROW CLAUSE IS PRESENT

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Bad access path is possible when FETCH FIRST N ROW or OPTIMIZE
    FOR N ROW clause is present.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All DB2 for z/OS users.                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: 1. Sometimes when the OPTIMIZE FOR N    *
    *                         ROW or FETCH FIRST N ROW clause      *
    *                         is present on a query, a poor access *
    *                         path may be generated due to an      *
    *                         unitialized internal structure.      *
    *                      2. ABEND0CC RC0C in DSNXOCSC or poor    *
    *                         performance can sometimes occur for  *
    *                         queries on tables having at least    *
    *                         one index.                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    1. Sometimes when the OPTIMIZE FOR N ROW or FETCH FIRST N ROW
       clause is present on a query, a poor access path may be
       generated due to an uninitialized internal structure.
    2. ABEND0CC RC0C in DSNXOCSC or poor query performance can
       sometimes occur for queries on tables having at least one
       index.  An uninitialized variable can cause trouble if it
       happens to pick up certain garbage values.
    
    Additional Keywords:
    SQLACCESSPATH  SQLOFNR  SQLFFNR  ROWS
    

Problem conclusion

  • The internal structure is initialized to allow the proper
    access path to be chosen.  An uninitialized variable is set to
    avoid the abend.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK18018

  • Reported component name

    5740 IBM DATABA

  • Reported component ID

    5740XYR00

  • Reported release

    810

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2006-01-17

  • Closed date

    2006-02-22

  • Last modified date

    2006-06-07

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

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

    UK12030

Modules/Macros

  • DSNXOCSC
    

Fix information

  • Fixed component name

    5740 IBM DATABA

  • Fixed component ID

    5740XYR00

Applicable component levels

  • R810 PSY UK12030

       UP06/03/11 P F603

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page

Please take a moment to complete this form to help us better serve you.

This material provides me with the information I need.






This material is clear and easy to understand.






Did the information help you to achieve your goal?

What updates, improvements, or related information would you like to see in this document?

Your response will be used to improve our document content. Requests for assistance, if applicable, should be submitted through your normal support channel as we cannot respond from this site.


Input the verification number to submit feedback:



Maintenance Window

Unscheduled Maintenance Window

There is no unscheduled maintenance scheduled at this time.

Document information

Product categories:

Software

Data Management

Data Servers (Database Management Systems)

DB2 for z/OS


Software version:

810


Reference #:

PK18018


IBM Group:

Software Group


Modified date:

2006-06-07

Translate my page