if you drop SQL*net you will drop all remote sessions, that is what I do if I get a deadlock while I am away from the office. Sessions started on the host are still active but no other computers' sessions survive I love everyone til they prove otherwise, sadly some prove otherwise SO quickly
Forgive my ignorance. If I drop SQL Net I assume you mean stop the service. What if I have multiple instancez running on the same server if I drop it will it not drop ALL users from ALL sessions not just the instance I require.
I have not met an Oracle version that did not grab my entire server, so I am afraid I dont have positive experience with mutiple instances I love everyone til they prove otherwise, sadly some prove otherwise SO quickly
If you kill ALL sessions, you kill Oracle internal processes. So isn't it better to shutdown the instance? If you mean only user sessions, you may loop through v$session where username is not null. You must also kill your own session after killing all others. To find your session select from v$session where audsid=userenv('sessionid').
The last time I tried to kill my own session, Oracle gave me an exception indicating I can't kill my own session. Of course, it's easy to kill your own session - log off!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.