16.10 - Setting Up the DBC.AccLogRule Macro - Teradata Database

Teradata Database Security Administration

Product
Teradata Database
Release Number
16.10
Release Date
June 2017
Content Type
Administration
Security
Publication ID
B035-1100-161K
Language
English (United States)

When you execute a BEGIN LOGGING statement, it creates logging rules which it stores in the DBC.AccLogRuleTbl table. Then for each session, Teradata Database looks in the DBC.AccLogRuleTbl to determine which privilege checks must generate log entries for a specified database user, action, or object.

Before enabling logging, you must do the following to create the DBC.AccLogRule table.

  1. Run the DIPACC script to create the special security DBC.AccLogRule macro, which populates the DBC.AccLogrule table with logging information. The DBC.AccLogRule macro may already exist as a result of Teradata Database setup.
  2. Run the tpareset utility to initialize the macro.

    For instructions on use of the Database Initialization Program (DIP), see Utilities.

See also Disabling Access Logging with the END LOGGING Statement.