Manually Deleting Old Log Data - Advanced SQL Engine - Teradata Database

Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
prb1610499325399.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1092
lifecycle
previous
Product Category
Teradata Vantage™

You can use the Teradata SQL DELETE statement to purge outdated log data, for example DBC.LogOnOffV log data.

The user executing the SQL statement must have the DELETE privilege on the corresponding view.

For example:

You can purge DBC.LogOnOffV log data based on age. Teradata recommends retaining 90 days of log data and purging directly from the DBC.EventLog table.

DELETE FROM DBC.EventLog
WHERE (DATE-DateFld) > 90;

You can purge information for an account after a cost accounting period has closed.

DELETE FROM DBC.AMPUsageV
   WHERE Accountname = ’$M619’;