oracle 杀掉会话

1.connect system/manager as  sysdba;
2.col username for a20;
3.select sid,serial#,username,program,type from v$session;例如结果如下:
SID    SERIAL# USERNAME             PROGRAM              TYPE
---- ---------- -------------------- -------------------- ------------
147         17 CRM2_TEST            plsqldev.exe         USER
151         13 SYS                  sqlplus.exe          USER
154          1                      ORACLE.EXE (QMNC)    BACKGROUND
158          4                      ORACLE.EXE (q001)    BACKGROUND
159          3                      ORACLE.EXE (q000)    BACKGROUND
4.alter system kill session '151,13';

你可能感兴趣的:(oracle)