时间:2021-07-01 10:21:17 帮助过:6人阅读
1)select * from dba_users; //查看数据库里面所有用户,需要有dba权限的帐号执行,如sys,system
2)select * from all_users; //查看你能管理的所有用户!
3)select * from user_users; //查看当前用户信息!
1)dba用户登录,执行以下解锁语句
alter user ${userName} account unlock;
1)dba用户登录,执行以下解锁语句
alter user ${userName} identified by #{password};
create user ${userName} identified by {password}
account unlock
default tablespace ${tablespaceName}
temporary tablespace ${tempTablespaceName} -- 如果没有创建临时表空间, 则不需要这句话
;
1)只删除用户
drop user ${userName};
2)一并删除用户名下的所有表和视图
drop user ${userName} cascade;
conn ${userName};
connect ${userName};
Oracle用户操作
标签:lock word 解锁 connect 权限 unlock 切换用户 执行 删除用户