Informix Error -26702: User (<username>) cannot connect to the database server because the user account is locked. </username>
Cause and resolution
User (<username>) cannot connect to the database server because the user account is locked. </username>
To unlock the user account, run the ALTER USER statement with the ACCOUNT UNLOCK option. Only a database server administrator (DBSA) can manage user accounts. In a non-root installation, the DBSA is the user who installed the product. Log in as the user who installed this database server to modify user accounts.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26702 fires when a locked user account attempts to connect — per the official guidance.
- The user account is locked, per the official guidance — the direct, only cause.
Solutions / Resolution
- Run
ALTER USER ... ACCOUNT UNLOCKas the DBSA, per the official guidance, to unlock the account — in a non-root installation, the DBSA is the user who installed the product.
Examples
Unlocking a user account
ALTER USER alice ACCOUNT UNLOCK;
Diagnostic Checks
- Check the user account's lock status, and unlock it as the DBSA if needed.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26702 in this set yet.
A locked user account tried to connect — a DBSA must run ALTER USER ... ACCOUNT UNLOCK.