16.10 - Disabling Access Logging with the END LOGGING Statement - 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)

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 Utilities.