Results 1 to 5 of 5

Thread: pid

  1. #1
    Join Date
    Jun 2006
    Posts
    471

    Unanswered: 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

  2. #2
    Join Date
    Nov 2004
    Posts
    1,427
    Provided Answers: 4
    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/2012
    Wim

    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

  3. #3
    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

  4. #4
    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

  5. #5
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    1,126
    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/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •