ORA-28000 means the database account is locked. In Oracle Database 19c, identify the account and its lock status before requesting an unlock: repeated failed logins, an administrative lock, and a common-user lock in the CDB root need different handling. Oracle’s ORA-28000 reference lists these causes.
Confirm the account and container
This procedure covers a password-authenticated local application user in an Oracle Database 19c PDB on Linux, using SQL*Plus 19c. Common users, Oracle-maintained accounts, and externally managed identities require their administrator’s procedures.
Record the failing username, database service, error, and time without recording the password. Confirm that the service reaches the intended PDB. If you need a client first, see installing Instant Client and SQL*Plus. Reinstalling the client does not unlock a database account.
Ask an authorized DBA with access to DBA_USERS and DBA_PROFILES to run the read-only checks below in that PDB. Do not grant broad catalog privileges to the affected application just to troubleshoot its login.
1. Read the saved account status
Replace APP_USER with the exact dictionary username. The uppercase example assumes a user created without a quoted, case-sensitive name.
SELECT username, account_status, lock_date, profile,
common, oracle_maintained
FROM dba_users
WHERE username = 'APP_USER';
The 19c DBA_USERS reference defines the relevant results:
LOCKED(TIMED): failed logins reached the profile limit and the lock interval has not elapsed.LOCKED: an administrator locked the account, or failed logins reached the limit with an unlimited lock interval. This value alone does not identify who caused the lock.- A status containing both
EXPIREDandLOCKED: password expiration also needs attention; unlocking alone does not resolve it.
If no row appears, verify the container and exact username before taking action. If COMMON is YES, refer the case to the CDB administrator. If ORACLE_MAINTAINED is Y, stop: Oracle requires changes to that user through Oracle-supplied scripts.
2. Inspect the applicable profile limits
SELECT profile, resource_name, limit
FROM dba_profiles
WHERE profile IN (
'DEFAULT',
(SELECT profile FROM dba_users WHERE username = 'APP_USER')
)
AND resource_name IN ('FAILED_LOGIN_ATTEMPTS', 'PASSWORD_LOCK_TIME')
ORDER BY profile, resource_name;
DBA_PROFILES returns profile names, resources, and limits. If the assigned profile reports DEFAULT for a limit, use the corresponding value from the DEFAULT profile. Oracle’s 19c profile reference defines FAILED_LOGIN_ATTEMPTS as a consecutive-failure threshold and PASSWORD_LOCK_TIME in days; a fractional day represents a shorter interval.
Do not assume that a timed lock has cleared solely from a status snapshot. Oracle’s password policy guide notes that the dictionary can retain the locked status after the interval until the user connects. An explicit administrative lock requires administrator action.
3. Resolve the cause before an approved unlock
Coordinate with the account owner before enabling access. Pause unwanted retries and check approved credential stores, jobs, and connection pools for outdated credentials. Preserve the account and profile readings for the change record. If the lock was intentional or suspicious, keep the account locked while the security team investigates.
For a confirmed local application user in the correct PDB, an administrator with the ALTER USER system privilege can perform the approved unlock:
ALTER USER app_user ACCOUNT UNLOCK;
The ALTER USER reference defines privileges and container scope; the ACCOUNT clause defines lock and unlock behavior. If the access change must be reversed, the administrator can use ALTER USER app_user ACCOUNT LOCK; to disable subsequent login access. Treat this as a separate approved action, not a transactional rollback or a way to terminate existing sessions.
4. Verify the original login
Retry once through the original service using the approved current credential, entered at the password prompt. Recheck the account status and observe whether the application resumes without another lock. If it locks again, investigate the continuing failures instead of repeatedly unlocking it or removing password limits. Handle an expiration error through the approved password-change process.
For the wider question of who may administer these accounts and how to record that access, see privileged access management for Oracle Database.
If account lockouts keep recurring, review how your database profiles handle failed sign-ins and password changes. The chapters on accounts and profiles in Oracle Database 12c Security provide background. Use the 19c documentation for the commands and defaults that apply to your release.

