ORA-28000:账户已被锁定
ORA-28000:账户已被锁定
·
ORA-28000:账户已被锁定
问题描述
早上等数据库突然发现提示登录不上 提示 ORA-28000
问题原因
由于数据库密码改动,不知情人员连续尝试多次登陆,导致账户被锁;
在oracle 12c中,默认用户的失败次数为10次,10次失败后账户锁定。
问题解决
可通过以下语句查询用户默认失败次数(用户需大写)
select a.username, b.profile, b.resource_name, b.limit
from dba_users a, dba_profiles b
where a.username = 'PTCPOT_DEV' and a.profile = b.profile;
-- unlock
alter user 用户名 account unlock;
-- 不限制失败次数
alter profile default limit failed_login_attempts unlimited;
更多推荐
已为社区贡献4条内容
所有评论(0)