Earlier in this course, you created a COIN database. In this exercise, you will write a SQL script that will allow you to collect audit records for the use of certain SQL statements against the database.
Write a statement to audit each of the following SQL statements:
- The
CREATE TABLE command against any table
- The
DROP TABLE command against any table
- The
TRUNCATE TABLE command against any table
- Any
SELECT statements by user BID1
- Any
SELECT statements by user BID2
- Any INSERT statements
- Any unsuccessful UPDATE TABLE statements
- Any successful
DELETE TABLE statements
You should also include the statements to turn off the auditing for each of these options.