Use the immediate option of the alter system kill session command to remove the session from the system at once;
SQL> ALTER SYSTEM KILL SESSION
'sid,serial#' IMMEDIATE;
Another alternative method is to disconnect the session from the database by killing the dedicated or shared server process from the server. This method also has the immediate option, see sample script below
SQL> ALTER SYSTEM DISCONNECT SESSION 'sid,serial#'
POST_TRANSACTION;
SQL> ALTER SYSTEM DISCONNECT SESSION
'sid,serial#' IMMEDIATE;
Hope this helps!
Kehinde.
No comments:
Post a Comment