Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages
Databases and Redis

ORDS says the pool's username or password is invalid, expired or locked

Your error

The username or password for the connection pool named |default|lo|, are invalid, expired, or the account is locked3 more lines it can show

Fix it fast

Most common cause, 1 of 3

The pool user is locked after too many failed logins

Unlock the account with ALTER USER.

Fix
ALTER USER ORDS_PUBLIC_USER ACCOUNT UNLOCK;
Did this fix it?
Full steps for this cause: check, fix, verify

Short answer

ORDS shows "The username or password for the connection pool named ... are invalid, expired, or the account is locked" when the pool's database user (usually ORDS_PUBLIC_USER) cannot log in. Check ACCOUNT_STATUS in DBA_USERS, unlock or reset the account, then save that password with ords config secret db.password. Applies to ORDS 26.3 with Oracle Database 26ai.

  • Applies to ORDS 26.3, Oracle Database 26ai
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Which cause do you have?

Find out which user the pool logs in as, then ask the database what state that account is in. OPEN points to a password mismatch; LOCKED or EXPIRED points to the account itself.

Run this first
ords --config /path/to/config config --db-pool default get db.username
# then, as a DBA in SQL*Plus or SQLcl:
SELECT username, account_status, expiry_date, profile
  FROM dba_users
 WHERE username = 'ORDS_PUBLIC_USER';

Then find the line you see in this list and open its fix:

  1. 1The pool user is locked after too many failed loginsACCOUNT_STATUS is LOCKED or LOCKED(TIMED), and the ORDS log or a test login shows ORA-28000
  2. 2The pool user's password reached the end of its lifetimeACCOUNT_STATUS is EXPIRED or EXPIRED(GRACE), and EXPIRY_DATE is in the past
  3. 3The password in the ORDS pool wallet no longer matches the databaseACCOUNT_STATUS is OPEN, but connecting as the pool user with the stored password gives ORA-01017

What does the error look like?

  • The username or password for the connection pool named |default|lo|, are invalid, expired, or the account is locked
  • ORA-28000: The account is locked.
  • ORA-28001: The account has expired. The password must be changed.
  • ORA-01017: invalid credential or not authorized; logon denied

Cause 1 of 3

The pool user is locked after too many failed logins

You seeACCOUNT_STATUS is LOCKED or LOCKED(TIMED), and the ORDS log or a test login shows ORA-28000

Check

When ORDS reports the pool credentials as invalid, expired or locked, look at the lock first. Oracle locks an account after FAILED_LOGIN_ATTEMPTS bad logins in a row, or when a DBA locks it by hand. LOCKED(TIMED) clears by itself after PASSWORD_LOCK_TIME; plain LOCKED stays until someone unlocks it.

Check
SELECT account_status, lock_date
  FROM dba_users
 WHERE username = 'ORDS_PUBLIC_USER';

Fix

Unlock the account with ALTER USER. If the lock came from failed logins, fix the stored pool password too (cause 3), or ORDS will keep trying the wrong one and lock the account again.

Fix
ALTER USER ORDS_PUBLIC_USER ACCOUNT UNLOCK;

Verify

ACCOUNT_STATUS reads OPEN and stays OPEN after ORDS has been running for a few minutes.

Verify
SELECT account_status FROM dba_users WHERE username = 'ORDS_PUBLIC_USER';

Confirmed by docs.oracle.com

Did this fix it?

Cause 2 of 3

The pool user's password reached the end of its lifetime

You seeACCOUNT_STATUS is EXPIRED or EXPIRED(GRACE), and EXPIRY_DATE is in the past

Check

An expired password makes the ORDS pool fail the same way. A profile with a PASSWORD_LIFE_TIME limit retires the password after that many days (a profile created without the clause uses 180), so a pool that worked for months can stop on its own. An admin running ALTER USER ... PASSWORD EXPIRE can also expire it, and so can a PDB import or clone when the password breaks the mandatory profile.

Check
SELECT p.resource_name, p.limit
  FROM dba_profiles p
  JOIN dba_users u ON u.profile = p.profile
 WHERE u.username = 'ORDS_PUBLIC_USER'
   AND p.resource_name IN ('PASSWORD_LIFE_TIME', 'PASSWORD_GRACE_TIME');

Fix

Give the user a new password, then put that same password into the ORDS pool wallet (cause 3 shows the command). Changing only one side leaves the pool broken.

Fix
ALTER USER ORDS_PUBLIC_USER IDENTIFIED BY "NewStrongPassword#1" ACCOUNT UNLOCK;

Verify

ACCOUNT_STATUS is OPEN and EXPIRY_DATE has moved into the future.

Verify
SELECT account_status, expiry_date FROM dba_users WHERE username = 'ORDS_PUBLIC_USER';

Confirmed by docs.oracle.com

Did this fix it?

Cause 3 of 3

The password in the ORDS pool wallet no longer matches the database

You seeACCOUNT_STATUS is OPEN, but connecting as the pool user with the stored password gives ORA-01017

Check

ORDS keeps each pool's database password in that pool's wallet, under databases/<pool-name>/wallet in the config folder. If someone reset the user's password in the database, or restored an old config folder, the wallet still holds the previous value. The account looks healthy, yet every pool login is refused.

Check
ords --config /path/to/config config --db-pool default list

Fix

Write the current password into the pool wallet with ords config secret. Use --password-stdin with a file so the password does not appear in the process list, then restart ORDS.

Fix
ords --config /path/to/config config --db-pool default secret --password-stdin db.password < secret.txt
rm secret.txt

Verify

ords config list shows db.password with the source Pool Wallet, and an ORDS URL such as /ords/ answers without the pool error after the restart.

Verify
ords --config /path/to/config config --db-pool default list | grep db.password

Confirmed by docs.oracle.com

Did this fix it?

How do I stop it coming back?

  • Assign ORDS_PUBLIC_USER a dedicated profile whose PASSWORD_LIFE_TIME your team chose on purpose, and put the rotation date in the runbook.
  • When you rotate the pool password, set PASSWORD_ROLLOVER_TIME on its profile first so both the old and new password work while you update the ORDS wallet.
  • Add a scheduled query on DBA_USERS that alerts when the ORDS pool account is anything other than OPEN or when EXPIRY_DATE is less than two weeks away.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.