Example: Logging the Denied First Insert into a Row-Level Security-Secured Table - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

This example logs the first insert into table emp_record in database secure_db when access is denied because the session does not have the OVERRIDE INSERT CONSTRAINT privilege for constraint classification_level or when the INSERT security policy UDF for the constraint permits the insert and you either specify a value for the constraint column, or do not have an assigned session constraint value for the constraint.

     BEGIN LOGGING DENIALS
     ON FIRST OVERRIDE INSERT
     FOR CONSTRAINT classification_level
     ON TABLE secure_db.emp_record;