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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-23-04, 12:22
techno techno is offline
Registered User
 
Join Date: Jan 2004
Posts: 1
Locked users table.

Could anyone tell me which table gives (or how to find out) the statistics of active-connection by a user; any tables being locked by user?

Oracle equivalent : v$locked_object, v$session etc..

Thanks for your help.
Reply With Quote
  #2 (permalink)  
Old 01-23-04, 13:06
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Best way I have found is to use this freeware monitor:

http://chuzhoi_files.tripod.com/index.html

Andy
Reply With Quote
  #3 (permalink)  
Old 01-23-04, 13:52
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: Locked users table.

db2 list applications show detail

for connected users

db2 get snapshot for locks or tabes on database db-name

for locks and tables.

HTH

dollar

Quote:
Originally posted by techno
Could anyone tell me which table gives (or how to find out) the statistics of active-connection by a user; any tables being locked by user?

Oracle equivalent : v$locked_object, v$session etc..

Thanks for your help.
Reply With Quote
  #4 (permalink)  
Old 01-25-04, 17:49
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Locked users table.

If you have V8 , then you can use the following table functions

SNAPSHOT_LOCK
SNAPSHOT_TABLE

Refer the db2 manuals or 'google' for these terms

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 01-26-04, 04:56
blom0344 blom0344 is offline
Registered User
 
Join Date: Jan 2003
Location: Zutphen,Netherlands
Posts: 256
Holy cows,

That is some nice piece of freeware, Andy

Thanks for pointing to it...............
__________________
Ties Blom
Senior Application Developer BI
Getronics Healthcare
DB2,ORACLE,Powercenter,BusObj,Access,
SQL, SQL server
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