My Oracle Support Banner

DG standby: account-status OPEN but login fails with "ORA-28000: the account is locked" (Doc ID 2718878.1)

Last updated on DECEMBER 28, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 12.2.0.1 and later
Information in this document applies to any platform.

Symptoms

Customer is getting ORA-28000: the account is locked in Active Data Guard

User DBSNMP or any user is locked on ADG Standby database (read only mode) and it is open in Primary database.

Problem Description
---------------------------------------------------
[oracle@xxxxxx bin]$ sqlplus dbsnmp@"(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxx-scan.xxx-xx.xxx.com)(PORT = 1522)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XXXX)))"

SQL*Plus: Release 12.2.0.1.0 Production 

Copyright (c) 1982, 2016, Oracle. All rights reserved.

Enter password:
ERROR:
ORA-28000: the account is locked

But the user is not showing as locked, the account_status in dba_users show 'OPEN' in both primary and standby:

Primary database:

SQL> select account_status from dba_users where username='DBSNMP';

ACCOUNT_STATUS
--------------------------------
OPEN

Standby database:

SQL> select account_status from dba_users where username='DBSNMP';

ACCOUNT_STATUS
--------------------------------
OPEN



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.