首页 > Linux操作系统 > Linux操作系统 > ORACLE audit
类型:
1. mondatory audit:针对sysdba,sysoper权限用户;
2. standard audit:标准级别,object级,11g默认开启
3. FGA:精细监控,行级监控
4. DBA:针对DBA操作的监控
开启standard audit:需要修改系统参数并重启数据库
audit_file_dest:在文件系统存放audit记录文件;
audit_trail:
os:开启audit,将记录放置在OS的audit_file_dest中.
db:开启audit,将记录放置在database的sys.aud$中.
db,extended:开启audit,将记录放置在database的sys.aud$中.并且记录执行的具体语句.
xml:开启audit,将记录以xml文件的形式放置在OS的audit_file_dest中.
xml,extended:开启audit,将记录以xml文件的形式放置在OS的audit_file_dest中.并且记录执行的具体语句
设置监控内容:
1. 设置system privilege:针对整个系统;
其中"create all table"针对在全部的schema;"create table"针对自己的schema
2. 设置object privilege:针对object
3. 设置statement:针对DDL
选项:by session(基于session) / by access(基于访问)
查看方式:
视图:select * from dba_audit_trail --> 表:select * from sys.aud$
视图:select * from dba_fga_audit_trail --> 表:select * from sys.fga_log$
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24751738/viewspace-707249/ ,如需转载,请注明出处,否则将追究法律责任。