DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: V$session

  1. #1
    Join Date
    Nov 2000
    Posts
    169

    V$session

    Can any one give me the syntax that I can use in v$session to find out
    all informtion in v$session including the exact current sql statement being executed?
    I think I might have to do a join to get that info. but I'm not sure of the syntax

    The command column is just giving the number but I want more than that.

  2. #2
    Join Date
    Jan 2003
    Location
    Thailand
    Posts
    29
    Code:
    SELECT s.username, s.terminal, s.sid, s.serial#, st.sql_text
    FROM v$session s, v$sqltext st
    WHERE s.sql_address = st.address 
           and s.username is not null
    ORDER BY s.sid, s.serial#, st.piece
    Hope this answers you question.
    Regards,
    P.Peach

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width