方案1:关闭数据库,再重启即可。


方案2:


alter user XXX account lock;
SELECT * FROM V$SESSION WHERE USERNAME='LGDB';
alter system kill session 'xx,xx'drop user xx cascade;


(1)查看用户的连接状况 

select username,sid,serial# from v$session ;


(2)找到要删除用户的sid,和serial,并删除 


alter system kill session 'xx,xx'drop user xx cascade;