手机版
你好,游客 登录 注册
背景:
阅读新闻

Oracle 迁移与审计相关表和索引的表空间

[日期:2011-11-10] 来源:Linux社区  作者:huang_xw [字体:大 中 小]

由于AUD$表等审计相关的表存放在SYSTEM表空间,因此为了不影响系统的性能,保护SYSTEM表空间,最好把AUD$移动到其他的表空间上。可以使用下面的语句来进行移动:

  1. [Oracle@www.linuxidc.com ~]$ sqlplus / as sysdba  
  2.   
  3. SQL> alter table aud$ move tablespace users;  
  4.   
  5. Table altered.  
  6.   
  7. SQL> alter index I_aud1 rebuild online tablespace users;  
  8.   
  9. Index altered.  
  10.   
  11. SQL> alter table audit$ move tablespace users;  
  12.   
  13. Table altered.  
  14.   
  15. SQL> alter index i_audit rebuild online tablespace users;  
  16.   
  17. Index altered.  
  18.   
  19. SQL> alter table audit_actions move tablespace users;  
  20.   
  21. Table altered.  
  22.   
  23. SQL> alter index i_audit_actions rebuild online tablespace users;  
  24.   
  25. Index altered.  

主要是要迁移aud$, I_aud1。

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款