由于AUD$表等审计相关的表存放在SYSTEM表空间,因此为了不影响系统的性能,保护SYSTEM表空间,最好把AUD$移动到其他的表空间上。可以使用下面的语句来进行移动:
- [Oracle@www.linuxidc.com ~]$ sqlplus / as sysdba
- SQL> alter table aud$ move tablespace users;
- Table altered.
- SQL> alter index I_aud1 rebuild online tablespace users;
- Index altered.
- SQL> alter table audit$ move tablespace users;
- Table altered.
- SQL> alter index i_audit rebuild online tablespace users;
- Index altered.
- SQL> alter table audit_actions move tablespace users;
- Table altered.
- SQL> alter index i_audit_actions rebuild online tablespace users;
- Index altered.
主要是要迁移aud$, I_aud1。
