Kill back end session & Time taken to kill session (merged) [message #430541] |
Tue, 10 November 2009 23:35 |
Hitman11
Messages: 94 Registered: October 2009 Location: norway
|
Member |
|
|
Hi ,
How to kill a back end session.The query was running for a long time. so have decided
to kill the session. (in windows platform)
Can i follow these steps to kill back end session ?
alter system kill session 'sid,serial#' immediate;
or kill the session using task manager ??
Thanks
|
|
|
Re: Kill back end session [message #430548 is a reply to message #430541] |
Wed, 11 November 2009 00:11 |
|
ramoradba
Messages: 2457 Registered: January 2009 Location: AndhraPradesh,Hyderabad,I...
|
Senior Member |
|
|
Hitman11 wrote on Tue, 10 November 2009 23:35
Hi ,
How to kill a back end session.The query was running for a long time. so have decided
to kill the session. (in windows platform)
Can i follow these steps to kill back end session ?
alter system kill session 'sid,serial#' immediate;
or kill the session using task manager ??
Thanks
If you know what are 'sid,serial#' and from where you can get then follow...
Do what ever you want and...first read the manual and decide yourself.Nothing say about that....Thats your database( i hope testing ).
Sriram.
[Updated on: Wed, 11 November 2009 00:15] Report message to a moderator
|
|
|
|
Re: Kill back end session [message #430783 is a reply to message #430558] |
Thu, 12 November 2009 05:49 |
Hitman11
Messages: 94 Registered: October 2009 Location: norway
|
Member |
|
|
When a session is killed using 'ALTER SYSTEM' it takes long time to release the locks
and rollback the transactions.How would one know the lock is released and
transaction is rolled back?
Is there any query to view that ?
Thanks
|
|
|
|
|
|
|
Time taken to kill session [message #439258 is a reply to message #430541] |
Fri, 15 January 2010 07:32 |
Hitman11
Messages: 94 Registered: October 2009 Location: norway
|
Member |
|
|
Hi all,
I killed a session using 'ALTER SYSTEM KILL SESSION 'SID,SERIAL#'.
The session has been killed but the status was showing KILLED.Can somebody tell ,how to find how long it will take to completely kill the session ?
Thanks
|
|
|
|
Re: Kill back end session [message #439267 is a reply to message #430831] |
Fri, 15 January 2010 08:26 |
Hitman11
Messages: 94 Registered: October 2009 Location: norway
|
Member |
|
|
As discussed in this thread,
"v$transaction, used_ublk column gives the number of blocks that Oracle still has to roll back."
But i see used_ublk column increasing from 64 to 3000 in sqlplus .What does it mean?
Does it mean it has 3000 undo blocks to rollback ?
Please explain.
Regards,
|
|
|
|
Re: Kill back end session [message #439275 is a reply to message #439273] |
Fri, 15 January 2010 08:56 |
Hitman11
Messages: 94 Registered: October 2009 Location: norway
|
Member |
|
|
Thanks babu.
i used 'select used_ublk from v$transaction'; its showing no rows selected.
But the status in v$session view is still showing KILLED.
Please explain
Regards,
|
|
|
Re: Kill back end session [message #439277 is a reply to message #439275] |
Fri, 15 January 2010 09:08 |
JRowbottom
Messages: 5933 Registered: June 2006 Location: Sunny North Yorkshire, ho...
|
Senior Member |
|
|
It's possible that your session is waiting for a remote session to finish/rollback, and that the remote session is just sitting there twiddling it's thumbs.
|
|
|
|
Re: Kill back end session [message #439316 is a reply to message #439283] |
Fri, 15 January 2010 10:37 |
Hitman11
Messages: 94 Registered: October 2009 Location: norway
|
Member |
|
|
Thanks.
Which is the beast practice to kill a session ?
Current Status.
I see the session status as SNIPED from v$session.
and used_ublk column is null.
Sometimes i see null values under used_ublk column and
sometimes i see values in the same column.
Please explain .
Regards,
|
|
|
|
|