主要是查 v$session,我一般用这个SQL:
set linesize 200
col username for a30
col machine for a30
col program for a30
select username, machine, program, sid, serial# from v$session where username = 'SUANLITEST';

alter system kill session 'sid,serial#' immediate;
本文介绍了一个用于查询特定用户名SUANLITEST在Oracle数据库中的活动会话信息的SQL语句,并展示了如何使用SQL命令来杀死指定的数据库会话。
主要是查 v$session,我一般用这个SQL:
set linesize 200
col username for a30
col machine for a30
col program for a30
select username, machine, program, sid, serial# from v$session where username = 'SUANLITEST';

alter system kill session 'sid,serial#' immediate;
9254
1万+

被折叠的 条评论
为什么被折叠?