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 > pid

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-23-06, 08:49
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
pid

does anyone knows an easy way to get the pid for the instance in a windows platform. I know it is in the db2diag.log, but having a tool renaming this file, to avoid having a large file, there might be no db2diag.log at a specific moment. it would not be easy to find the latest rename file.
Thanks for all info
Best Regards, Guy Przytula
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #2 (permalink)  
Old 08-24-06, 05:02
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,279
I'm not sure I really understand what it is you're asking for. But if you want to get the current process/session ID, you can do that with
Code:
select application_id() as appl_id from sysibm.sysdummy1
__________________
With kind regards . . . . . SQL Server 2000/2005/2008/2008 R2 Earned beers: 16
Wim
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth
Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2.
Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages
Reply With Quote
  #3 (permalink)  
Old 08-28-06, 06:28
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
pid

this query will return the applid for this application.
what I need is the process id (pid) in windows for this instance, as reflected in db2diag.log and tag pid:xxx
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #4 (permalink)  
Old 08-30-06, 01:19
renga7 renga7 is offline
Registered User
 
Join Date: Jun 2001
Posts: 20
Try pslist from sysinternals. It lists the processes running on a system

http://www.sysinternals.com/Utilities/PsList.html
__________________
Renga
Reply With Quote
  #5 (permalink)  
Old 08-30-06, 02:03
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
When using the Cygwin environment, the "ps -W" command gives the "WINPID" value for all processes, which is the Windows process ID. Search for the "db2inst" process in that list.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
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