Question: Suppose you wish to create an audit trail of changes to the takes relation. a. Define triggers to create an audit trail, logging the information
Suppose you wish to create an audit trail of changes to the takes relation.
a. Define triggers to create an audit trail, logging the information into a relation called, for example, takes trail. The logged information should include the user-id (assume a function user id() provides this information) and a timestamp, in addition to old and new values. Youmust also provides the schema of the takes trail relation.
b. Can the preceding implementation guarantee that updates made by a malicious database administrator (or someone who manages to get the administrator’s password) will be in the audit trail? Explain your answer.
Step by Step Solution
3.43 Rating (153 Votes )
There are 3 Steps involved in it
a Schema for the takes trail table Trigger for INSERT Trigger for UPDATE Tr... View full answer
Get step-by-step solutions from verified subject matter experts
