首页 > 数据库 > Oracle > AWR数据导致SYSAUX表空间一直增长的问题
1) drop expired partitions (DDL)
2) purge by callback (anything can happen here, but mostly no-ops or regular DELETE operations) 3) purge regular non-partitioned tables (i.e, DELETE)
4) split partitions (DDL)
解决办法:
有两种解决办法
1.安装bug补丁 Patch 14084247
2.手工进行清理
a.修改awr数据保留为1天
EXEC DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTING(1440,60);
第一次执行时可能会报下面的错误
ERROR at line 1:
ORA-13541: system moving window baseline size (691200) greater than retention
(86400)
ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 174
ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 222
ORA-06512: at line 1
EXEC DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTING(1440*8,60)
查询AWR保留时间
select * from dba_hist_wr_control
转自 http://blog.itpub.net/23850820/viewspace-2093662/
以上手动清除的方法我执行时并没有生效,我采用了拆分分区的方法,将指定snap_id的快照移到新的分区中,然后再删除分区,注意重建分区索引。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30036720/viewspace-2097824/ ,如需转载,请注明出处,否则将追究法律责任。