Example: Creating a DEFINER Authorization - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

This example creates a default definer authorization with the name accounting in the SYSLIB database for the client user name accdept and user password nesuahkcotsk.

All external routines in the SYSLIB database that contain an EXTERNAL SECURITY DEFINER clause are run using the user context defined by this request.

If the SYSLIB database already has a default definer authorization, trying to create another one causes an error.

CREATE AUTHORIZATION SYSLIB.accounting 
AS DEFINER DEFAULT TRUSTED
USER 'accdept'
PASSWORD 'nesuahkcotsk';