You have a session which is out of control. You decide to kill it. What options are available to you as a DBA?
Assuming you don’t have access to the O/S to be able to use O/S commands to kill the session (using kill -9 in Unix/Linux or orakill in windows to kill the thread within the process – “orakill sid thread”), you probably turn to:
alter system kill session 'sid, serial#, @inst_id' immediate;
(note the undocumented @inst_id, which can be used to identify specific RAC instances, rather than the instance you are connected to) Note that immediate does not change the processing, but just returns control to the command line immediately.
You can generate this command using
select 'alter system kill session ''' || sid || ', ' || serial# || ', @' || inst_id || ''';' from gv$session;
However, despite the name, this does not actually kill the…
View original post 266 more words