Disabling Access Logging | Teradata Vantage - Disabling Access Logging with the END LOGGING Statement - Advanced SQL Engine - Teradata Database

Security Administration

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

You can use the END LOGGING statement to terminate access logging on any user, action, or object for which one or more logging rules are currently active.

An END LOGGING statement generates an error if a corresponding BEGIN LOGGING statement is not currently in effect for the database name specified in the END LOGGING statement.

Also consider the following END LOGGING characteristics:
  • You cannot omit the BY username clause to apply the END LOGGING to all users.
  • The END LOGGING statement terminates access logging on the database objects included in the statement. If the END LOGGING statement terminates all logging rules for a particular user, database, or object, the system deletes the row from DBC.AccLogRuleTbl.

To disable access logging:

  1. Query the DBC.AccLogRules view to display the list of BEGIN LOGGING statements currently in effect:
    SELECT * FROM DBC.AccLogRulesV;
  2. Submit an END LOGGING statement for each BEGIN LOGGING statement in the list that you want to end.
  3. Issue a DROP MACRO statement for DBC.AccLogRule macro if you are ending all logging.
    If you do not issue an END LOGGING statement for every rule in DBC.AccLogRules, access logging continues even if you drop the DBC.AccLogRule macro and reset the database.
  4. Execute the tpareset command to set the change.

    For information on use of the tpareset command, see Teradata Vantageā„¢ - Database Utilities , B035-1102 .