Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


DB2/SQL Task list

DB2/SQL Task list

DB2/SQL Task list


is there a possibility to see all current SQL queries which are running?

I know that MySQL has a tasklist where you can easily observe the current queries including username, needed time (increasing) and status (locked, write to temp table, sorting..) In background this tasklist is the sql command "show processlist".

Does anyone one such a tool or view for DB2 or how do you observer the current SQL traffic?
We need this for finding slow or unoptimized queries and lockwaits.

Kind Regards,

RE: DB2/SQL Task list

Depends what platform you are on I guess. We are on a Z/Os mainframe and have available CA-Insight which does exactly what you describe - shows all current threads with CPU usuage, actual time running, the SQL being executed etc etc.

What OS are you running under?


RE: DB2/SQL Task list

Hello, thanks - we have OS400 Version 6.1

RE: DB2/SQL Task list

Unfortunately it does not run on OS400. Thanks anyway.

Does anyone have an idea for OS400/V6.1?

RE: DB2/SQL Task list

there are a few tools... but most likely they will depend on whether you are using DB2 UDB or just the subset that is part of the OS itself.

google for as400 db2 monitor and you will find a few hits.

and as usual the manuals do give lots of information. Remember these should always be your first place to search for information.


Frederico Fonseca
SysSoft Integrated Ltd

FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?

RE: DB2/SQL Task list

Try Google and read the manual... nice tips.
Believe it or not, I did. Asking the forum means it did not help.

RE: DB2/SQL Task list

"Try Google and read the manual... nice tips.
Believe it or not, I did. Asking the forum means it did not help."

How utterly silly . . .

Let's recap.
You asked the question poorly and when replies are posted, you finally mention the environment you are using.
Then (quite recently) you decided to do a bit of looking on your own and found something useful. There is NO good reason you did not do this Before posting! (Oh, i guess lazy is a reason).

Why do you believe it is appropriate to expect others to do research for you? If someone here knew of what you want on the AS400, they would have replied.

To whine because no one here did the research for you, is pathetic.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close