Database Preventive Maintenance | SystemFE Macros | Teradata Vantage - Database Preventive Maintenance - Analytics Database - Teradata Vantage

SystemFE Macros

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-10-30
dita:mapPath
iqw1628112378327.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
usl1472251351342
lifecycle
latest
Product Category
Teradata Vantage™

Running Macros Weekly

For preventive maintenance, Teradata recommends you run the following macros in the following order at least on a weekly basis:
  • EventCount
  • AllRestarts
  • DiskEvents
  • MiniCylPacks
  • PackDisk
  • ListEvent

Generating the Preventive Maintenance Report

Executing the preceding macros in the order provides a Preventive Maintenance Report listing summary information followed by detailed information for the week. Used in this manner, the macros should be executed with ‘Date-7’ as the FromDate and ‘Date-1’ as the ToDate. For example, the following BTEQ statement provides a report listing all the events that occurred on the database during the specified time period (that is, the last 7 days excluding the date of today) with the number of occurrences:

Exec EventCount (Date-7, Date-1);

If you have access to a client user ID or access to the system console, you can write a BTEQ script in the preceding syntax. Then, you can run the script on a weekly basis without changing the date parameter.