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 table.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-05-11, 15:03
georgipa georgipa is online now
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
Who is using my table.

Hi Colleagues,

I am using DB2 9.5 on AIX 5.3, somebody can say me how to know what user is using my table.

Thank you for advanced.
Reply With Quote
  #2 (permalink)  
Old 05-05-11, 15:39
rajaraja_cholan rajaraja_cholan is offline
Registered User
 
Join Date: Dec 2008
Posts: 31
use event monitor?
Reply With Quote
  #3 (permalink)  
Old 05-05-11, 15:47
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by georgipa View Post
how to know what user is using my table.
What do you mean by "using my table"?
Reply With Quote
  #4 (permalink)  
Old 05-05-11, 15:54
georgipa georgipa is online now
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
what applications or session have to open my table.

Thank you
Reply With Quote
  #5 (permalink)  
Old 05-05-11, 15:56
georgipa georgipa is online now
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
There are any select where show me who have to open my table?
Thank you.
Reply With Quote
  #6 (permalink)  
Old 05-05-11, 18:41
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I don't know what "open a table" means. You can see dynamic statements that reference the table in the package cache using db2pd, then find applications that execute them by the statement anchor ID (anchID). Alternatively, you could set up an activity event monitor and check statements as they are being executed.

I'm not sure how to deal with static SQL though.

I wonder what is the purpose of this.
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