当前位置:Gxlcms > 数据库问题 > oracle断开用户连接并且删除用户

oracle断开用户连接并且删除用户

时间:2021-07-01 10:21:17 帮助过:15人阅读

1、搜索出用户的sid,serial#

select sid,serial# from v$session where username=‘user_name‘;

2、断开会话

alter system kill session ‘sid,serial‘; 

3、删除用户

drop user user_name cascade;

4、创建用户

create user user_name identified by password;

5、赋予基本角色

grant resource,connect to user_name;

oracle断开用户连接并且删除用户

标签:

人气教程排行