ORACLE 下查看用户session 及 kill 用户session

SQL> drop user test cascade;
drop user test cascade
*
ERROR at line 1:
ORA-01940: cannot drop a user that is currently connected

 

SQL> select sid,serial# from v$session where username=‘TEST‘;

       SID    SERIAL#
---------- ----------
      2558        522
      2564         29
      2576       1023

SQL> alter system kill session ‘2558,522‘;

System altered.

相关推荐