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

1 Expert Approved Answer
Step: 1 Unlock

a Schema for the takes trail table Trigger for INSERT Trigger for UPDATE Tr... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Database System Concepts Questions!