Informix Error -26000: Locks cannot be limited for a user who has administrative privileges.
Cause and resolution
Locks cannot be limited for a user who has administrative privileges.
You cannot set the IFX_SESSION_LIMIT_LOCKS option to the SET ENVIRONMENT statement for a user who has administrative privileges, such as user informix or a DBSA user. Users with administrative privileges are always allowed to have the maximum allowed number of locks per session.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26000 fires when SET ENVIRONMENT IFX_SESSION_LIMIT_LOCKS is issued for a user with
administrative privileges — per the official guidance, users like informix or a DBSA
user always get the maximum allowed number of locks per session, so limiting them isn't
allowed.
SET ENVIRONMENT IFX_SESSION_LIMIT_LOCKStargeting an administrative user, per the official guidance — the direct, only cause.
Solutions / Resolution
- Don't apply
IFX_SESSION_LIMIT_LOCKSto a user with administrative privileges, per the official guidance — those users always get the maximum lock allowance.
Examples
N/A
No specific triggering statement is documented beyond limiting locks for an administrative user.
Diagnostic Checks
- Check whether the target user has administrative privileges (
informixor a DBSA user), and don't apply the lock limit if so.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26000 in this set yet.
IFX_SESSION_LIMIT_LOCKS was applied to an administrative user, who always gets the
maximum lock allowance — don't limit administrative users.