ORA-01940: cannot drop a user that is currently connected

Problem:

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

Solution:

select sid||','||serial# from v$session where username = 'ECRPUSER';

alter system kill session 'sid,serial#';


你可能感兴趣的:(ORA-01940: cannot drop a user that is currently connected)