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 > DB2 Reorg / HWM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-11, 14:36
db2mtrk db2mtrk is offline
Registered User
 
Join Date: Nov 2011
Posts: 27
DB2 Reorg / HWM

Hi,
DB2 9.7 fp 3a /Win 2008 R2

I have two tablespaces TBS1 and TBS2. TBS1 contain only tables and TBS2 contain only Indexes for the TBS1 tables.

I want to reorg one big table (around 40GB). If I do the offline TABLE reorg using TEMP, the HWM of the TBS2 will be effected ?

What is the best way to reorg this table without effecting any HWM?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 12-04-11, 21:05
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
As far as I know:

HWM can go up (or down) during offline table reorg if TEMP is not used. When TEMP is used, TBS1's HWM should not be affected. When indexes are rebuilt, db2 will use TEMP (if needed). So, TBS2's HWM should not be affected during index rebuild.
Reply With Quote
  #3 (permalink)  
Old 12-04-11, 22:44
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
If the tablespace was created in 9.7, HWM can be lowered, so it is not a big issue. If created before 9.7, even if db is upgraded to 9.7, then you may have to worry about HWM.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 12-05-11, 08:26
db2mtrk db2mtrk is offline
Registered User
 
Join Date: Nov 2011
Posts: 27
Thanks for your comments.
Marcus, I migrated the db from v8.2. So the TBS was not created in v9.7.
I am thinking to create new TBS and move all the tables/indexes. But its a big job as we have very limited maintenance time.

The perticular table in a REGULAR TBS but the INDEXES are in LARGE TBS.
When I reorg using TEMP, the TEMP TBS should be LARGE or REGULAR or it doesnt matter?

Thanks
Reply With Quote
  #5 (permalink)  
Old 12-05-11, 18:09
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by db2mtrk View Post
When I reorg using TEMP, the TEMP TBS should be LARGE or REGULAR or it doesnt matter?
I believe LARGE is only for permanent data and DMS.
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