17.10 - Example: Using AllRightsV - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

The following SELECT statement displays the privileges user Jones has on tables:

SELECT Tablename, AccessRight, GrantorName
       FROM DBC.AllRightsV WHERE UserName = ’Jones’;

Result:

TableName           AccessRight          GrantorName
----------          -----------          -------------
project             RS                   SYSTEMAD
project             DP                   SYSTEMAD
project             DT                   SYSTEMAD
project             D                    SYSTEMAD
project             I                    SYSTEMAD
project             U                    SYSTEMAD
project             R                    SYSTEMAD
employee            I                    SYSTEMAD
employee            U                    SYSTEMAD