473,473 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Where do I find out more?

I changed a varchar(255) to varchar(3000) an started receiving:

Warning: odbc_exec(): SQL error: [IBM][CLI Driver][DB2/LINUX] SQL1585N A
system temporary table space with sufficient page size does not exist.
SQLSTATE=54048 , SQL state 54048 in SQLExecDirect in
/var/www/html/GEM/animalEdit/animals_priv.php on line 207

Where do I find out more about the attributes of my temporary table
space and how to change them? Just RTFM is insufficient given the size
of TFM.

As an aside why can't I alter a column downward in size, only upward?
Sure, a table pass might be required, but otherwise it's theoretically
simple, right? Just change the value of syscat.columns.length or rather
the real table sysibm.syscolumns.length under laying syscat.columns.length.
Nov 12 '05 #1
3 8079
"Bob Stearns" <rs**********@charter.net> wrote in message
news:Vm***********@fe04.lga...
I changed a varchar(255) to varchar(3000) an started receiving:

Warning: odbc_exec(): SQL error: [IBM][CLI Driver][DB2/LINUX] SQL1585N A
system temporary table space with sufficient page size does not exist.
SQLSTATE=54048 , SQL state 54048 in SQLExecDirect in
/var/www/html/GEM/animalEdit/animals_priv.php on line 207

Where do I find out more about the attributes of my temporary table space
and how to change them? Just RTFM is insufficient given the size of TFM.

As an aside why can't I alter a column downward in size, only upward?
Sure, a table pass might be required, but otherwise it's theoretically
simple, right? Just change the value of syscat.columns.length or rather
the real table sysibm.syscolumns.length under laying
syscat.columns.length.


You will need a System Temporary Tablespace with page size of at least 8K.
The default system temporary tablespace is 4K and it is usually best to just
leave it that way, and create a new one that is larger. SMS is recommended
for system temporary tablespaces.

Instead of 8K, you could define it as 32K, which would handle any other
situation (including joins) where a larger tablespace is needed.

Before you create the new system temporary tablespace, you need to create a
bufferpool with a page size that matches the page size of the tablespace,
and refer to that bufferpool in the system temporary tablespace that you
define.
Nov 12 '05 #2
Mark A wrote:
"Bob Stearns" <rs**********@charter.net> wrote in message
news:Vm***********@fe04.lga...
I changed a varchar(255) to varchar(3000) an started receiving:

Warning: odbc_exec(): SQL error: [IBM][CLI Driver][DB2/LINUX] SQL1585N A
system temporary table space with sufficient page size does not exist.
SQLSTATE=54048 , SQL state 54048 in SQLExecDirect in
/var/www/html/GEM/animalEdit/animals_priv.php on line 207

Where do I find out more about the attributes of my temporary table space
and how to change them? Just RTFM is insufficient given the size of TFM.

As an aside why can't I alter a column downward in size, only upward?
Sure, a table pass might be required, but otherwise it's theoretically
simple, right? Just change the value of syscat.columns.length or rather
the real table sysibm.syscolumns.length under laying
syscat.columns.length.

You will need a System Temporary Tablespace with page size of at least 8K.
The default system temporary tablespace is 4K and it is usually best to just
leave it that way, and create a new one that is larger. SMS is recommended
for system temporary tablespaces.

Instead of 8K, you could define it as 32K, which would handle any other
situation (including joins) where a larger tablespace is needed.

Before you create the new system temporary tablespace, you need to create a
bufferpool with a page size that matches the page size of the tablespace,
and refer to that bufferpool in the system temporary tablespace that you
define.

Thanks a lot. Will talk with my SYSADMIN about this. As a temporary fix
I ran the following two commands, which fixed my immediate problem.
Probably poor choices for the parameters, but I'll let me SYSADMIN fix
it for good performance; I only need it to work on my development system.
create bufferpool largeone immediate size 32 pagesize 32k
go

CREATE SYSTEM TEMPORARY TABLESPACE TEMPSPACE2
PAGESIZE 32K
MANAGED BY SYSTEM
USING( '/db2home/db2inst1/db2inst1/NODE0000/SQL00002/SQLT320001.0' )
EXTENTSIZE 32
PREFETCHSIZE 32
BUFFERPOOL largeone
OVERHEAD 24.1
TRANSFERRATE 0.9
DROPPED TABLE RECOVERY OFF
GO
Nov 12 '05 #3
This means you are probably joining this row size (3000+) with other data
with the resul that the resulting row is larger than 4026 chars.
Your default temporary tablespace has a page size of 4096 which leads to the
fact that the query result set row size cannot fit in yoyr twmp space page
size.
Create a new system temporary tablespace with a page size of 8k, or16k, or
32k as you think fit and it will solve your problem.
RTFM
1) SQL Reference Manual Appendix. Gives all max size of different objects.
2) Tempspaces are discussed in the Admin. Guide.

Very easy:
D:\SQLLIB\BIN>db2 ? SQL1585n
SQL1585N A system temporary table space with sufficient page
size does not exist.

Explanation:

One of the following conditions could have occurred:

1. The row length of the system temporary table exceeded the
limit that can be accommodated in the largest system
temporary table space in the database.

2. The number of columns required in a system temporary table
exceeded the limit that can be accommodated in the largest
system temporary table space in the database.

The system temporary table space limits depend on its page size.
These values are:
Max Max Page size of
Record Cols temporary
Length table space
----------- ---- ------------
1957 bytes 244 2K
4005 bytes 500 4K
8101 bytes 1012 8K
16293 bytes 1012 16K
32677 bytes 1012 32K
User Response:

Create a system temporary table space of a larger page size
supported, if one does not already exist. If such a table space
already exists, eliminate one or more columns from the system
temporary table. Create separate tables or views, as required,
to hold additional information beyond the limit.

sqlcode : -1585

sqlstate : 54048

Also easy:
Do a Google search on "DB2" and "Temporay tablespace"
or "DB2" and "maximium row size"

HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Bob Stearns" <rs**********@charter.net> a écrit dans le message de news:
Vm***********@fe04.lga...
I changed a varchar(255) to varchar(3000) an started receiving:

Warning: odbc_exec(): SQL error: [IBM][CLI Driver][DB2/LINUX] SQL1585N A
system temporary table space with sufficient page size does not exist.
SQLSTATE=54048 , SQL state 54048 in SQLExecDirect in
/var/www/html/GEM/animalEdit/animals_priv.php on line 207

Where do I find out more about the attributes of my temporary table space
and how to change them? Just RTFM is insufficient given the size of TFM.

As an aside why can't I alter a column downward in size, only upward?
Sure, a table pass might be required, but otherwise it's theoretically
simple, right? Just change the value of syscat.columns.length or rather
the real table sysibm.syscolumns.length under laying
syscat.columns.length.


Nov 12 '05 #4

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

Similar topics

2
by: David List | last post by:
I posed a MySQL C API question a few days back here, and got zero answers. I assume it is because this is not the right place to ask such questions. Does anyone here know where I could ask C API...
2
by: Trev | last post by:
I have two tables, tblMTO and tblIMPORT_MTO. If I import an entire MTO into the import table I want to create a delta from it (i.e. leave only the changed items). I have a view (simplified) ...
4
by: Tom Walker | last post by:
I cannot get the WHERE statement to work correctly unless I use a literal with the LIKE. I want to use a working storage data name so that I can vary the WHERE statement. Example that works: ...
3
by: Xiangliang Meng | last post by:
Hi, all. In 1998, I graduated from Computer Science Dept. in a university in China. Since then, I've been using C Language for almost 6 years. Although I'm using C++ in my current job, I'm also...
77
by: Tark Siala | last post by:
hi i working with TreeView in VB6, and have good Properity Named (Key) with the Key i can goto Any Node i know hes Key. but in VB.NET i can find the Key :( please tell me where i can find the...
9
by: Scott Ribe | last post by:
OK, I'm using a pool of worker threads that each have a connection (from my own software, no PHP or anything like that involved), and a connection is in a state where all queries fail. Looking back...
57
by: TC | last post by:
I'd like to open a discussion about the state of the industry. For the past year, I've been unable to find competent Access developers available for hire. I'm worried about that. I think there's...
17
by: John Salerno | last post by:
Ok, I've been browsing through the MySQLdb docs, and I *think* I know the kind of code I need to write (connect, cursor, manipulate data, commmit, etc. -- although I probably need to get more...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
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
Oralloy
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,...
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...
1
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.