473,795 Members | 2,630 Online
Bytes | Software Development & Data Engineering Community
+ 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.ph p 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.syscolum ns.length under laying syscat.columns. length.
Nov 12 '05 #1
3 8111
"Bob Stearns" <rs**********@c harter.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.ph p 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.syscolum ns.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**********@c harter.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=5404 8 , SQL state 54048 in SQLExecDirect in
/var/www/html/GEM/animalEdit/animals_priv.ph p 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.syscolum ns.length under laying
syscat.column s.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>d b2 ? 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**********@c harter.net> a écrit dans le message de news:
Vm***********@f e04.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.ph p 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.syscolum ns.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
2105
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 questions? I haven't been able to find a mailing list or newsgroup specifically dealing with the MySQL C API. -- Med venlig hilsen / Best regards
2
13963
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) SELECT dbo.tblIMPORT_MTO.ImportID, dbo.tblIMPORT_MTO.MTONo, dbo.tblIMPORT_MTO.Rev AS New_Rev, dbo.tblMTO.Rev AS Old_Rev FROM dbo.tblIMPORT_MTO LEFT OUTER JOIN dbo.tblMTO ON dbo.tblIMPORT_MTO.MTONo = dbo.tblMTO.MTONo Now to get all rows...
4
25709
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: WHERE DSNAME LIKE 'ABC%' Example that does not work:
3
2287
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 interested in understanding C more and deeper at the same time. In the past half year, I decide to improve myself on C, read some books on C and digest some posts on comp.lang.c and comp.lang.c++. Now, I feel I have a better insight on C than...
77
14452
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 key in TreeView.Net... ----------------------------------------------- Best Regards From Tark
9
1503
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 through the log I find the first entry where this connection has an error (there are successful queries on it prior, so it's not the first query): 2004-06-21 14:51:19 LOG: query: begin; set constraints all deferred; insert into...
57
3828
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 great demand right now, and that's keeping the good developers busy, but that's not enough to explain the situation. Whenever I post an Access job, I get lots of responses from .NET developers, back-end database people, and web developers. They...
17
1950
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 familiar with actual SQL commands too), but here's my problem: I don't know where these scripts are supposed to be executed, or how they are supposed to 'find' the database. Really, I have the same question for two different scenarios: accessing...
41
18231
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
0
9672
marktang
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...
1
10164
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,...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
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, 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...
1
7540
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 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...
0
6780
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
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...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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 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.