Informix Error -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.
Cause and resolution
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.
An ALTER TRUSTED CONTEXT statement for attempted to replace or remove the ability for <authorizationname> to use the trusted context, but the specified authorization ID or PUBLIC is not currently defined to use the trusted context. The statement could not be processed. </authorizationname>
If an ALTER TRUSTED CONTEXT statement that contained a REPLACE USE FOR clause, and the trusted context was not already was defined for use by that authorization ID or PUBLIC, use the ADD USE FOR clause instead to define the trusted context to be used by the specified users. If the ALTER TRUSTED CONTEXT statement contained the DROP USE FOR clause, none of the specified authorization IDs or PUBLIC were currently defined to use the trusted context.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26465 fires when ALTER TRUSTED CONTEXT tries to replace/remove usage for an
authorization ID/PUBLIC that isn't currently defined to use the context — per the
official guidance.
- A
REPLACE USE FOR/DROP USE FORclause named an authorization ID/PUBLICnot currently defined to use the trusted context, per the official guidance — the direct, only cause.
Solutions / Resolution
- For
REPLACE USE FOR, useADD USE FORinstead, per the official guidance, if the authorization ID/PUBLICisn't already defined. - For
DROP USE FOR, confirm the named authorization IDs/PUBLICare actually currently defined to use the context, per the official guidance, before dropping.
Examples
N/A
No specific triggering statement is documented beyond targeting an undefined
authorization ID/PUBLIC.
Diagnostic Checks
- Check whether the authorization ID/
PUBLICis currently defined to use the trusted context, and useADD USE FORinstead ofREPLACE USE FORif not.
Related Errors / Related Topics
- -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." The mirror-image error, on
ADD USE FORtargeting an already-defined authorization ID/PUBLICrather than one not yet defined.
REPLACE/DROP USE FOR targeted an authorization ID/PUBLIC not currently defined to
use the trusted context — use ADD USE FOR instead, or verify the target.