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 > Online Reorg And Write Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-26-07, 17:22
nivasreddy007 nivasreddy007 is offline
Registered User
 
Join Date: Jun 2007
Posts: 66
Online Reorg And Write Access

Hi friends,

As far as i know no read access and no write access are allowed when we do a reorg online(inplace).

But I saw the following statement in a db2 book which contradicts the above statement

reorg table db2user.employee index db2user.idxemp inplace allow write access


Does db2 allow connections on the table if it is online reorg..If it does not allow what is the usage of online reorg,We can as well use offline reorgs.
Please clarify.
Reply With Quote
  #2 (permalink)  
Old 10-28-07, 13:06
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Why do you think that access is not allowed while a table is being reorganized? That's the whole point of online-reorg. First hit when searching for "reorg table" in the DB2 manual says:
Quote:
An online or inplace table reorganization allows users to access the table while it is being reorganized.
http://publib.boulder.ibm.com/infoce...c/t0024775.htm

If you do a reorg with the INPLACE option, then the default is ALLOW WRITE ACCESS. You can change that to ALLOW READ ACCESS, which means that DB2 wouldn't have to worry about data changes during the reorg. http://publib.boulder.ibm.com/infoce...c/r0001966.htm

p.s: I guess you are working on DB2 for Linux, Unix, and Windows?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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