TRUSTED_CONTEXT global variable

This built-in global variable contains the name of the trusted context that was matched to establish the current trusted connection.

This global variable has the following characteristics:
  • It is read-only, with values maintained by system.
  • The type is VARCHAR(128).
  • The schema is SYSIBM.
  • The scope is session.

If no trusted connection is established, the value of the TRUSTED_CONTEXT global variable is NULL.