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

转至: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;

 

posted @ 2021-05-08 11:10  study_goup  阅读(823)  评论(0编辑  收藏  举报