ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 将审计表aud$移到专门的空间

将审计表aud$移到专门的空间

原创 Linux操作系统 作者:yanyp 时间:2009-12-02 17:00:57 0 删除 编辑


alter  system set audit_trail=DB_EXTENDED scope=spfile;
SQL>audit select,insert,update,delete on mydb.yyp by access whenever successful;

From:


Oracle Security - For auditing, move the aud$ to another tablespace

If you are performing any kind of auditing on the database, we recommend that you move the aud$ tablespace from the system tablespace to another tablespace. In this example, we are moving the aud$ tablespace to a tablespace called SYSAUDIT_D.

If you are on ASM, you would change the file location to an ASM diskgroup such as ‘+data’.

  1. def DB='&1'  
  2. def FS='&2'  
  3.   
  4. CREATE TABLESPACE SYSAUDIT_D DATAFILE  
  5.   '/data/oracle/&DB/&FS/sysaudit_d_01.dbf' SIZE 200m AUTOEXTEND OFF  
  6. LOGGING ONLINE PERMANENT  
  7. EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;  
  8.   
  9. create table audx tablespace SYSAUDIT_D as select * from aud$ where 1 = 2;  
  10. rename AUD$ to AUD$$;  
  11. rename audx to aud$;  
  12. drop index i_aud1;  
  13.   
  14. create index i_aud1 on aud$(sessionid, ses$tid) tablespace SYSAUDIT_D;  
  15.   
  16. set echo off

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/230160/viewspace-621213/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: eof函数
请登录后发表评论 登录
全部评论

注册时间:2009-04-12

  • 博文量
    139
  • 访问量
    196029