Informix Error -26458: The trusted context specified authorization ID <authorization-name> </authorization-name> which is already specified for another trusted context.
Cause and resolution
The trusted context specified authorization ID <authorization-name> </authorization-name> which is already specified for another trusted context.
A CREATE TRUSTED CONTEXT or ALTER TRUSTED CONTEXT statement for specified SYSTEM AUTHID <authorization-name>, but this authorization ID is already defined to use a different trusted context. A system authorization ID that is defined as the SYSTEM AUTHID for a trusted context cannot be associated with any other trusted context as the SYSTEM AUTHID. </authorization-name>
Use the following query to determine which trusted context is already using the authorization ID:
SELECT CONTEXTNAME FROM SYSUSER.SYSTRUSTEDCONTEXT WHERE AUTHID = <authorization-name> </authorization-name>
To correct this error change the authorization ID for the trusted context and reissue the CREATE or ALTER statement.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26458 fires when CREATE/ALTER TRUSTED CONTEXT's SYSTEM AUTHID names an
authorization ID already used as another trusted context's SYSTEM AUTHID — per the
official guidance.
- The named authorization ID is already the
SYSTEM AUTHIDof a different trusted context, per the official guidance — the direct, only cause; aSYSTEM AUTHIDcan only belong to one trusted context.
Solutions / Resolution
- Query
SYSUSER.SYSTRUSTEDCONTEXTto find which trusted context already uses the authorization ID, per the official guidance:SELECT CONTEXTNAME FROM SYSUSER.SYSTRUSTEDCONTEXT WHERE AUTHID = 'authorization-name'; - Change the authorization ID for the new/altered trusted context and reissue the statement, per the official guidance.
Examples
Finding the conflicting context
SELECT CONTEXTNAME FROM SYSUSER.SYSTRUSTEDCONTEXT WHERE AUTHID = 'alice';
Diagnostic Checks
- Query
SYSUSER.SYSTRUSTEDCONTEXTfor the conflictingSYSTEM AUTHID, and change the authorization ID being specified.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26458 in this set yet.
A SYSTEM AUTHID was already in use by another trusted context — query
SYSUSER.SYSTRUSTEDCONTEXT to find it, and use a different authorization ID.