您的位置:首页 > 数据库 > Oracle

Oracle笔记之用户管理2

2014-08-08 14:58 253 查看
1、权限转移:

grant 权限 to 用户 with admin option [with grant option]

补:系统管理员和拥有grant any privilege权限的用户以及接受到权限转移的用户可以授权。

权限可以级联授予,对于回收问题,不会级联回收。

2、使用profile文件对口令进行管理

现在,只允许某用户最多尝试登录三次,如果不成功锁定两天。

create profile 文件名 limit failed_logon_attempts 3 password_lock_time 2;

alter user 用户名 profile 文件名;

如果不指定profile文件系统自动分配名为default的profile文件

解锁:alter user 用户名 account unlock;

3、终止口令

一个账号密码最多用十天,宽限期为两天,到时必须设置新密码。

create profile文件名 limit password_life_time 10 password_grace_time 2;

alter user 用户名 profile 文件名;

解锁命令相同

4、弃掉profile文件 drop profile 文件名
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: