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 the user

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-24-09, 05:24
ratheeshknair ratheeshknair is offline
Registered User
 
Join Date: Jan 2009
Posts: 153
how to find the user

Hi Experts,

When i used db2pd i got the queries executed.How can i find the person or IP from which the statement is executed and when?

TIA
Reply With Quote
  #2 (permalink)  
Old 09-24-09, 08:42
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Statements in the dynamic cache can be potentially executed by many users, connecting from different IP addresses. To see who is _currently_ executing which statement, use db2pd -apinfo or the application snapshot.
Reply With Quote
  #3 (permalink)  
Old 09-25-09, 01:32
ratheeshknair ratheeshknair is offline
Registered User
 
Join Date: Jan 2009
Posts: 153
Hi Nick,
Thanks for the reply. I didnt find db2pd -apinfo or application snapshot.

Please help
Reply With Quote
  #4 (permalink)  
Old 09-25-09, 09:41
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
db2pd -d <db> -apinfo works for db2v9.5 FP1 and later.

I mostly use get snapshot for applications on <db>

or SYSIBMADM.SNAPAPPL_INFO

regards

DBFinder
Reply With Quote
  #5 (permalink)  
Old 10-08-09, 01:50
ratheeshknair ratheeshknair is offline
Registered User
 
Join Date: Jan 2009
Posts: 153
Thanks DBFinder :-)
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