473,406 Members | 2,956 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,406 software developers and data experts.

Which SQL's are executing and what are they waiting on?

In some other databases (like Oracle and SQL Server), there is a view
that show all SQL's currently executing, who is executing the SQL, and
what the SQL is waiting on (wait on read, wait on lock, wait while
writing to backup transaction log, etc.). What, if any, command can do
this in UDB?

Thanks.

Feb 21 '06 #1
2 1298
Rick wrote:
In some other databases (like Oracle and SQL Server), there is a view
that show all SQL's currently executing, who is executing the SQL, and
what the SQL is waiting on (wait on read, wait on lock, wait while
writing to backup transaction log, etc.). What, if any, command can do
this in UDB?


Look into the GET SNAPSHOT command. You have a number of options there
from a DYNAMIC SQL SNAPSHOT, to a SNAPSHOT FOR ALL APPLICATIONS, that
will give you the information you are seeking.

Go to the online (web) Information Centre and search on GET SNAPSHOT and
you should fine much of the information you require.

Link: http://publib.boulder.ibm.com/infoce.../v8//index.jsp

Bob
Feb 21 '06 #2
Rick wrote:
In some other databases (like Oracle and SQL Server), there is a view
that show all SQL's currently executing, who is executing the SQL, and
what the SQL is waiting on (wait on read, wait on lock, wait while
writing to backup transaction log, etc.). What, if any, command can do
this in UDB?

Thanks.


Rick, there is a tool called db2top that does most of what you're asking
for. I think it's still in a beta/prototype phase, so your mileage may
vary, but here is the link: http://www.alphaworks.ibm.com/tech/db2top.

In addition, most of the DB2 snapshot monitor data is now accessible
through SQL (via table UDFs), so you might want to look into that as well.

Regards,
Miro
Feb 21 '06 #3

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

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
6
by: Mortrek | last post by:
Hi. We have a .NET programmer using our SQL server. The database is roughly 8GB at this point, full of all of our inventory, payroll data, etc. for running reports. This is on a dual-xeon...
8
by: Fred | last post by:
Hello, Our website is currently developed in ASP/Mysql 4. The dedicated servers on which it is currently hosted arrive at saturation. Here is their configuration: - 1 server PIV 2,8Ghz 1GB...
8
by: Dave | last post by:
I have a form with a label that should show an invoice number. The invoice number should be generated by sql Server using an autoincremented technique. However, after reading several articles, it...
2
by: Divakar | last post by:
Hi, How can we find which SQL statement is executing when "list application show detail" shows "UOW Executing" against an application. This topic was touched upon earlier by one of the member....
2
by: Doug | last post by:
Hi, I wanted to start a general discussion more for getting some thoughts on what other people think/practice out there just to see how far (if at all) I'm off base on my own thoughts. My...
7
by: Ronald S. Cook | last post by:
I've always been taught that stored procedures are better than writing SQL in client code for a number of reasons: - runs faster as is compiled and lives on the database server - is the more...
0
by: buyisiwekhumalo | last post by:
how to make sure that reports are automatically refreshed everyday without executing a new report everyday (i.e selecting a new report) and waiting for a page to load. Users get irritated while...
0
Frinavale
by: Frinavale | last post by:
I have a peculiar problem... Background: I have a function that I don't want the user to execute more than once while they are waiting for it to process; therefore, I disable all of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.