返回顶部

欢迎来到菜鸟大明儿哥的博客

我们一起交流学习,不断提升自我

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.

posted @ 2020-02-21 19:02  菜鸟大明儿哥  阅读(1349)  评论(0编辑  收藏  举报