IC83453: XML INPUT STORED PROCEDURE/UDF WITH PARAMETER MARKER AND REOPT ALWAYS ENABLED CAN RETURN SQL0901N

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The following error may be returned to an application calling a
    UDR or UDF :
    
    SQL0901N  The SQL statement failed because of a non-severe
    system error. Subsequent SQL statements can be processed.
    (Reason "QGM internal error: xpath does not have context qnc!".)
    SQLSTATE=58004
    
    This happens when REOPT ALWAYS was enabled when the procedure
    was created
    ( via SYSPROC.SET_ROUTINE_OPTS('REOPT ALWAYS') ) and when one of
    the input parameters is of data type XML.
    
    There will be a trap file produced as well with the following
    callstack :
    
    sqloDumpEDU
    sqldDumpContext
    sqlrr_dump_ffdc
    sqlzeDumpFFDC
    sqlzeSqlCode
    sqlnn_erds
    sqlnq_xp_merge_xpaths
    sqlnr_merge_compute_boxes
    sqlnr_merge_and_create_mep
    sqlnr_xq_native_optprep
    sqlnr_optprep
    sqlnr_optprep_action
    sqlnr_comp
    sqlnr_seq
    sqlnr_rcc
    sqlnr_exe
    sqlnn_cmpl
    

Local fix

  • Do not use REOPT ALWAYS for stored procedures that match the
    criteria of this apar.
    Recode the application to avoid using XML input parameters.
    

Problem summary

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

Problem conclusion

  • Problem has been fixed in DB2 version 970 fix pack 7
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC83453

  • 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-05-15

  • Closed date

    2013-01-14

  • Last modified date

    2013-01-14

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

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

    IC87862

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP

  • R970 PSY

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

9.7

Reference #:

IC83453

Modified date:

2013-01-14

Translate my page

Machine Translation

Content navigation