由于AUD$表等审计相关的表存放在SYSTEM表空间,因此为了不影响系统的性能,保护SYSTEM表空间,最好把AUD$移动到其他的表空间上。可以使用下面的语句来进行移动:
[oracle@cent4 ~]$ 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。
将AUD$表移至其他表空间以优化Oracle系统性能
本文介绍了如何将AUD$表等审计相关表从SYSTEM表空间移动到其他表空间,以避免影响系统性能并保护SYSTEM表空间。通过执行特定SQL语句,可以成功地将AUD$表、I_aud1、audit$和audit_actions表移动到users表空间,并重建索引,从而实现资源优化。
1540

被折叠的 条评论
为什么被折叠?



