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 4 5862 sa**********@gm ail.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.
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 sa**********@gm ail.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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. Throughout the project I'm working on, I
often find I need a temporary table displayed in a report, something
that I cannot seem to do. Since temporary tables are so useful, I
cannot imagine Crystal Reports wouldn't have a way to get such
|
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 equivalent to the SQL 'with' using TSQL? If there is not
one, what is the TSQL solution to creating a temporary table that is
associated with an SQL statement? Examples would be appreciated.
Thank you!!
|
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 can't perform that action
because there's a pending operation on the temp table (the cursor reading it
I assume)
And if you close the cursor in order to be able to drop the temp table, you
destroy the result table.
If anyone can think of a...
|
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 using these is
running and then our Web application fires off, the Temp table is getting
deleted.
My thought was to change the Global Temporary Table to a local temporary
table (# instead of ##) to minimize the amount of change to these...
|
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 be grateful.
My function creates a couple of temporary tables, uses them, and drops
them before returning:
| |
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 of my procedure
identifies the # of fields necessary. That is working correctly. The
second part of the procedure actually attempts to create the table.
This is where my issue is.
If I attempt to create the table as a non-temporary table,...
|
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 INTEGER,
|
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 workspace. This workspace uses ODBCDirect which bypasses the JET engine completely. However, these objects are temporary and are destroyed at the end of the function. In order to get the reports working I launch the reports before the object is...
|
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 point-based program for our employee attendance policy. That
is, when an emp is late, they get 1/2 point, when they skip work, they
get 3 points, etc. At certain point thresholds, they receive different
discipline steps... for example, when they hit 6...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |