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 > Adding temporary tablespace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-21-08, 23:37
tychak tychak is offline
Registered User
 
Join Date: Sep 2006
Posts: 4
Adding temporary tablespace

I've got an existing temporary tablespace as follows:

CREATE TEMPORARY TABLESPACE TBS_TMP_1 IN DATABASE PARTITION GROUP IBMTEMPGROUP PAGESIZE 32768 MANAGED BY DATABASE
USING (FILE '/db2/tbs_tmp_1.dbf'16000)
EXTENTSIZE 32
PREFETCHSIZE 32
BUFFERPOOL BUF_32K_TEMP;

I encounter out of temporary tablespace problem during performing index reorg, if I add another one like this:

CREATE TEMPORARY TABLESPACE TBS_TMP_2 IN DATABASE PARTITION GROUP IBMTEMPGROUP PAGESIZE 32768 MANAGED BY DATABASE
USING (FILE '/db2_new/tbs_tmp_2.dbf'80000)
EXTENTSIZE 32
PREFETCHSIZE 32
BUFFERPOOL BUF_32K_TEMP;

I heard that the use of temporary tablespace is round-robin. Can my approach solve my problem? (I've got difficulty to add extra containers to the existing tablespace or enlarge the exist containers)

Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-22-08, 08:14
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
First, please post your DB2 version and OS. I do not know if it will fix your particular problem. The recommendation is to create temporary table spaces using SMS instead of DMS. This allows them to grow as necessary.

Andy
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