IBM Support

MA48804 - OSP-DB-OTHER-F/DBOPAFFINITY-T/QQQOOODBOP-RC1720-MSGMCH3203
RUNNING A SELECT WITH GROUPINGSETS AND ALWCPYDTA YES

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 APAR (Authorized Program Analysis Report)

Abstract

OSP-DB-OTHER-F/DBOPAFFINITY-T/QQQOOODBOP-RC1720-MSGMCH3203
RUNNING A SELECT WITH GROUPINGSETS AND ALWCPYDTA YES

Error Description

A CTE with aggregation, join and union and grouping sets fails  
with                                                            
msgMCH3203 x/1720 f/dbopaffinity                                
t/qqqooodbop-qqqoooinv-calldbmaintforopenoroptimize            
if executed with ALWCPYDTA set to *YES                          

Problem Summary

A CTE with aggregation, join and union and grouping sets fails  
with                                                            
msgMCH3203 x/1720 f/dbopaffinity                                
t/qqqooodbop-qqqoooinv-calldbmaintforopenoroptimize            
if executed with ALWCPYDTA set to *YES                          

Problem Conclusion

A optimization strategy used for this particular customer query,
the Grouping Set strategy, was not making a proper copy of an  
internal optimization object before using it to cost various    
grouping set plans.  For the most part the lack of a separate,  
modifiable copy of this object would have self corrected in a  
subsequent strategy and it would not have been discovered as a  
problem but because this query was run as ALWCPYDTA *YES, the  
optimizer used this internal object (not a modifiable copy)    
before it had a chance to 'self correct'.   This problem has    
been corrected.                                                

Temporary Fix

Comments

Circumvention


PTFs Available

R720 MF68917  1000

R730 MF68203  1098

R740 MF68211  1091

Affected Modules


         
         

Affected Publications

Summary Information

Status............................................CLOSED PER
HIPER...........................................No
Component..................................9400DG3DBMF6
Failing Module..........................RCHMGR
Reported Release...................R730
Duplicate Of..............................




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, 2020, 2021 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

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.2.0; 7.3.0; 7.4.0","Product":{"code":"SWG60","label":"IBM i"},"Component":"9400DG3","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
02 October 2021