Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / November 2006

Tip: Looking for answers? Try searching our database.

Temporary Systemtablespace is too small

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthias Dennig - 30 Nov 2006 15:05 GMT
Hello there,

I have an issue, that a big select statement causes the followong
error:"SQL1585N  Es ist kein temporärer Systemtabellenbereich mit
einer ausreichenden Seitengröße vorhanden"
So I created one using:

CREATE  SYSTEM TEMPORARY  TABLESPACE SMOTBSMSST32 PAGESIZE 32 K
MANAGED BY SYSTEM
  USING ('D:\DB2\NODE0000\SQL00001\SMOTBSMSST32' )
  EXTENTSIZE 16
  OVERHEAD 12.67
  PREFETCHSIZE AUTOMATIC
  TRANSFERRATE 0.18
  BUFFERPOOL  SMOBP32 ;

The used Bufferpool was created with "CREATE BUFFERPOOL "SMOBP32"  SIZE
100 PAGESIZE 32 K NOT EXTENDED STORAGE;"

So I think I have done all necessary work to get my big SQL Statement
working. The result set contains about 140 columns, containing some
columns of a table which itself needs to have a tablspace with 32k
pagesize. So, if I ever want to use this tabel in a select, I have to
look, that a record in the result set is not bigger than 32k. Am I
right?
Im using "DB2 v8.1.7.445", "s040812", "WR21342" und FixPak "7"
Oracle doesn't have any problems on the same big SQL Statement.

Can I define a temporary tabelspace bigger tha 32k pagesize? I don't
want to change the SQL statement, because it is dynamically generated
inside an EJB application using an intellibo library.

Thanx for your help

Matthias
Stuttgart, Germany
Brian Tkatch - 30 Nov 2006 16:00 GMT
> Hello there,
>
[quoted text clipped - 32 lines]
> Matthias
> Stuttgart, Germany

One thing to check is row size. If any of the returned COLUMNS use a
FUNCTION such as LEFT(), REPLACE(), you can try wrapping them in a
VARCHAR(func(<col>), 100) or something to limit the record length.

B.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.