If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SQL1585N A system temporary table space with sufficient page size does not exist.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-12, 06:56
dbBash dbBash is offline
Registered User
 
Join Date: Mar 2009
Posts: 15
SQL1585N A system temporary table space with sufficient page size does not exist.

I am getting the following error while executing a query.

SQL1585N A system temporary table space with sufficient page size does not exist.

We have a System temp tablespace created with 32k page size:

Tablespace ID = 14
Name = STEMP32K
Type = System managed space
Contents = System Temporary data
State = 0x0000
Detailed explanation:
Normal
Total pages = 1
Useable pages = 1
Used pages = 1
Free pages = Not applicable
High water mark (pages) = Not applicable
Page size (bytes) = 32768
Extent size (pages) = 32
Prefetch size (pages) = 32
Number of containers = 1


Is there any way to execute the same query without reducing the number of columns?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-27-12, 06:59
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
If the width of the result set is wider than 32K, then you are SOL.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 01-27-12, 07:25
dbBash dbBash is offline
Registered User
 
Join Date: Mar 2009
Posts: 15
Thanks..

Just checked, the resultset is indeed more than 32k..
Reply With Quote
  #4 (permalink)  
Old 01-30-12, 01:40
dbBash dbBash is offline
Registered User
 
Join Date: Mar 2009
Posts: 15
On further analysis, I found that the query with resultset more than 32000 length can be executed in DB2.
But if the query requires sorting(order by clause), then it uses the system temporary tablespace and hence it will give the error.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On