Standby数据库用户被锁的处理方法

16 篇文章 0 订阅

背景:
今天,公司有一位同事找我,说连接数据库的时候报“ORA-28000: the account is locked”,通过dba_users视图查看,数据库用户的状态为OPEN,就是连接不上报错,随后对问题展开分析。

分析:
1、检查primary和standyb数据库用户状态表dba_users,看到account_status都为OPEN状态;
2、使用用户连接primary可以正常登录,连接standby数据库报错“ORA-28000: the account is locked”;

报错信息如下:
ORA-28000: the account is locked
28000. 00000 -  "The account is locked."
*Cause:    The wrong password was entered multiple consecutive times as
           specified by the profile parameter FAILED_LOGIN_ATTEMPTS, or the
           DBA locked the account, or the user is a common user locked in
           the root container.
*Action:   Wait for the PASSWORD_LOCK_TIME or contact the DBA.

在Standby端解锁用户:

SQL> alter user IMES_PES account unlock;

原因:standby database是在内存中把用户锁定,但由于是read only状态,所以并没有更改用户表中的状态信息。具体说明如下:

ORA-28000 “the account is locked” in the standby database, even after the account was unlocked in the primary. (Doc ID 1600401.1)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值