Oracle密码错误多少次账号会被锁定

2019-10-15

oracle数据库默认是10次尝试失败后锁住用户

1、查看FAILED_LOGIN_ATTEMPTS的值
col RESOURCE_NAME for a20
col LIMIT for a10
select * from dba_profiles
SQL> select * from dba_profiles where RESOURCE_NAME='FAILED_LOGIN_ATTEMPTS';
PROFILE RESOURCE_NAME RESOURCE LIMIT
------------------------------ ----------------------- -------- ----------
DEFAULT FAILED_LOGIN_ATTEMPTS PASSWORD 10
MONITORING_PROFILE FAILED_LOGIN_ATTEMPTS PASSWORD UNLIMITED
2、修改为30次
alter profile default limit FAILED_LOGIN_ATTEMPTS 30;
3、修改为无限次(为安全起见,不建议使用)
alter profile default limit FAILED_LOGIN_ATTEMPTS unlimited;

解锁:

alter user user_name account unlock;

4、select name, lcount from sys.user$ where name='&USERNAME';

分类:数据库 | 标签: |

相关日志

评论被关闭!