473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

sql0954

I am running v9 DPF on 64-bit SuSe Linux. I submit a particular
dynamic SQL statement and am getting a sql0954c error.

Query #1 has a particular predicate, Query #2 has a slightly different
predicate. The execution plans and costs are exactly the same. Query
#1 runs successfully. Query #2 fails at execution time. Is this
because Query #2 requires additional sub-agents at run time and cannot
get the additonal memory?

I cannot determine any difference from the query plans but do know
that cutting down the time period, and thus limitting the data volume,
resolves the problem.

I would like to better understand this before blindly doubling
applheapsz. Can someone shed some light on this for me? Thanks.
Aug 1 '08 #1
2 1759
If I change the MCT_MCT_ID from 1234 to 4567, It will fail at run
time. Also, If I shorten the date predicate to fewer days, then this
failing 4567 will then work. So I think that it is something at run
time, such as subagents being allocated and its hit or miss as to
whether that can be allocated. Any comments are appreciated.
I think your problem is the SUM() OVER()
In older versions/fixpacks DB2 would buffer the rows exclusively in teh
application heap.
Nowadays DB2 uses the sort heap (I think) and can spill into SYSTEM TEMP
(just like sort and hash-joins)

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Aug 5 '08 #2
On Aug 4, 10:44*pm, Serge Rielau <srie...@ca.ibm.comwrote:
If I change the MCT_MCT_ID from 1234 to 4567, It will fail at run
time. *Also, If I shorten the date predicate to fewer days, then this
failing 4567 will then work. *So I think that it is something at run
time, such as subagents being allocated and its hit or miss as to
whether that can be allocated. Any comments are appreciated.

I think your problem is the SUM() OVER()
In older versions/fixpacks DB2 would buffer the rows exclusively in teh
application heap.
Nowadays DB2 uses the sort heap (I think) and can spill into SYSTEM TEMP
(just like sort and hash-joins)

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Thanks. I am running V9.1 FP4 so I imagine that it must be a recent
change. Thanks for pointing this out.
Aug 5 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: info | last post by:
Hallo zusammnen, ich möchte einen VARBINARY-Wert aus einer Tabelle auslesen, diesen in einer Datei speichern und später wieder in eine Tabelle einfügen. Den Wert hole ich mit einem Select und...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.