1. 首先查询出该用户的登录情况,注意用户名必须是大写
SQL> select username,sid,serial# from v$session where username = 'XSTRMADMIN';
USERNAME SID SERIAL#
------------------------------ ---------- ----------
SYS 136 530
SYS 137 328
SYSMAN 138 12
UTEST 139 1098
SYSMAN 140 12
142 40
SYSMAN 143 52
SYS 144 1023
SYS 148 2634
152 4
154 1
SYS 158 280
2. 指定需删除的 SID和SERIAL#,然后删除连接
SQL> alter system kill session '139,1098';
3. 删除用户
drop user XSTRMADMIN cascade;