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 > Finding database users on informix

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-04, 22:29
rupee2003 rupee2003 is offline
Registered User
 
Join Date: Apr 2003
Location: Melbourne, Australia
Posts: 53
Finding database users on informix

How do i find out all the database users on informix..Like in oracle i can query the dba_users table to get the list of database users.

Is there any table where informix stores this info.
Reply With Quote
  #2 (permalink)  
Old 12-09-04, 02:24
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Hi,
Run the script in dbaccess

database sysmaster;
select
sysdatabases.name database,
syssessions.username,
syssessions.hostname,
syslocks.owner sid
from syslocks, sysdatabases , outer syssessions
where syslocks.rowidlk = sysdatabases.rowid
and syslocks.tabname = "sysdatabases"
and syslocks.owner = syssessions.sid
and sysdatabases.name = "stores" -- change to ur db name
order by 1;
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