If you have created your database with dbca, or have manually run the secconf.sql script after your database was created, the "DROP USER" is audited by default in Oracle 12c.
This is a part of what Oracle calls default auditing which I have written about in another post.
Here is how you can find information about dropped users:
select os_username,username,userhost,timestamp,obj_name,action_name,priv_used from dba_audit_trail where action_name='DROP USER' and to_char(cast ( timestamp as date),'dd.mm.yyyy') > '08.02.2019' AND OBJ_NAME IN ('JIM','DWIGHT') order by timestamp desc;Result:
OS_USERNAME | USERNAME | USERHOST | TIMESTAMP | OBJ_NAME | ACTION_NAME | PRIV_USED |
---|---|---|---|---|---|---|
root | SYSTEM | hostname1.mydomain.com | 12.02.2019 11:31:05 | JIM | DROP USER | DROP USER |
root | SYSTEM | hostname1.mydomain.com | 12.02.2019 11:28:10 | DWIGHT | DROP USER | DROP USER |
No comments:
Post a Comment