CREATE AUTHORIZATION Examples | Teradata Vantage - Example: Creating a DEFINER Authorization - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

The following example creates a DEFINER authorization object with the name sales_processing for the user name salesmng and the user password mysecret.

    CREATE AUTHORIZATION sales_processing AS DEFINER
    USER 'salesmng'
    PASSWORD 'mysecret';

The database uses this OS platform user context to execute all external routines that contain an EXTERNAL SECURITY DEFINER clause when run under the same OS user authorization independent of the user who runs the routine.