My Oracle Support Banner

Account status in dba_users show open but connection on Standby fails as 'ORA-28000: the account is locked' (Doc ID 2440122.1)

Last updated on JUNE 14, 2021

Applies to:

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

Symptoms

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner. 

Account status in dba_users show open but connection fails as 'account locked'.

When connecting to the user <user1> via sqldevelope or sqlplus, we are getting user account is locked. This is for standby ADG database
SQL> select username,account_status from dba_users where username='USER1';


USERNAME
--------------------------------------------------------------------------------
ACCOUNT_STATUS
--------------------------------
USER1
OPEN

SQL> SQL> conn USER1
Enter password:
ERROR:
ORA-28000: the account is locked

SQL> SELECT name, ctime,ptime FROM sys.user$ WHERE name = 'USER1';
NAME
--------------------------------------------------------------------------------
CTIME PTIME
--------- ---------
USER1
12-JAN-18 03-AUG-18


SQL> select open_mode,controlfile_type from v$database;

OPEN_MODE CONTROL
-------------------- -------
READ ONLY WITH APPLY STANDBY


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.