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 showFix it fast
Most common cause, 1 of 3The pool user is locked after too many failed logins
Unlock the account with ALTER USER.
ALTER USER ORDS_PUBLIC_USER ACCOUNT UNLOCK;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.
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.
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:
- 1The pool user is locked after too many failed logins
ACCOUNT_STATUS is LOCKED or LOCKED(TIMED), and the ORDS log or a test login shows ORA-28000 - 2The pool user's password reached the end of its lifetime
ACCOUNT_STATUS is EXPIRED or EXPIRED(GRACE), and EXPIRY_DATE is in the past - 3The password in the ORDS pool wallet no longer matches the database
ACCOUNT_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 lockedORA-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.
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.
ALTER USER ORDS_PUBLIC_USER ACCOUNT UNLOCK;Verify
ACCOUNT_STATUS reads OPEN and stays OPEN after ORDS has been running for a few minutes.
SELECT account_status FROM dba_users WHERE username = 'ORDS_PUBLIC_USER';Confirmed by docs.oracle.com
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.
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.
ALTER USER ORDS_PUBLIC_USER IDENTIFIED BY "NewStrongPassword#1" ACCOUNT UNLOCK;Verify
ACCOUNT_STATUS is OPEN and EXPIRY_DATE has moved into the future.
SELECT account_status, expiry_date FROM dba_users WHERE username = 'ORDS_PUBLIC_USER';Confirmed by docs.oracle.com
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.
ords --config /path/to/config config --db-pool default listFix
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.
ords --config /path/to/config config --db-pool default secret --password-stdin db.password < secret.txt
rm secret.txtVerify
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.
ords --config /path/to/config config --db-pool default list | grep db.passwordConfirmed by docs.oracle.com
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.