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 > Who is using my db2 tables?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-11, 11:02
bigelda bigelda is offline
Registered User
 
Join Date: Jan 2011
Posts: 1
Who is using my db2 tables?

Is there a way to find out who is accessing various objects in my db2 database?

What I want to know is:
- which tables are being accessed by which users
- what the frequency of that access may be (or at least the last time they accessed the table)
- and, if possible, which fields in the table they are using

When I try to search on statistics for db2 I haven't run into anything related to individual users. Maybe I am just not searching on the right keywords.

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-17-11, 12:33
dgunas dgunas is offline
Registered User
 
Join Date: Dec 2008
Location: Chennai
Posts: 110
DB2 Installation - V9.7 fp3a

Hello,

Finally we are going to migrate our DB2 v8.2 to v9.7 fp3a.
The new version is going to be in a WIN 2008 64bit , in the virtual machine which is ESXi4.1 (Vsphere) Enterprise Plus.

The question is, are there any special setup or configuration for the DB2 Performance wise need to be considered ?

Also, when I install the db2, need to be a local admin account ? or service account?

Please advise.

Thanks, Valan.
__________________
Reply With Quote
  #3 (permalink)  
Old 01-17-11, 16:30
db2topgun db2topgun is offline
Registered User
 
Join Date: Jul 2009
Posts: 10
Use db2audit checking or on AIX this tool will make it simple for you: http://www.db2topgun.com/dbapf10
Reply With Quote
  #4 (permalink)  
Old 01-17-11, 18:00
dgunas dgunas is offline
Registered User
 
Join Date: Dec 2008
Location: Chennai
Posts: 110
Quote:
Originally Posted by dgunas View Post
Hello,

Finally we are going to migrate our DB2 v8.2 to v9.7 fp3a.
The new version is going to be in a WIN 2008 64bit , in the virtual machine which is ESXi4.1 (Vsphere) Enterprise Plus.

The question is, are there any special setup or configuration for the DB2 Performance wise need to be considered ?

Also, when I install the db2, need to be a local admin account ? or service account?

Please advise.

Thanks, Valan.
Please ignore this question. This is my mistake. Sorryl.
__________________
Reply With Quote
  #5 (permalink)  
Old 02-15-11, 10:17
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Quote:
Originally Posted by bigelda View Post
Is there a way to find out who is accessing various objects in my db2 database?

What I want to know is:
- which tables are being accessed by which users
- what the frequency of that access may be (or at least the last time they accessed the table)
- and, if possible, which fields in the table they are using

When I try to search on statistics for db2 I haven't run into anything related to individual users. Maybe I am just not searching on the right keywords.

Thanks
I will not recommend you to run Db2audit due to performance issues we can see while auditing. Instead a much simpler way is to take periodic snapshot for applications / dynamic sqls and from there you can get the sqls being run with details of users/clients. If you want the details for a particular period, you can turn on event monitor for statements and get the same details.
__________________

Jayanta Datta
DB2 UDB DBA
IBM India, Global Delivery
New Delhi
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