Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table auditing

Status
Not open for further replies.

craig322

MIS
Apr 19, 2001
108
US
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.

TIA
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top