Home » RDBMS Server » Server Administration » finding users query
finding users query [message #60703] Thu, 26 February 2004 21:00 Go to next message
Sam
Messages: 255
Registered: April 2000
Senior Member
hi all, i need some info regarding users session.

for example if a user executed or executing a statement, and if it is just going on for long time without any O/P which it doesnt do normally, how to find out what the query was without asking the user, what is the query currently doing, what are tables it is accessing and info abt the locks?

i heard about v$views(session,session_event,sql etc) but dont know how to do it. this is the problem i normally face.

so pls can anyone explain and also suggest like if query is going on forever what to do, without asking the user to stop and execute again.

thanx in advance.
Re: finding users query [message #60705 is a reply to message #60703] Fri, 27 February 2004 02:28 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Here you go. Thanks to Tom Kyte.

MHE
Re: finding users query [message #60717 is a reply to message #60703] Sun, 29 February 2004 02:42 Go to previous message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
You can also trace the session and find out whats going on . SQL_tracing

-Thiru
Previous Topic: database startup error
Next Topic: How to reclaim the space from a 25 GB table
Goto Forum:
  


Current Time: Tue Jan 07 23:16:52 CST 2025