Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Re: about onlin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 9071 of 9520
Post > Topic >>

Re: about online reorg

by Ian <ianbjor@[EMAIL PROTECTED] > Jul 10, 2008 at 08:33 AM

jane wrote:
> Hi,
> 
> Just wondering, is there any way to do the online reorg to use
> tem****ary tablespace instead of tablespace table existed.
> 
> since that is really a waste to have some space allocated aside only
> for the online reorg ..
> 
> 
> 
> I know offline reorg could use tem****ary tablespace ..is that so
> difficult to add this feature to online reorg?
> 
> maybe had some reason ..
> 

You're misunderstanding the key difference between offline and inplace
reorg.

Offline reorg creates a copy of the *entire* table, and then drops the
old copy of the table.  If you don't have enough space in the original
tablespace to create this copy (or are really concerned about the
tablespace HWM) you can tell the offline reorg to build a copy in a
tem****ary tablespace.  When it does this, it builds the copy in the
temp tablespace, drops the original table, and then copies the data
from the temp tablespace back to the original data tablespace.


For online (a.k.a. inplace) reorg, DB2 does the cleanup a page at a
time.  So instead of having overhead of 2*table size, you only have
a few extra pages overhead.  Therefore, it makes no sense to use a
tem****ary tablespace for an inplace reorg.
 




 4 Posts in Topic:
about online reorg
jane <esthershensh@[EM  2008-07-09 14:04:20 
Re: about online reorg
Ian <ianbjor@[EMAIL PR  2008-07-10 08:33:46 
Re: about online reorg
jane <esthershensh@[EM  2008-07-17 08:50:14 
Re: about online reorg
Ian <ianbjor@[EMAIL PR  2008-07-18 11:21:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 20:56:02 CST 2008.