Table Changes That Can Be Tracked - Advanced SQL Engine - Teradata Database

Database Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
upb1600054424724.ditamap
dita:ditavalPath
upb1600054424724.ditaval
dita:id
B035-1093
lifecycle
previous
Product Category
Teradata Vantageā„¢

In addition to collecting access counts (which are done once per request), object use counts collect the number of updates, deletes, and inserts performed against database tables involved in the request. This information is useful in calculating table row count estimations, statistics extrapolations, and thresholds for statistics collection.

Vantage supports these requests and logs them to the Data Dictionary table DBC.ObjectUsage:

  • Selects
  • Updates
  • Deletes
  • Inserts
  • Merges (including merge, merge-delete, and merge-update)
  • Upserts
  • Statistics access
To see how many rows are updated, inserted, and deleted in a request (not categorized by table), enable database query logging and see the StmtDMLRowCount field in either DBC.DBQLogTbl or the DBC.QryLogV and DBC.QryLogV_sz views.