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


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

  1. [Oracle@www.bkjia.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

相关内容