//创建用户
create user thtwin identified by thtwin
//给用户授权
grant create session to thtwin
grant create table to thtwin
grant unlimited tablespace to thtwin
//删除用户
drop user thtwin cascade
--锁定用户
ALTER USER STORE ACCOUNT LOCK
--查询进程号(sid,serial#)
select* FROM v$session WHERE username='STORE'
--删除对应的进程
ALTER SYSTEM KILL SESSION '862,3566'
--删除对应的用户
DROP USER STORE CASCADE
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)