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.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™

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';