Definer Authorization Object Example | VantageCloud Lake - Example: Creating a DEFINER Authorization for an External Security Clause - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

This example creates a specific definer authorization name sales with all external routines that contain the external security clause EXTERNAL SECURITY DEFINER sales. The authorization object name sales is part of the text specified for the external security clause. This specification causes the system to validate the authorization object SYSLIB.sales in the data dictionary and then, after validation, to use the specified user context to run the external routine.

CREATE AUTHORIZATION SYSLIB.sales 
AS DEFINER TRUSTED
USER 'SalesDept'
PASSWORD 'ikcerednep';