今天发现有个数据库的sysaux表空间暴涨,快要100%了,如图:查看一下是什么内容占用了空间:是awr的相关内容,需要重建awr来释放空间,具体重建步骤,请参考我的另一篇博文:http://blog.itpub.net/20893244/viewspace-2146541/
~~~~~~~~~~~~~~临时删除的办法~~~~~~~~~~~~~~~··
truncate table WRH$_ACTIVE_SESSION_HISTORY;
truncate table WRH$_EVENT_HISTOGRAM;
truncate table WRH$_SQLSTAT;
truncate table WRH$_LATCH_MISSES_SUMMARY;
truncate table WRH$_LATCH;
truncate table WRH$_SYSSTAT;
truncate table WRH$_SEG_STAT;
truncate table WRH$_PARAMETER;
truncate table WRH$_SYSTEM_EVENT;
truncate table WRH$_SQL_PLAN;
truncate table WRH$_DLM_MISC;
truncate table WRH$_SERVICE_STAT;
truncate table WRH$_TABLESPACE_STAT;
truncate table WRH$_ROWCACHE_SUMMARY;
truncate table WRH$_MVPARAMETER;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~···
select distinct 'truncate table '||segment_name||';',s.bytes/1024/1024
from dba_segments s
where s.segment_name like 'WRH$%'
and segment_type in ('TABLE PARTITION', 'TABLE')
and s.bytes/1024/1024>100
order by s.bytes/1024/1024/1024 desc;
新闻标题:oracle11gsysaux表空间使用率非常高的问题解决
分享网址:
http://cqcxhl.cn/article/gdghii.html