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;