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 > Killing a process

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-05, 11:02
rhayabusa rhayabusa is offline
Registered User
 
Join Date: Feb 2005
Posts: 21
Killing a process

In the datawarehouse, an update process is running. It's taking too long, so I want to kill it. Does anyone know how to do this? What happens if it is demoted to development while it is running? Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-18-05, 12:15
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
kill

db2 list applications show detail
db2 force application(xx)
this will do
Best Regards, Guy Przytula
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #3 (permalink)  
Old 02-18-05, 12:51
rhayabusa rhayabusa is offline
Registered User
 
Join Date: Feb 2005
Posts: 21
Thanks a lot. How about demoting a process while it is running?
Reply With Quote
  #4 (permalink)  
Old 02-18-05, 15:14
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Quote:
Originally Posted by rhayabusa
Thanks a lot. How about demoting a process while it is running?
No no, do not do that , if you are runing an update process and you kill the process with force command , your process will go to rollback process and you will be in trouble, you should kill the process (as a root) by unix command

kill -9 .....
sometime even this command does not work and you should use db2_kill command
at the worst case you should reboot the system.
Reply With Quote
  #5 (permalink)  
Old 02-18-05, 16:03
rhayabusa rhayabusa is offline
Registered User
 
Join Date: Feb 2005
Posts: 21
Thanks a bunch M RAS. I appreciate the help.
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