ORA-28000 the account is locked怎么办?

时间:2026-02-16 21:46:18

1、启动项目的时候提示ORA-28000 the account is locked。如下图:

ORA-28000 the account is locked怎么办?

2、这是因为用户被锁定了。

查询FAILED_LOGIN_ATTEMPTS参数默认值,这个参数限制了从第一次登录失败开始计算连续登陆失败的次数,注意不是累计失败的次数。这个值是个限额,并不代表当前已经连续失败的次数。

3、在DOS窗口输入sqlplus /nolog如下图:

ORA-28000 the account is locked怎么办?

4、conn /as sysdba如下图:

ORA-28000 the account is locked怎么办?

5、desc dba_profiles;如下图:

ORA-28000 the account is locked怎么办?

6、 select resource_name,limit from dba_profiles where resource_name='FAILED_LOGIN_ATTEMPTS';

如下图:

从上面的查询结果可以看出,如果连续失败10次,用户就会被锁定。

ORA-28000 the account is locked怎么办?

7、解锁用户在DOS窗口输入sqlplus /nolog

ORA-28000 the account is locked怎么办?

8、 conn /as sysdba

ORA-28000 the account is locked怎么办?

9、alter user username account unlock;如下图:

username为具体被锁定的用户名。        

ORA-28000 the account is locked怎么办?

10、修改参数failed_login_attempts=unlimited,当然这样修改会降低安全性,不建议这么做。alter profile default limit failed_login_attempts unlimited;

如下图:

ORA-28000 the account is locked怎么办?

© 2026 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com