Contact US

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!

*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

Oracle: All versions FAQ

SQL Scripts

wr.sql - What SQL is running. by Michael42
Posted: 17 Oct 06 (Edited 18 Oct 06)


set echo off
-- wr.sql (whats running)
-- Purpose: Display active running SQL commands.
-- -----------------------------------------------------------------------------
column executions      format 9999
column username        format a10
column sid             format 999999
column serial#         format 999999
column users_executing format 9999
column sql_text        format a50

SELECT a.executions, b.username, b.sid, b.serial#,a.users_executing, a.sql_text
FROM v$sql a, v$session b
WHERE users_executing > 0
AND a.address = b.sql_address
AND a.hash_value = b.sql_hash_value
ORDER BY address, child_number
set echo on

Back to Oracle: All versions FAQ Index
Back to Oracle: All versions Forum

My Archive

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