Welcome 微信登录

首页 / 数据库 / MySQL / Oracle 迁移与审计相关表和索引的表空间

由于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。Oracle utl_file_dir参数详解Oracle audit_sys_operations参数详解相关资讯      Oracle数据库  Oracle入门教程  oracle数据库教程 
  • Oracle数据库全球化  (03月01日)
  • Oracle数据库日期过滤方法性能比较  (02/02/2015 13:20:26)
  • Oracle数据库安装中端口被占用问题  (10/29/2014 07:42:24)
  • 在CentOS 6.6上搭建C++运行环境并  (10/10/2015 19:44:40)
  • Oracle数据库无法使用localhost和  (11/14/2014 16:39:10)
  • 使用SQLT来构建Oracle测试用例  (08/28/2014 06:17:41)
本文评论 查看全部评论 (0)
表情: 姓名: 字数