From:
How to Kill a Session on the RAC Database in Instance independent Fashion. (Document ID 869777.1)
Suitable for:
Oracle database-enterprise edition-version 11.1.0.6 and later
Information in this document applies to any platform.
Goal:
You can kill the session in the RAC database without considering which intance the session was generated from. This is a new feature of 11g.
Solution:
To kill a session in RAC database use the following syntax.
Sql> conn/as sysdbasql> alter system kill session ' Sid, Serial#, @inst_id ';
For Example:
[email protected]> Select Inst_id,sid,serial#,username from gv$session where username are not null and username not Like ' sys% '; inst_id SID serial# USERNAME------------------------------------------------------------1 123 7 6 DBSNMP 1 rows selected. [email protected]> Conn Scott/tiger Connected. [email protected]> Select Inst_id,sid,serial#,username from gv$session where username are not null and username not Like ' sys% '; inst_id SID serial# USERNAME------------------------------------------------------------2 115 17816 SCOTT 1 123 dbsnmp 2 rows selected. [email protected]> alter system kill session ' 115,17816,@2 '; System altered. [email protected]> Conn Scott/tiger Connected. [email protected]> Select Inst_id,sid,serial#,username from gv$session where username are not null and username not Like ' sys% '; inst_id SID serial# USERNAME------------------------------------------------------------1 45316 SCOTT 1 123 DBSNMP 2 rows selected. Sql> alter system kill session ' 110,45316,@1 '; System altered.
"Translated from MoS article" How can I kill a session independently of instance in RAC database?