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 > Db2 Users

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-11-07, 11:30
d_mohan81 d_mohan81 is offline
Registered User
 
Join Date: Feb 2007
Posts: 31
Db2 Users

Hi,
Is there any way to know how many users are present in Datatabase.?(eg. Any catalog tables,Like in oracle dba_users..?)

Version: 8.1.1.2.4
Fix pack level : 3
__________________
Regards
Mohan
Reply With Quote
  #2 (permalink)  
Old 04-11-07, 13:21
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You can query the connections using the LIST APPLICATIONS command or by accessing the respective snapshot table functions.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 04-11-07, 15:11
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by d_mohan81
Hi,
Is there any way to know how many users are present in Datatabase.?(eg. Any catalog tables,Like in oracle dba_users..?)

Version: 8.1.1.2.4
Fix pack level : 3
In DB2, user ids are controlled at the OS level. However, the OS user id must be granted access to an object within DB2.

You could look at the syscat.dbauth and syscat.tableauth (and other views that end in AUTH) to see which users have been granted access to a DB2 resource. The complete list of catalog views in the SQL Reference Vol 1 Appendix D.

For sysadmin access that may have been granted, look in the dbm config.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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