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 > How to pause online index reorg?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-08, 03:55
akaraivanov akaraivanov is offline
Registered User
 
Join Date: Nov 2003
Posts: 42
How to pause online index reorg?

Hi All,

I'm using db2 v8 on linux. I can see that it is possible to pause online (i.e. inplace) table
reorg and then resume it. But the same functionality is not avaiable for index reorgs.
Is there any workaound for this? I have a script that reorgs the database and pauses the reorg if the CPU load gets too high. I miss the pause mechanism for the index reorgs.

I have an extra question. Is it recorded somewhere in the system catalog when was the last time a table/index reorg done?

Thanks in advance.

Alexander
Reply With Quote
  #2 (permalink)  
Old 07-16-08, 05:57
d_mohan81 d_mohan81 is offline
Registered User
 
Join Date: Feb 2007
Posts: 31
This for the Extra question:

you can use
db2pd -db <dbname> -reorg or

select * from table (sysproc.snapshot_tabreorg('dbname',-1)) as tb
__________________
Regards
Mohan
Reply With Quote
  #3 (permalink)  
Old 07-16-08, 09:25
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
list history will tell last reog done
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #4 (permalink)  
Old 07-17-08, 04:13
akaraivanov akaraivanov is offline
Registered User
 
Join Date: Nov 2003
Posts: 42
thanks

Thank you for the replies!

About my main question I guess best I can do is to set utility throttling to min value, find best time at night when the system is least used and hope for the best.

In v9 it is possible to reorg an index at a time and eventually avoid reorg if the system seems used by the users.

Are there any other handles I can use to minimize impact on the production system?
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