Bo's Oracle Station

查看: 1805|回复: 0

课程第54次(2017-11-16星期四)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-11-16 20:58:22 | 显示全部楼层 |阅读模式
察看强制性审计和sysdba/sysoper审计的审计轨迹的定位语句:
  1. select spid from v$session s , v$process p
  2.     where s.terminal='pts/2' and s.paddr=p.addr  ;
复制代码
标准审计11g和12c的默认选项不一样:
Screenshot.png
  1. select  count(*) from aud$;

  2. select  * from dba_obj_audit_opts;

  3. select * from dba_priv_audit_opts;

  4. select * from dba_stmt_audit_opts;

  5. noaudit drop user;

  6. select s.audit_option from dba_stmt_audit_opts s
  7. minus
  8. select  p.privilege from dba_priv_audit_opts p;
复制代码
在做标准审计之前,建议挪动aud$:

  1. create tablespace tbsaudit datafile '/u01/app/oracle/oradata/orcl/tbsaudit01.dbf'  
  2.    size 30M autoextend on ;  
  3.    
  4. alter table aud$ move tablespace tbsaudit;  

  5. select tablespace_name from dba_tables where table_name='AUD



  6. ;
复制代码

aud$和dba_audit_trail是一回事:
Screenshot.png

Screenshot-1.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-3-29 23:57 , Processed in 0.035403 second(s), 27 queries .

快速回复 返回顶部 返回列表