16.10 - About Removing Historical Data - Teradata Database

Teradata Database Administration

Product
Teradata Database
Release Number
16.10
Release Date
April 2018
Content Type
Administration
Publication ID
B035-1093-161K
Language
English (United States)
Historical data in TDMaps tables can take up too much space. To clean up old data and regain space, periodically run TruncateHistorySP. For example:
call tdmaps.truncatehistorysp(date '2016-01-01', numdel);
*** Procedure has been executed.
*** Warning:  3212: The stored procedure returned one or more result sets.
 
NumDeletedRows
--------------
          35
 
*** ResultSet# 1 : 3 rows returned by "TDMAPS.TRUNCATEHISTORYSP".
 
Table           NumRowsDeleted
--------------  --------------
ActionHistory      10
LogTbl             20
AnalyzeLogTbl       5