Are there any built in features which will allow you to audit actions on specific tables? For example, I want to have a record of all inserts/deletes for a specific table.
Yes, Accesslogging is an included feature in Teradata. You can log only Inserts/Deletes for a given table. The log captures the SQL statement, userid, and start time of the event.
Here is a sample SQL to enable logging:
Begin logging on each insert, delete on table mydb.mytable;
You can then query the "table" DBC.AccessLog to see the results of the logging. One note of caution, DBC.AccessLog is not maintained by the system. The system only inserts rows, you have to role your own delete to keep the table to a reasonable size.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.