Verifying Privileges on Views, Macros, and Procedures - Advanced SQL Engine - Teradata Database

SQL Data Control Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
sqd1591723147563.ditamap
dita:ditavalPath
sqd1591723147563.ditaval
dita:id
B035-1149
lifecycle
previous
Product Category
Teradata® Vantage™ NewSQLEngine
Statement Submitted Privileges That the System Verifies
CREATE MACRO Any privileges needed to perform the SQL statements in the macro body.
CREATE PROCEDURE (SQL Form) Any privileges needed to perform the SQL statements in the procedure body.
  • CREATE PROCEDURE (External Form)
  • ALTER PROCEDURE (External Form)
CREATE EXTERNAL PROCEDURE and any privileges needed to access the specified tables, columns, and views using any of the valid API function calls.
CREATE PROCEDURE ... SQL SECURITY OWNER (both forms) CREATE OWNER PROCEDURE and either of the following:
  • For the SQL form, any privileges needed on the underlying tables, columns, and views to perform the SQL statements in the procedure body.
  • For the external form, any privileges needed on the underlying tables, columns, and views using any of the valid API function calls.
CREATE VIEW SELECT on the underlying base tables and views.

Vantage also verifies that the appropriate privileges exist on the target objects for any user who attempts to access a view, or perform a macro or procedure. This ensures that a change to a target object does not cause a violation of privileges when the view, macro, or procedure referencing that object is invoked.