标签:会话 sel 系统 from use serial ssi logo obj
1 select ‘alter system kill session ‘‘‘ || SID || ‘,‘ || SERIAL# || ‘‘‘;‘ 2 3 from ( 4 5 select distinct a.sid,a.Serial#,status,machine,LOCKWAIT,logon_time 6 7 from v$session a, v$locked_object b 8 9 where (a.status = ‘ACTIVE‘ or a.status = ‘INACTIVE‘) 10 11 and a.sid = b.session_id 12 13 and b.ORACLE_USERNAME = ‘SWYBGTEST‘ --加上用户名是避免把其他系统的会话也关闭,以免伤及无辜 14 15 );
标签:会话 sel 系统 from use serial ssi logo obj
原文地址:https://www.cnblogs.com/caster-xzn/p/10309414.html