Oracle profile 使用技巧

给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;

原文地址:https://www.cnblogs.com/roger112/p/7700121.html