Setting Up the DBC.AccLogRule Macro - Analytics Database - Teradata Vantage

Security Administration

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-05
dita:mapPath
hjo1628096075471.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
zuy1472246340572
lifecycle
latest
Product Category
Teradata Vantageā„¢

When you run a BEGIN LOGGING statement, it creates logging rules which it stores in the DBC.AccLogRuleTbl table. Then for each session, Vantage 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 security DBC.AccLogRule macro, which populates the DBC.AccLogrule table with logging information. The DBC.AccLogRule macro may already exist as a result of Vantage setup.
  2. Run the tpareset utility to initialize the macro.

    For instructions on use of the Database Initialization Program (DIP), see Teradata Vantageā„¢ - Database Utilities, B035-1102.

See also Disabling Access Logging with the END LOGGING Statement.