sreddy,

What\'s the difference between your method and:

SQL>select username, sid, serial#, status from v$session;

username_____SID______SERIAL#________STATUS
----------------------------------------------------------
SCOTT________22________155___________ACTIVE
.
.
.

SQL> alter system kill session \'22,155\';
SQL> system altered