How to kill a session Permanently [message #165299] |
Wed, 29 March 2006 05:23 |
ramsat
Messages: 49 Registered: November 2005
|
Member |
|
|
hai,
I face a strange situation in the Oracle. I use C++ servers for my application where the back end is Oracle database.
Whenever there is some problem in the Connection say an lock applied from any of the C++ servers the databse gets hanged,
I immediately killed the session founding which one is trouble some. But the session eventhough killed it is shown with different serial number.
Is there any way to kill the session than using
sql > Alter system kill session 'sid,serial#'; --- command
Thank U in Advance
Ramesh
|
|
|
|
Re: How to kill a session Permanently [message #165838 is a reply to message #165602] |
Mon, 03 April 2006 00:50 |
ramsat
Messages: 49 Registered: November 2005
|
Member |
|
|
Hai ,
Thank u for ur reply.
Ima using Windows server, so i was looking for this OS level control over sessions. Well i found that we can do the task using the command
"orakill "
since windows runs the Oracle as single process multi threaded The orakill will be supplied with sid and theread number for the session running,
the spid for the session is the tread number which we can obtain using V$process and v$session.
Thank U
Ramesh
|
|
|