First identify a problematic session by using:
onstat -g ses
onstat -g sql
onstat -u
make not of session id and use onmode to kill the session:
onmode -z <session_id>
This is similar to Unix kill -9 <pid> interrupt signalling. Onmode takes care about the trasactions in progress condition too, if so it will judge the stage of the transaction, and tries to commit, if possible. But in most of the cases it rolls back the transactions. Such cases it may take a longer period to terminate a session.
Awesome. Thanks Shriyan. I was just browsing and learned something new and very cool. I usually use kill -15 or kill -9 but will now use Onmode like you suggest.
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.