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 > in online-reorge how can I specify the use tablespace ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-20-06, 14:15
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
in online-reorge how can I specify the use tablespace ?

Hi All,

I use db2 v8.2.3 and aix5.2

I am trying to use online reoge as:

1- db2 "reorge table xxxxx inplace allow write access" but I could not find how can I specify the "USE tablespace-name" it seems it does not work with "inplace allow write access" please help

2- as you know the online reorge is asyncronouse, is there any command I can recognise which table is reorginging at any time.

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-21-06, 02:18
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
reorg

for q2 : db2 list utilities show detail should indicate
for q1 I will have a look
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 09-21-06, 02:22
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
reorg

as the syntax diagram indicates : use tbspace can only be specified
with allow no access - read access
it will be in the same tbspace as the table resides in
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #4 (permalink)  
Old 09-21-06, 09:06
jthakrar jthakrar is offline
Registered User
 
Join Date: Mar 2004
Posts: 46
Its not possible to specify a tablespace for online reorg because of the way the online reorg has been designed. What it does is that it sequentially scans through the original table and builds the new extents/pages in the same tablespace - so when the scan (of the original table) and build (of the table new table) is complete, it just has to switch some pointers to replace the original table.
Reply With Quote
  #5 (permalink)  
Old 09-21-06, 09:16
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Quote:
Originally Posted by jthakrar
Its not possible to specify a tablespace for online reorg because of the way the online reorg has been designed. What it does is that it sequentially scans through the original table and builds the new extents/pages in the same tablespace - so when the scan (of the original table) and build (of the table new table) is complete, it just has to switch some pointers to replace the original table.

Thank you so much Jthakrar and guyprzytula.

I tried db2 "list utilities show detail" but it does not show anything!!!!!!
Reply With Quote
  #6 (permalink)  
Old 10-11-06, 16:48
wishkid2000 wishkid2000 is offline
Registered User
 
Join Date: Jun 2005
Posts: 3
Try "db2pd -d <databasename> -reorg"
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