-20373   A CREATE OR ALTER TRUSTED CONTEXT STATEMENT SPECIFIED authorization-name MORE THAN ONCE OR THE TRUSTED CONTEXT IS ALREADY DEFINED TO BE USED BY THIS AUTHORIZATION ID, PROFILE NAME, OR PUBLIC.

Explanation

The statement specified that authorization-name be allowed to use the trusted context, but cannot due to one of the following reasons:
  • The specified authorization ID, profile name, or PUBLIC is already defined to use the trusted context
  • The profile name or authorization ID was specified more than once in the statement
The authorization ID, profile name, 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 token authorization-name might return a RACF® profile name. A profile name is returned as a single token in the following format: PROFILE: profile-name.

System action

The statement cannot be processed.

Programmer response

Complete one of the following actions based on what the error is:
  • 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, profile name, or PUBLIC, use the REPLACE USE FOR clause instead to redefine the usage characteristics for the specified users to use the trusted context.
  • If the authorization ID, profile name, or PUBLIC was specified more than once, remove the extra specification of authorization-name, and re-issue the statement.

SQLSTATE

428GM