Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Category : Home > Databases > Oracle > Performance Tuning     

View sorts per user session


Run this query to see sorts per user session. Replace BLOCKSIZE with block size for your
database i.e. if it's 8Kb replace it with 8192

SELECT s.username
        ,s.sid
        ,s.serial#
        ,u.SESSION_ADDR 
        ,u.contents 
        ,u.TABLESPACE 
        ,u.BLOCKS
        ,round(u.BLOCKS*BLOCKSIZE/1024/1024,1) as MBS
        ,u.EXTENTS
        ,u.SEGFILE# 
        ,u.SEGBLK# 
        ,u.SEGRFNO#
        ,u.SEGTYPE 
        ,u.SQLADDR
        ,u.SQLHASH
FROM v$session s
        , v$sort_usage u 
WHERE s.saddr = u.session_addr
/


  Options
 
   del.icio.us  |  newsvine  |  digg  |  furl  |  google  |  yahoo  |  Ma.gnolia  |  vigillar  |  reddit  |  technorati  |  icerocket  |  pubsub

       Rate this tip:    

Start discussion or add comment to this tip

  Details
Tip reference : #15
views : 648
Added on : 10/03/05
Submited by : h8dk97
 
Send a message Send a message Printer friendly output Printer friendly output
Display this member's tips Display this member's tips (161)
 
 
<< Previous
 Most viewed tips 
  Databases > Oracle > Security : How to unlock Oracle user account  
  Operating Systems > Unix : How to kill Unix user session  
  Databases > Oracle > Performance Tuning : How to enable trace in Oracle  
  Databases > Oracle : Kill user session  
   
  All categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com