Maintaining Logs | Teradata Vantage - 17.00 - 17.05 - Maintaining the Logs - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Database Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
17.05
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
rgu1556127906220.ditamap
dita:ditavalPath
lze1555437562152.ditaval
DBQL log maintenance is automated. To set up DBQL log maintenance, do the following things:
  1. Run the DIP script DIPPDCR.
    This creates DBQL (and other system performance) history tables and the data extraction macros that populate the tables.
  2. Use the Viewpoint portlet Performance Data Collection to set up the DBQL job and run it every day.
    This job moves data from the DBQL log tables to the history tables created by DIPPDCR. You can also use the portlet to specify how long the history tables are retained.
  3. Create and maintain an executable BTEQ script file to keep your final BEGIN QUERY LOGGING or REPLACE QUERY LOGGING statements.
    Do this in case a system initialization is required in the future for disaster recovery or to migrate to a new platform. After the database has been restored, you can start a BTEQ session and run the script to easily repopulate DBQLRuleTbl and rebuild your rules cache.