Oracle 数据库用户锁定与解锁,用户锁定最大密码失败次数设置方法,ORA-28000: the account is locked问题解决方法

时间:2021-05-24 01:36:58   收藏:0   阅读:0

转至:https://blog.csdn.net/qq_38161040/article/details/108274161

用户多次密码输入错误达到一定值就会被锁定。

-- 用户锁定方法
alter user 数据库名 account lock;
-- 用户解锁方法
alter user 数据库名 account unlock;

当锁定时连接数据库就会报如下错误。

An error occurred while establishing the connection:

Long Message:
ORA-28000: the account is locked

Details:
   Type: java.sql.SQLException
   Error Code: 28000
   SQL State: 99999

技术图片

 

 查看锁定用户的密码最大输入错误次数。

select * from dba_profiles where resource_name = FAILED_LOGIN_ATTEMPTS;

技术图片

 

 修改密码最大失败次数方法。

-- 设置最大失败次数
alter profile default limit FAILED_LOGIN_ATTEMPTS 30;
-- 设置无限失败次数
alter profile default limit FAILED_LOGIN_ATTEMPTS unlimited;

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!