Informix Error -19810: Cannot set database password for a role.
Cause and resolution
Cannot set database password for a role.
You can set a database password only for a user.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-19810 fires when a database password is set for a role instead of a user — per the official guidance. A database password can only be set for a user.
- A database password set for a role, per the official guidance — the direct, only cause.
Solutions / Resolution
- Set the database password for a user instead, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond targeting a role instead of a user.
Diagnostic Checks
- Check whether the target of the password-setting operation is a role, and redirect it to a user.
Related Errors / Related Topics
- -19806 — "Cannot grant database privileges or default role to a role." A related role-restriction error, about database-level privileges/default roles rather than passwords, but the same general "roles can't take user-only operations" pattern.
A database password can't be set for a role — set it for a user instead.