472,958 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Temporary table issue

Hi,
One query is failing on the database and its a long query which was
running fine earlier. One possible reason we can think of is increase
in data in tables in query.
It is failing with following error:-
SQL0659N Maximum size of a table object has been exceeded.
SQLSTATE=54032 (SQLSTATE 54032) -659

Earlier we were having the temp file system size of around 60 GB. then
once query failed with the error "File system full"

so we increased it to 85 GB. now we got the above "Maximum size of a
table object has been exceeded" error.

My study suggest me that it is due to the temporarry table getting
bigger than 64 GB. Is SQL possess some limit on temporary table size
also as for normal tables it is 64 GB.
If Yes, is there any other way to increase the temp table size more
than 64 GB.

Thanks
Sandeep
Sep 18 '08 #1
4 5651
Ian
sa**********@gmail.com wrote:
Hi,
One query is failing on the database and its a long query which was
running fine earlier. One possible reason we can think of is increase
in data in tables in query.
It is failing with following error:-
SQL0659N Maximum size of a table object has been exceeded.
SQLSTATE=54032 (SQLSTATE 54032) -659

Earlier we were having the temp file system size of around 60 GB. then
once query failed with the error "File system full"

so we increased it to 85 GB. now we got the above "Maximum size of a
table object has been exceeded" error.

My study suggest me that it is due to the temporarry table getting
bigger than 64 GB. Is SQL possess some limit on temporary table size
also as for normal tables it is 64 GB.
Temporary tables share the same limits as normal tables. 64 Gb is the
limit for a 4kb page. Larger page sizes will have larger object limits;
so using an 8kb page should theoretically help your query complete.
Also note that this limit is per database partition, so if you're using
DPF, your limit increases with the number of database partitions.

However, I might also look at the query. If DB2 is building a 64 Gb
system temp table, maybe you should look at why it's doing that?
You may be able to solve your problem and improve performance at the
same time.

Sep 18 '08 #2
HI Sir,
Thanks for such a fast reply. Just wanted to discuss you some issues
related to it.
In under consideration query, all tables are of 4K size but one which
is of 16 K size.
So I have some doubt:
Which temporary tablespace my query will use for sorting the data or
some intermediate process. (in my view it should use 16 K temp
tablespace, we are having both temp tablespace 4K and 16 K).
Waiting for reply
Thanks
Sandeep
Sep 18 '08 #3
Ian
sa**********@gmail.com wrote:
Which temporary tablespace my query will use for sorting the data or
some intermediate process. (in my view it should use 16 K temp
tablespace, we are having both temp tablespace 4K and 16 K).
DB2 will use the tablespace with the smallest page size that can hold
the temporary table.

Note, just because a table requires a 16kb page, does not mean that
temporary tables resulting from queryies against that table require a
16kb page. Some might, but many won't.
Sep 18 '08 #4
Hi Sir,

Thanks a lot :)

Sep 19 '08 #5

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

Similar topics

2
by: airkart | last post by:
Hello, I've scoured groups and the web, and haven't found a question like mine answered. I'm using Visual Studio 2003 with the Crystal Reports it comes bundled with and SQL Server 2000....
11
by: randi_clausen | last post by:
Using SQL against a DB2 table the 'with' key word is used to dynamically create a temporary table with an SQL statement that is retained for the duration of that SQL statement. What is the...
2
by: Anthony Robinison | last post by:
Looking for a better way to implement this stored procedure. The issue is that at the end of the procedure, when you try to drop the temp table after you open the cursor, you get an error stating...
5
by: Adam W. Saxton | last post by:
We have a few existing stored procedures which create a Global Temporary Table (##), do some work on the table and then delete the table. The issue we have is that if our Server application is...
2
by: Phil Endecott | last post by:
Dear PostgreSQL experts, I have encountered a problem with temporary tables inside plpgsql functions. I suspect that this is a known issue; if someone could confirm and suggest a workaround I'd...
3
by: pinney.colton | last post by:
I would like to create a stored procedure which creates a temp table to store some XML. The # of fields of XML is dependent upon the contents of another table in the application, so the first part...
5
by: Rahul B | last post by:
Hi, I have very little knowledge about creating Procedures/functions in DB2. When i tried to create the test function like CREATE FUNCTION GET_TEST (P_TEST_ID INTEGER, P_SEL_OR_SORT...
1
by: popwhub | last post by:
I am having problems printing some reports from my application that are generated from temporary tables. The application has an Access FE and a SQL Server BE. The current method uses a temporary...
3
by: murch.alexander | last post by:
Hi all, I posted here last week with a simplified version of the following. I didn't get many responses, so I'm going for the more detailed explanation. Here's the problem: We have a...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.