ORA-01940 无法删除当前已连接的用户

今天在进行测试环境导数据的时候,需要记性drop user操作。在执行drop user的时候,提示:ORA-01940: cannot drop a user that is currently connected

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

问题很明显,有用户在连接,不允许drop掉该user。

问题解决,记得KILL进程前,先看看是啥进程,哪台机连过来的,能否KILL等等。测试环境还好,生产无小事。

猜你喜欢

转载自www.linuxidc.com/Linux/2018-03/151511.htm