错误提示:
问题分析:
由于数据库密码改动,不知情人员连续尝试多次登陆,导致账户被锁;在oracle 12c中,默认用户的失败次数为10次,10次失败后账户锁定。
可通过以下语句查询用户默认失败次数(用户需大写)
select a.username, b.profile, b.resource_name, b.limit
from dba_users a, dba_profiles b
where a.username = 'OPENSION_NH_USER2' and a.profile = b.profile;
解决方法:
1、给该用户解锁(不改变登录失败次数)
使用命令 或者PL/SQL Developer 登录系统用户
sqlplus / as sysdba
然后执行以下语句解锁
alter user 用户名 account unlock;
这样解锁后的该用户,登录失败次数依旧为10次;
2、给该用户解锁(不限制登录失败次数)
使用命令 或者PL/SQL Developer 登录系统用户
sqlplus / as sysdba
然后执行以下语句修改不限制登录失败次数
alter profile default limit failed_login_attempts unlimited;
这样,以后就没有登录失败次数了
author:su1573