DG备库用户被锁报ora-28000:the account is locked
发布时间:2021-11-30
在备库上进行查询时,登录用户发现用户被锁定
报错:ora-28000:the account is locked
但SYS用户登陆后查看其用户状态为OPEN状态
一般是由bug导致的,是主库上修改了对应用户的密码,导致备库上的用户无法登录
解决方法:
1.可以尝试unlock用户
在备库端执行alter user account unlock;然后尝试登陆
SQL> conn / as sysdba
Connected.
SQL> alter user XXXX account unlock;
alter user XXXX account unlock
*
ERROR at line 1:
ORA-28015: Account unlocked, but the database is open for read-only access
SQL> conn XXXX/*****
Connected.
2.刷新共享池
ALTER SYSTEM FLUSH SHARED_POOL;
3.重启备库
报错:ora-28000:the account is locked
但SYS用户登陆后查看其用户状态为OPEN状态
一般是由bug导致的,是主库上修改了对应用户的密码,导致备库上的用户无法登录
解决方法:
1.可以尝试unlock用户
在备库端执行alter user account unlock;然后尝试登陆
SQL> conn / as sysdba
Connected.
SQL> alter user XXXX account unlock;
alter user XXXX account unlock
*
ERROR at line 1:
ORA-28015: Account unlocked, but the database is open for read-only access
SQL> conn XXXX/*****
Connected.
2.刷新共享池
ALTER SYSTEM FLUSH SHARED_POOL;
3.重启备库