首页 > 数据库技术 > 详细

Oracle profile 使用技巧

时间:2017-10-20 17:22:18      阅读:262      评论:0      收藏:0      [点我收藏+]

给scott用户分配一个profile要求如下:

1、尝试登录的次数最多4次;

2、如果4次输入错误,则锁定该用户2天;

3、密码每隔5天修改一次,宽限期为2天;

答:

SQL>conn sys/orcl as sysdba;

SQL>create profile scottprofile limit failed_login_attempts 4 password_lock_time 2 password_life_time 5 password_grace_time 2;

SQL>alter user scott profile scottprofile;

Oracle profile 使用技巧

原文:http://www.cnblogs.com/roger112/p/7700121.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!