Definer Authorization Object Example | Teradata Vantage - Example: Creating a DEFINER Authorization for an External Security Clause - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

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, once it has been validated, to use the specified user context to run the external routine.

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