Logging Frequency - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

The frequency with which to log events.

A log entry is made for either the first, the last, the first and last, or each time during any session that the specified action is attempted against the specified object.

If logging is already initiated for an action on an object, a subsequent request to begin logging for the same object, action, user, and DENIALS specification causes only the current frequency of logging to be changed to whatever the new request specifies.

FIRST
A log entry is made the first time during any session that the specified action is attempted against the specified object.
The default is FIRST.
LAST
A log entry is made the last time during any session that the specified action is attempted against the specified object.
FIRST AND LAST
A log entry is made the first and last time during any session that the specified action is attempted against the specified object.
The only valid combination of logging frequencies is FIRST AND LAST.
EACH
A log entry is made each time during any session that the specified action is attempted against the specified object.
The only valid options for auditing row-level security enforcement are FIRST and EACH.