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 > Activity Monitor usage

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-05, 19:19
mohd mohd is offline
Registered User
 
Join Date: Jul 2003
Posts: 63
Activity Monitor usage

Hi,

I am using DB2 V8.1 on windows.

I executed drop table stmt, it is hanging fro more than 45 mins.

I tried to figure out using Activity monitor , but could'nt find any monitoring task which can give me the process running under a particular user id.

can anyone tell me which monitoring task to use to find all the processes running under a particular user id.

Thx
__________________
Mohd
Reply With Quote
  #2 (permalink)  
Old 02-16-05, 19:52
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I would do a:

db2 list applications show detail

If you application (command line session, etc) is waiting on a lock, it should tell you.

Just to make sure that you don't wait on locks forever, you should change the LOCKTIMEOUT from -1 to 30 seconds (or something reasonable).

db2 connnect to db-name
db2 update db cfg using LOCKTIMEOUT 30
__________________
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
  #3 (permalink)  
Old 02-17-05, 00:37
mohd mohd is offline
Registered User
 
Join Date: Jul 2003
Posts: 63
Thx marcus ,

I am able to get a list of applications connected and their status.
But is a there a way to find out which sql statement is being exectued under each process or application.

I want to know what each process is doing.

Thx
__________________
Mohd
Reply With Quote
  #4 (permalink)  
Old 02-17-05, 00:44
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can do it with a GET SNAPSHOT using the APPLICATION APPLID appl-id and the DYNAMIC SQL options. See the Command Reference manual for details.

There is also nice tool that lets you see what is going on in real-time:

http://chuzhoi_files.tripod.com/
__________________
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
  #5 (permalink)  
Old 02-17-05, 11:14
mohd mohd is offline
Registered User
 
Join Date: Jul 2003
Posts: 63
Thx Marcus

This is very good tool for monitoring performance, active connections, locks , sqls in cache etc..


Btu this is for windows only, Do we have something similar tool for Solaris?


thx
__________________
Mohd
Reply With Quote
  #6 (permalink)  
Old 02-17-05, 11:48
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can run the tool from Windows connected to a remote DB2 database on Solaris.
__________________
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