IBM Support

MF59244 - LIC-PERFM SQL PERFORMANCE ISSUES INVOLVING ORDERING PLANS

PTF ( Program Temporary Fixes ) Cover letter


Order this fix

Abstract

LIC-PERFM SQL PERFORMANCE ISSUES INVOLVING ORDERING PLANS


Pre/Co-Requisite PTF / Fix List

REQ  LICENSED           PTF/FIX  LEVEL

TYPE PROGRAM  RELEASE   NUMBER   MIN/MAX  OPTION
---- -------- --------- -------  -------  ------
PRE  5770999  V7R2M0    MF58904   00/00    0000
PRE  5770999  V7R2M0    MF58880   00/00    0000
CO   5770999  V7R2M0    MF59243   00/00    0000
CO   5770999  V7R2M0    MF58955   00/00    0000
CO   5770999  V7R2M0    MF58956   00/00    0000
CO   5770999  V7R2M0    MF58957   00/00    0000
CO   5770999  V7R2M0    MF58958   00/00    0000
DIST 5770SS1  V7R2M0    SI54318   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

-----------------------------------------------
A query which was previously able to re-use cached query results
may no longer be able to do so after application of recent ptfs.
This can result in higher CPU consumption for jobs which run the
same query repetitively.

CORRECTION FOR APAR MA44122 :
-----------------------------
This PTF will allow the SQL runtime to re-use cached SQL query
results when possible.

CIRCUMVENTION FOR APAR MA44122 :
--------------------------------
None.


DESCRIPTION OF PROBLEM FIXED FOR APAR MA44114 :
-----------------------------------------------
Cost of index ordering issue with certain SQL statements
preventing the better plan (i.e. ordering via a sorted temporary
result) from being chosen.

CORRECTION FOR APAR MA44114 :
-----------------------------
The SQL optimizer introduced a change that caused some types of
ordering plans to have incorrect estimated costs. This allows
sub-optimal plans to be chosen by the optimizer, which causes
SQL performance problems.

CIRCUMVENTION FOR APAR MA44114 :
--------------------------------
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
--------------  ------------------------------------------------------------
   MF59137      LIC-DB-OTHER-PERFM RECURSIVE QUERY CONNECT BY PERFORMANCE FO
   MF59121      LIC-DB-OTHER-UNPRED QUERY WITH OLAP FUNCTION FAILING AFTER U
   MF59094      LIC-DB-OTHER-PERFM UPDATE STATEMENT INTERMITTENTLY PERFORMS
   MF59094      LIC-DB-OTHER-PERFM QUERY OPTIMIZER IMPROVEMENTS TO COSTING.
   MF58954      LIC-DB-OTHER Internal Maintenance
   MF58859      LIC-DB-OTHER-PERFM QUERY OPTIMIZER DOES NOT IMPLEMENT VIA AN
   MF58842      LIC-DB-OTHER-F/QDBGETM-T/DBPMNATIVEACCESS-MSGMCH1825 ON A _R
   MF58812      OSP-DB-OTHER-UNPRED 0600DEAD VLOGS ARE GENERATED WHEN RUNNIN
   MF58812      LIC-DB-OTHER-PERFM SMP IMPLEMENTATION LEADS TO POOR SQL QUER
   MF58787      LIC-DB-OTHER QRY/400 fails with selection and ordering on co
   MF58771      OSP-DB-OTHER-PERFM CALLDBMAINTFOROPENOROPTIMIZE
   MF58752      OSP-DB-OTHER-INCORROUT NO RECORDS RETURNED FROM PARTITIONED
   MF58680      LIC-DB-OTHER-PERFM OPTIMIZER SELECTS TABLE SCAN RATHER THAN
   MF58544      LIC-DB-OTHER-PERFM VIEW CONTAINING SELECT LIST UDFS ALSO USE
   MF58476      LIC-DB-PERFM not using ICU index
   MF58380      LIC-DB-MSGMCH3203 CONNECT BY when running SMP
   MF58336      OSP-PERFM GROUPING QRY OVER SINGLE TABLE RUNS LONG WITH PLAN
   MF58333      OSP-DB-OTHER-F/QDBIOERRQO-T/QSQRUN2-MSGCPF503E MSGSQL0502-F/
   MF58330      LIC-DB-MSGMCH3203 during UPDATE statement
   MF58330      LIC-DB-INCORROUT DELETE under commit with subquery
   MF58247      LIC-DB-OTHER-PERFM QUERY OPTIMIZER DOES NOT USE ALL AVAILABL
   MF58228      LIC-DB-PERFM Internal Maintenance
   MF58191      OSP-DB-OTHER-F/QSQRUN3-T/QSQRUN3-RC6-MSGSQL0952 MSGSQL0952 F
   MF58174      OSP-DB-OTHER-F/ASSERT-T/QQQOOODBOP-MSGMCH3203 SQL MCH3203 QQ
   MF58140      LIC-DB-OTHER-PERFM AN INSERT STATEMENT WITH A SUBSELECT OVER
   MF58140      OSP-DB-OTHER-F/QSQRUN3-MSGSQL0243 A MSGSQL0243 MAY OCCUR WIT
   MF58140      OSP-F/DBPMTRAP-T/QQQOOODBOP-MSGMCH3203 MSGMCH3203 F/DBPMTRAP
   MF58140      OSP-DB SQL STATEMENT THAT USES HIERARCHICAL RECURSION FAILS
   MF58132      LIC-DB-MSGMCH3203 Delete from a Partitioned Table
   MF58130      LIC-DB-OTHER-F/DBPMTRAP-T/QQQOOODBOP-MSGMCH3203 MSGMCH3203
   MF58064      LIC-DB-MSGMCH3203 Max query and SMP
   MF57977      OSP-PERFM SPARSE MTI CHOSEN OVER PERMANENT INDEX RESULTING I
   MF57975      LIC-DB-OTHER-PERFM A COMPLEX QUERY PERFORMS POORLY.
   MF57975      OSP-DB-OTHER-T/QQQOOODBOP-RC1720-MSGMCH3203 WITH A LEFT OUTE
   MF57947      LIC-DB Internal Maintenance
   MF57932      OSP-DB-OTHER-F/ASSERT-T/QQQOOODBOP-MSGMCH3203 SELECT * FROM
   MF57920      OSP-DB-OTHER-F/DBPMTRAP-T/QQQOOODBOP-MSGMCH3203 SQL TRAPS IN
   MF57773      LIC-DB Internal Maintenance
   MF57704      LIC-DB-MSGMCH3203 Grouping Sets
   MF57622      LIC-DB Internal Maintenance
   MF57805      LIC-DB Internal Maintenance

Summary Information

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


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 #: MF59244

Modified date: 04 November 2014