IBM Support

MF63048 - LIC-DB-OTHER-INCORROUT SQLRPGLE USING XML FAILS WITH SQLSTAT

PTF ( Program Temporary Fixes ) Cover letter


Order this fix

Abstract

LIC-DB-OTHER-INCORROUT SQLRPGLE USING XML FAILS WITH SQLSTAT


Pre/Co-Requisite PTF / Fix List

REQ  LICENSED           PTF/FIX  LEVEL

TYPE PROGRAM  RELEASE   NUMBER   MIN/MAX  OPTION
---- -------- --------- -------  -------  ------
PRE  5770999  V7R2M0    MF62599   00/00    0000
PRE  5770999  V7R2M0    MF62254   00/00    0000
PRE  5770999  V7R2M0    MF60686   00/00    0000
CO   5770999  V7R2M0    MF63049   00/00    0000
CO   5770999  V7R2M0    MF62633   00/00    0000
CO   5770999  V7R2M0    MF62590   00/00    0000
CO   5770999  V7R2M0    MF62591   00/00    0000
CO   5770999  V7R2M0    MF61259   00/00    0000
CO   5770999  V7R2M0    MF59853   00/00    0000
CO   5770999  V7R2M0    MF59186   00/00    0000
CO   5770999  V7R2M0    MF58634   00/00    0000
CO   5770999  V7R2M0    MF58151   00/00    0000
DIST 5770SS1  V7R2M0    SI56543   00/00    0000



NOTICE:
-------
Application of this PTF may disable or render ineffective programs that
use system memory addresses not generated by the IBM translator,
including programs that circumvent control technology designed to limit
interactive capacity to purchased levels.  This PTF may be a prerequisite
for future PTFs.  By applying this PTF you authorize and agree to the
foregoing.

This PTF is subject to the terms of the 'IBM License Agreement for Machine
Code', the terms of which were provided in a printed document that was
delivered with the machine.

SUBJECT TO ANY WARRANTIES WHICH CAN NOT BE EXCLUDED OR EXCEPT AS EXPLICITLY
AGREED TO IN THE APPLICABLE LICENSE AGREEMENT OR AN APPLICABLE SUPPORT
AGREEMENT, IBM MAKES NO WARRANTIES OR CONDITIONS EITHER EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON INFRINGEMENT,
REGARDING THE PTF.





APAR Error Description / Circumvention

-----------------------------------------------
SQLRPGLE program that calls XML functions XMLSERIALIZE and
XMLDOCUMENT utilises SMP and LOJ RIO spinning plans returns a
SQLSTATE:2000 SQLCODE:+100 due to placement of the bufferscan
node. This results in an INCORROUT.

CORRECTION FOR APAR MA46067 :
-----------------------------
During optimization, when a plan is chosen, if SMP/parallelism
is enabled, the optimizer determines if a buffer scan node is
needed  and where to put it in the query tree to feed the
parallelism based on the determined query SMP degree.  There are
certain locations in a final plan node tree where a buffer scan
is legitimate and other locations where that type of node is
not.  The logic to correctly place the buffer scan node when
there are multiple, stacked left outer join RIO spinning nodes
was not correct in all situations. That location is also
predicated by the query's estimated record counts and the smp
degree value determined by the optimizer.   If the buffer scan
is placed in the wrong location in the node tree, during the
execution of the plan,  the query could result in wrong results,
likely few records.

CIRCUMVENTION FOR APAR MA46067 :
--------------------------------
None.


Activation Instructions


None.




Special Instructions


None.


Default Instructions

THIS PTF CAN BE APPLIED IMMEDIATE OR DELAYED.



Supersedes

PTF/FIX NO(S).  APAR TITLE LINE
--------------  ------------------------------------------------------------
   MF62955      OSP-OTHER-PERFM QUERY RE-OPTIMIZATIONS OCCURRING
   MF62883      LIC-DB-PERFM Improve re-use of temporary results with Concur
   MF62768      LIC-DB-OTHER-PERM Improve query performance by removing extr
   MF62751      LIC-DB-PERFM Excessive optimization time when MQTs enabled
   MF62745      LIC-DB-OTHER-PERFM Improve query optimization for partitione
   MF62725      LIC-DB-MSGMCH3203 DbopNOde-getComplicatedExprs__8DbopNodeCFR
   MF62682      LIC-DB-OTHER-INCORROUT Incorrectly sorted results possible w
   MF62632      LIC-DB Internal Maintenance
   MF62626      LIC-DB-OTHER Internal Database Maintenance.
   MF62589      OSP-OTHER-PERFM WORKLOAD CAPPING IN ENVIRONMENTS THAT USE DB
   MF62589      OSP-DB-OTHER-F/DBPMTRAP-T/QDBGETM-MSGMCH3203 MSGMCH3203 F/DB
   MF62512      OSP-DB-OTHER-T/QQQOOODBOPX/4720-MSGMCH3203 A LEFT OUTER JOIN
   MF62512      OSP-DB-OTHER-T/QQQOOODBOPX/4720-MSGMCH3203 A LEFT OUTER JOIN
   MF62491      LIC-DB-INCORROUT ORDER BY and Partitioned Table and RRN Prob
   MF62443      F/OPTIMIZER-UDFINCORROUTAFTERCLEARINGPLANCACHE UDF INCORRECT
   MF62422      LIC-DB-OTHER Internal Database Maintenance.
   MF62299      LIC-DB-OTHER Internal database maintenance
   MF61676      LIC-DB-OTHER-INCORROUT WRKQRY OUTPUT IS NOT IN THE SPECIFIED
   MF62033      LIC-DB-OTHER-T/QQQOOODBOP-MSGMCH3601 MSGMCH3601 T/QQQOOODBOP
   MF61923      LIC-DB Internal Maintenance
   MF61823      LIC-DB-PERFM Improve re-use of temporary results with Concur
   MF61820      LIC-DB-OTHER-F/DBPMFORMAT-T/QDBGETMQO-MSGMCH3402 MSGCPF5257
   MF61752      LIC-DB-OTHER-PERFM POOR PERFORMING QUERY WHEN IMPLEMENTED WI
   MF61715      OSP-DB-OTHER OUTPUT QRO HASH OF QUERY INITIATING MTI IN TRAC
   MF61683      LIC-DB Internal Database Maintenance
   MF61668      LIC-DB-OTHER-INCORROUT Left outer join query returns wrong r
   MF61635      LIC-DB-OTHER-MSGMCH3203-F/DBOPAFFINITY-T/QQQOOODBOP followed
   MF61586      OSP-DB-OTHER-MSGCPF4204 ON A QUERY OVER A VIEW
   MF61580      F/DBOPEXPRVALMISC-MSGMCH3203 R720 MCH3203 T/QQQOOOUPCL F/DBO
   MF61573      OSP-DB-OTHER-SAP400 INDEX ADVISER IS SETTING SORT TABLE TO *
   MF61555      OSP-PAR-940XMISC AFTER UPGRADE TO R720 POOR QUERY PERFORMANC
   MF61505      LIC-DB-PERFM SQL Improve column elimination in union queries
   MF61499      LIC-DB-OTHER-F/DBOPEXPRVALMISC-T/QQQOOODBOP-MSGMCH3203 FILE
   MF61431      LIC-DB Internal Database Maintenance
   MF61262      LIC-DB-PERFM - EAO with Partitioned Tables
   MF61198      OSP-DB-OTHER-INCORROUT INCORRECT RESULTS MAY OCCUR WITH REPL
   MF61143      LIC-PERFM-PAR-940XMISC Bad Query Plan
   MF61073      LIC-DB-PERFM Partitioned Table Index preload IO cost too hig
   MF60977      OSP-DB-OTHER-F/DBPMTRAP-T/QQQOOODBOP-MSGMCH3203 VL0600BADD V
   MF60924      LIC-DB Plan Cache Property Number of created MTIs is zero
   MF60797      LIC-DB-PERFM SQL Honor KEEPINMEM MEMORY_POOL_PREFERENCE for
   MF60783      OSP-OTHER-PERFM LONG OPTIMIZATION TIME DUE TO NUMEROUS UDFS/
   MF60778      LIC-DB-OTHER-INCORROUT SQL LOCATE with VARCHAR columns and t
   MF60747      LIC-DB-INCORROUT SMP XML INCORRECT OUTPUT AFTER UPGRADE
   MF60739      LIC-DB-OTHER-UNPRED Internal Database Maintenance
   MF60687      OSP-OTHER-PERFM QUERY WITH RECURSIVE COMMON TABLE EXPRESSION
   MF60681      LIC-DB-OTHER-UNPRED Internal Database Maintenance
   MF60627      OSP-DB-OTHER-F/DBPMTRAPX/0958-T/QQQOOODBOPX/4958-MSGMCH3203
   MF60601      LIC-DB-OTHER-INCORROUT SPECIAL REGISTER VALUE INCORRECTLY RE
   MF60581      LIC-DB-INCORROUT CURRENT CLIENT_ACCTNG special register refr
   MF06006      LIC-DB-UNPRED Plan cache snapshot may cause unpredictable be
   MF60527      LIC-DB-OTHER-LOOP IMPROVE THE MANAGEMENT OF SPARSE MTIS IN A
   MF60527      LIC-DB-OTHER-UNPRED HIGH TEMP STORE USAGE FROM HEAP SEGMENT
   MF60527      LIC-DB-OTHER-PERFM EXCESSIVE TEMPORARY STORAGE CONSUMPTION A
   MF60468      OSP-DB-OTHER-UNPRED VL0600A1B8 PLANCACHE
   MF60450      LIC-DB-OTHER-F/QDBSIGEX-MSGCPF5149 MAY OCCUR WHEN USING USIN
   MF60443      OSP-DB-OTHER-F/ASSERT-T/QQQOOODBOP-MSGMCH3203 A MSGMCH3203 M
   MF60173      LIC-DB-UNPRED Temps and Concurrent Access Resolution of Skip
   MF60173      LIC-DB-PERFM Aggregagate query performs poorly when SMP
   MF60035      LIC-DB-OTHER-INCORROUT OLAP ORDER BY ASC NULLS FIRST WITH NU
   MF60003      LIC-DB-OTHER Add MEMORY_POOL_PREFERENCE QAQQINI OPTION TO VE
   MF59992      LIC-DB-OTHER-PERFM IMPROVE SQL PLAN VALIDATION
   MF59981      LIC-DB-OTHER-INCORROUT Left outer join queries executed with
   MF59892      LIC-DB-OTHER Internal maintenance
   MF59698      LIC-DB-PERFM Query with Partitioned table
   MF59529      LIC-DB-PERFM Probe Predicate not completely normalized
   MF58548      LIC-DB-OTHER-PERFM Incorrect disk response time estimates fo
   MF58282      OSP-PERFM QUERY PERFORMS POORLY WHEN SYMMETRIC MULTIPROCESSI
   MF57961      LIC-DB Internal Maintenance
   MF59064      QRY-QRYRUN-F/DBOPOPERATIONMISC-T/QQQOOODBOP-RC0-MSGMCH3203 R
   MF59856      LIC-DB-UNPRED Ensure order of partitions in partitioned tabl
   MF59628      OSP-DB-OTHER-F/DBLISTHOME-T/QQQOOODBOP-MSGMCH3601 MSGMCH3601
   MF59552      LIC-DB-OTHER MCH3602 DbopReferenceDataTable with array host
   MF59464      LIC-DB-OTHER-PERFM DISTINCT QUERY TAKES TWICE AS LONG AFTER
   MF59448      OSP-PERFM QUERIES AT R710 ARE RUNNING SLOWER UNLESS THE INLI
   MF59448      OSP-PERFM QUERIES AT R710 ARE RUNNING SLOWER UNLESS THE INLI
   MF59435      LIC-DB-OTHER DATABASE MONITOR 3010 RECORD MISSING
   MF59243      LIC-DB-OTHER-PERFM HIGHER CPU CONSUMPTION FOR QUERY AFTER AP
   MF59188      LIC-DB-Other Internal Maintenance
   MF59141      LIC-DB-INCORROUT Native Key positioning
   MF58955      LIC-DB-OTHER Internal Maintenance
   MF58858      LIC-DB-OTHER-PERFM QUERY OPTIMIZER DOES NOT IMPLEMENT VIA AN
   MF58811      LIC-DB-OTHER-INCORROUT SYSTEM CRASH DURING NORMAL OPERATIONS
   MF58811      LIC-DB-OTHER-PERFM SMP IMPLEMENTATION LEADS TO POOR SQL QUER
   MF58794      OSP-UNPRED RPG PROGRAM WITH EMBEDDED SQL RETURNS NO RESULT S
   MF58635      LIC-DB-OTHER Internal maintenance
   MF58577      OSP-DB-OTHER-F/ASSERT-T/QQQOOODBOP-MSGMCH3203 SQL SELECT STA
   MF58538      LIC-DB-OTHER Internal Maintenance
   MF58536      OSP-DB-OTHER-INCORROUT DIFFERENCES BETWEEN CCSID 65535 AND 5
   MF58334      OSP-DB-OTHER-F/QDBIOERRQO-T/QSQRUN2-MSGCPF503E MSGSQL0502-F/
   MF58194      LIC-DB-MSGMCH3203 Update query with RCAC
   MF58150      LIC-DB Internal Maintenance
   MF58141      OSP-DB-OTHER-F/QQQOOODBOP-T/QQQOOOINV-MSGMCH3203 QUERIES FAI
   MF58141      LIC-DB-OTHER-PERFM DELETE STATEMENT WITH NOT IN PREDICATE IS
   MF58133      LIC-DB-MSGMCH3203 Delete from a Partitioned Table
   MF58092      LIC-DB Internal Maintenance
   MF57849      LIC-DB Internal Maintenance
   MF57804      LIC-DB Internal Maintenance
   MF57777      LIC-DB Internal Maintenance
   MF57702      LIC-DB-MSGMCH3203 Grouping Sets
   MF57623      LIC-DB Internal Maintenance

Summary Information

System.............................. i
Models..............................
Release............................. V7R2M0
Licensed Program............... 5770999
APAR Fixed.......................... View details for APAR MA46067
Superseded by:...................... View fix details for PTF MF66229
Recompile........................... N
Library............................. QSYS
MRI Feature ........................ NONE
Cum Level........................... C7068720


IBM i Support

IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright © 1996,1997,1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult the Terms of use link for trademark information.

Document information

More support for: i family

Software version: V7R2M0

Operating system(s): OS/400

Reference #: MF63048

Modified date: 18 January 2017