Informix Error -26464: A CREATE TRUSTED CONTEXT or ALTER TRUSTED CONTEXT statement specified <%s> more than once or the trusted context is already defined to be used by this authorization ID or PUBLIC.
Cause and resolution
A CREATE TRUSTED CONTEXT or ALTER TRUSTED CONTEXT statement specified <%s> more than once or the trusted context is already defined to be used by this authorization ID or PUBLIC.
The statement specified that <authorization-name> be allowed to use the trusted context, but the specified authorization ID or PUBLIC is already defined to use the trusted context, or the authorization ID was specified more than once in the statement. The authorization ID or PUBLIC must not already be allowed to use the trusted context, and it can only be specified once within a statement for a trusted context. The statement could not be processed. </authorization-name>
If the authorization ID or PUBLIC was specified more than once, remove the extra specifications of <authorization-name>, and re-issue the statement. If an ALTER TRUSTED CONTEXT statement that contained an ADD USE FOR clause, and the trusted context already was defined for use by that authorization ID or PUBLIC, use the REPLACE USE FOR clause instead to redefine the usage characteristics for the specified users to use the trusted context. </authorization-name>
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26464 fires when a CREATE/ALTER TRUSTED CONTEXT statement's authorization
ID/PUBLIC specification is redundant — per the official guidance.
- The named authorization ID or
PUBLICwas specified more than once in the statement, per the official guidance — the first named case. - The named authorization ID or
PUBLICis already defined to use the trusted context, per the official guidance — the second named case.
Solutions / Resolution
- If specified more than once, remove the extra specifications and reissue, per the official guidance.
- If an
ALTER TRUSTED CONTEXT ... ADD USE FORclause targets an already-defined authorization ID/PUBLIC, useREPLACE USE FORinstead, per the official guidance, to redefine the usage characteristics.
Examples
N/A
No specific triggering statement is documented beyond a redundant authorization
ID/PUBLIC specification.
Diagnostic Checks
- Check the statement for a repeated authorization ID/
PUBLIC, and check whether it's already defined to use the context — useREPLACE USE FORif so.
Related Errors / Related Topics
- -26463 — "User
is not unique for trusted context." A related duplicate- usage error, specific to duplicate users in WITH USE FORat creation time. - -26465 — "An ALTER TRUSTED CONTEXT statement for specified <%s> but the trusted
context is not currently defined to be used by this authorization ID or PUBLIC." The
mirror-image error, on
REPLACE/DROP USE FORtargeting a not-yet-defined authorization ID/PUBLICrather than an already-defined one.
The authorization ID/PUBLIC was specified redundantly or is already defined to use the
trusted context — remove duplicates, or use REPLACE USE FOR.