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

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Database
Release Number
20.00
Published
June 2025
ft:locale
en-US
ft:lastEdition
2026-09-11
dita:mapPath
mbm1747160743883.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
dita:id
mdr1472255012272
lifecycle
latest

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 TRUSTED
USER 'SalesDept'
PASSWORD 'ikcerednep';