Scenario Sometime you may need to find out who ran some script or who is accessing the database or who…