473,396 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

online monitoring of sql statements

Hi !

I'm searching for way for to trace currently processed
sql-queries on a db2 instance/database.

I`m searching for a tool which has the following capabilities:

- show a list of all executed queries in the last <n> minutes
- this list should be sortable
- by frequency of occurrence
- by average over execution time
- by absolute execution time
- log these statements to a logfile

Where can i find such a tool ?

If such a tool doesn`t exist - which resources are available to
implement such a tool in java or perl-DBI ?

Best regards

Marc Schöchlin

--
I prefer non-proprietary document-exchange.
http://sector7g.wurzel6.de/pdfcreator/
http://www.prooo-box.org/
Feb 23 '06 #1
7 1586

Marc Schoechlin wrote:
Hi !

I'm searching for way for to trace currently processed
sql-queries on a db2 instance/database.

I`m searching for a tool which has the following capabilities:

- show a list of all executed queries in the last <n> minutes
- this list should be sortable
- by frequency of occurrence
- by average over execution time
- by absolute execution time
- log these statements to a logfile

Where can i find such a tool ?

If such a tool doesn`t exist - which resources are available to
implement such a tool in java or perl-DBI ?

Best regards

Marc Schöchlin

--
I prefer non-proprietary document-exchange.
http://sector7g.wurzel6.de/pdfcreator/
http://www.prooo-box.org/


There are a few options......

1) Activity Monitor from within Control Centre (right-click on
Database)
2) Table Functions......as best described in
http://www-128.ibm.com/developerwork...dm-0505melnyk/
3) db2pd command options
4) Monitor Tool.....
http://chuzhoi_files.tripod.com/

Graham Martin
http://www.ibm.com/software/data/db2/migration/

Feb 23 '06 #2
In article <11**********************@e56g2000cwe.googlegroups .com>,
graham_martin (gr***********@uk.ibm.com) says...

Marc Schoechlin wrote:
Hi !

I'm searching for way for to trace currently processed
sql-queries on a db2 instance/database.

I`m searching for a tool which has the following capabilities:

- show a list of all executed queries in the last <n> minutes
- this list should be sortable
- by frequency of occurrence
- by average over execution time
- by absolute execution time
- log these statements to a logfile

Where can i find such a tool ?

If such a tool doesn`t exist - which resources are available to
implement such a tool in java or perl-DBI ?

Best regards

Marc Schöchlin

--
I prefer non-proprietary document-exchange.
http://sector7g.wurzel6.de/pdfcreator/
http://www.prooo-box.org/




There are a few options......

1) Activity Monitor from within Control Centre (right-click on
Database)
2) Table Functions......as best described in
http://www-128.ibm.com/developerwork...dm-0505melnyk/
3) db2pd command options
4) Monitor Tool.....
http://chuzhoi_files.tripod.com/

Graham Martin
http://www.ibm.com/software/data/db2/migration/



Don't forget the event monitors. They are described in the online
docs at http://tinyurl.com/l2kz3
Feb 23 '06 #3
Udo
I'm searching for way for to trace currently processed
sql-queries on a db2 instance/database.


Our "Speedgain for DB2" provide this feature.

http://www.itgain.de/en/speedgain.html

Regards,
Udo

Feb 24 '06 #4
In article <11**********************@p10g2000cwp.googlegroups .com>,
Udo (ud*******@gmail.com) says...
I'm searching for way for to trace currently processed
sql-queries on a db2 instance/database.


Our "Speedgain for DB2" provide this feature.

http://www.itgain.de/en/speedgain.html

Regards,
Udo


Your website shows the menu option:
Technical Deteails / Architecture

Deteails ???
Feb 24 '06 #5
You should read this article:
http://www-128.ibm.com/developerwork...03kolluru.html

-Michel

Feb 24 '06 #6

Michel Esber wrote:
You should read this article:
http://www-128.ibm.com/developerwork...03kolluru.html

-Michel


Try db2top http://www.alphaworks.ibm.com/tech/db2top : you can save
queries to file (from the sessions and dynamic SQL screens).

Feb 24 '06 #7
Hi !

Thank you for helpful answers - i will evaluate the
different possibilities now :-))

Best regards

Marc Schoechlin
--
I prefer non-proprietary document-exchange.
http://sector7g.wurzel6.de/pdfcreator/
http://www.prooo-box.org/
Contact me via jabber: ms@256bit.org
Feb 25 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sven Dzepina | last post by:
Hi All, how I can make a simply HostWatch - system which use a mysql DB and send me an e-Mail if the Server goes off and again on? I began to programm this last night, but the MySQL inquiry is...
6
by: Randal | last post by:
Does anyone have a code sample of how one would "listen" to a TCP/IP session between an application on the local machine and a remote host. I'm looking for code that would allow me to specify a...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
1
by: amit.vasu | last post by:
Hi I have created a web serivces using .net framework 2.0. When I try to execute the web service I get the following error. Failed to start monitoring changes to 'e:\Default Web Site' because...
4
by: Raj | last post by:
Can we create an event monitor for statements in a partitioned environment? CREATE EVENT MONITOR stmt_event FOR STATEMENTS WRITE TO FILE '/home/rajm/event' ON PARTITION 0 GLOBAL DB21034E ...
9
by: colin.mcnulty | last post by:
Hi, I'm a SQL Server DBA, but I guess that won't buy me any friends round here huh? ;-) I've been asked to look at the SQL that's being executed on a DB2 database from a web app, specifically...
5
by: Ben | last post by:
I am building a web app using ASP.NET 2.0. One of the requirements is that we link to a third party vendor's site, display their content. let the user make choices on the vendors site and then...
3
by: Dmitri | last post by:
Hello! I have a developer that is playing around with some SQL statements using VB.NET. He has a test table in a SQL 2000 database, and he has about 2000 generated INSERT statements. When the...
0
by: Vinod Sadanandan | last post by:
STANDBY DATABASE MONITORING & PROTECION MODES (9iR2) This document is written for understanding and monitoring standby database configured with diffrent protection modes . MAXIMUM PROTECTION ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.