15.10 - Example: Logging the Denied First Insert Into a Row-Level Security-Secured Table - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

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;