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 session ID in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-29-06, 03:57
joejoe02 joejoe02 is offline
Registered User
 
Join Date: Apr 2006
Posts: 10
How to find session ID in DB2

Can anyone tell me how to get the session ID in DB2 ? Thank you for your helping. I can only get session ID in oracle T.T , but don't know how to get in DB2. The version of DB2 is V8.2.
Reply With Quote
  #2 (permalink)  
Old 05-29-06, 05:23
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
If you are talking about the id of the current session then you can try the following:

db2 "select application_id() as appl_id from sysibm.sysdummy1"

Thanks,
Jayanta Datta
New Delhi, India
Reply With Quote
  #3 (permalink)  
Old 05-29-06, 11:09
joejoe02 joejoe02 is offline
Registered User
 
Join Date: Apr 2006
Posts: 10
thanks !! It really help me !
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