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 find and kill a reorg process

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-11, 14:42
Tracygirl Tracygirl is offline
Registered User
 
Join Date: Aug 2011
Location: Columbus, OH
Posts: 22
How to find and kill a reorg process

I am running DB2 LUW 9.5. Today I accidentally executed a script that began reorging many tables in a production database. I did not know of a way to find the process that was running the reorg and kill it. I know how to kill the process, but I don't know how to find process I want to kill. Does anyone have any ideas?
Reply With Quote
  #2 (permalink)  
Old 10-24-11, 20:16
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Do not kill db2 processes. Instead, identify an application handle and terminate it using FORCE APPLICATIONS. One way is to capture an application snapshot and look for 'Statement = Reorganize' in the output.
Reply With Quote
  #3 (permalink)  
Old 10-26-11, 08:23
Tracygirl Tracygirl is offline
Registered User
 
Join Date: Aug 2011
Location: Columbus, OH
Posts: 22
Thanks db2girl, I have a followup question to your respone. I'm not sure how to identify the applicaiton handle. Can you please provide more detailed information on how to do this. I ran a 'db2 GET SNAPSHOT FOR ALL APPLICATIONS' I did not find a 'Statement = Reorganize' could that be because the reorg isn't currently running? Thanks again!
Reply With Quote
  #4 (permalink)  
Old 10-26-11, 08:32
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
grep for Reorganize in the snapshot output. If nothing comes back, then most likely reorg isn't currently running. You can also see some reorg info with db2pd -reorg and list history reorg.
Reply With Quote
  #5 (permalink)  
Old 10-26-11, 09:04
Tracygirl Tracygirl is offline
Registered User
 
Join Date: Aug 2011
Location: Columbus, OH
Posts: 22
Thanks db2girl!
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