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 > Informix > Identity My Session - onstat -u

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-19-09, 21:29
ehchn1 ehchn1 is offline
Registered User
 
Join Date: Sep 2004
Posts: 5
Identity My Session - onstat -u

Hi,

I have a multi-user application connecting to the database.
As such, the user id would all be the same for all the connections.

Running onstat -u would list all the sessions connecting
to the database. But the issue is, how can we identity which
is user1, user2, etc session?

Please advise.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 03-20-09, 06:38
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
onstat -g ses shows only the sessions...
onstat -u shows also session's threads,

If your application connects with only one user name, you can't find out, which session is user1, user2 etc.
But in generally, one session stands for one user(also depends on your application). If your users are connecting from different hosts, column 'hostname' in 'onstat -g ses' may help you.
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