您的位置首页生活百科

ORA-28000 the account is locked怎么办

ORA-28000 the account is locked怎么办

的有关信息介绍如下:

ORA-28000 the account is locked怎么办

今天启动项目的时候提示ORA-28000 the account is locked。那么在使用oracl的时候ORA-28000 the account is locked怎么办?

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

这是因为用户被锁定了。

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

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

conn /as sysdba如下图:

desc dba_profiles;如下图:

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

如下图:

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

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

conn /as sysdba

alter user username account unlock;如下图:

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

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

如下图: