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 > Identify user access to specific tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-04, 03:05
nitin_math nitin_math is offline
Registered User
 
Join Date: Nov 2004
Posts: 143
Identify user access to specific tables

Hi,

If I want to monitor few tables in such a way that I get the userids of the users who accessed the tables, number of times the table was hit etc.
I am using 7.31 IDS FD5.
Can somebody sugest.

Thanks in advance.

Nitin
Reply With Quote
  #2 (permalink)  
Old 12-09-04, 02:34
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Hi Nitin,
In dbaccess run the script

database sysmaster;
select dbsname, tabname, sum(pagreads) Reads, sum(pagwrites) Writes
from sysptprof
where dbsname="stores" -- ur db name
group by dbsname, tabname
Reply With Quote
  #3 (permalink)  
Old 12-13-04, 10:48
nog nog is offline
Registered User
 
Join Date: Nov 2004
Posts: 26
Have you seen Informix-Ispy? It might be a bit over the top for what you want but it will do what you're asking.
Reply With Quote
  #4 (permalink)  
Old 12-14-04, 03:03
nitin_math nitin_math is offline
Registered User
 
Join Date: Nov 2004
Posts: 143
Thanks for your suggestions. But the query will not give me the username who is accessing the table. Further I want to know pagreads and pagwrites mean number of rows selected from the table or number of times the table has been hit.

Can Informix-Ispy be used to monitor specific tables or we have to go for the complete database.

Thanks in advance.

regards,

Nitin
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