Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> show runtime for all active queries
Hi,
I am relatively new to Oracle, having spent a great deal of time with MySQL. I am looking for a way to get a quick snapshot of the current activity against the database (instance?). The ideal information I need is:
client (user + host)
sql of the current query
runtime for current query
In MySQL I could just do a simple "SHOW FULL PROCESSLIST" to get this
information.
I have tried google, without much luck. It looks like I can get
cummulative runtime for a session, but not at the individual query
level.
Here is what I have so far:
SELECT ses.sid AS SID,
ses.serial# AS SERIAL_NUMBER, ses.username AS USERNAME, ses.status AS STATUS, ses.blocking_session AS BLOCKING_SID, ses.state AS STATE, ses.type AS TYPE, sql.sql_text AS SQL_TEXT, sql.elapsed_time AS ELAPSED_TIME
Chris Back
Sr. Systems Administrator
Received on Sat Mar 19 2005 - 11:08:47 CST
![]() |
![]() |