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

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1144-175K
Language
English (United States)

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