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 > Default table space for Temporary tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-24-04, 09:25
deepakatfre deepakatfre is offline
Registered User
 
Join Date: Jun 2004
Posts: 32
Question Default table space for Temporary tables

I am trying to create a Global Temporary table

DECLARE GLOBAL TEMPORARY TABLE SESSION.FRED
(
DEPT SMALLINT NOT NULL
)
ON COMMIT PRESERVE ROWS


I am getting the following error
A default table space could not be found with a page size of at least 4096
that authorization Id WASADMIN is authorized to use sqlstate 42727.

I have connected as WASADMIN.
Reply With Quote
  #2 (permalink)  
Old 06-24-04, 09:32
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Do you have a 4k user temporary tablespace?

If so, does WASADMIN have the right permissions?

Andy
Reply With Quote
  #3 (permalink)  
Old 06-24-04, 10:27
deepakatfre deepakatfre is offline
Registered User
 
Join Date: Jun 2004
Posts: 32
create user temporary tablespace fred
managed by database
using
(
file 'c:\db2\tempfred\fred1' 1000
);
grant use of tablespace fred to public;

source sql cookbook

I was then able to create Global temporary table,
a file c:\db2\tempfred\fred1 with size 4k has been created

Though I did this ? My question now is what is 1000 here.
Reply With Quote
  #4 (permalink)  
Old 06-24-04, 10:47
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The number of 4k pages that determine the size of the container.

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