16.20 - BEGIN LOGGING - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

Purpose

Starts the auditing of SQL requests that attempt to access data.

The system creates a log entry when it checks privileges on the SQL request. For a detailed description of access logging options and use cases, see “Monitoring Database Access” in Teradata Vantage™ NewSQL Engine Security Administration, B035-1100.

Required Privileges

You must have the EXECUTE privilege on the DBC.AccLogRule macro to use the BEGIN LOGGING statement to initiate access logging on database objects and operations.

Privileges Granted Automatically

None.

Prerequisites

When you initially set up logging, before you can use the BEGIN LOGGING statement, you must run the DIPACC script to create the DBC.ACCLogRule macro, which allows you to create logging rules in the DBC.AccLogRuleTbl using BEGIN LOGGING statements. For more information, see Teradata Vantage™ NewSQL Engine Security Administration, B035-1100.

Syntax