处理SM/AWR占用sysaux很大空间的问题

本文详细介绍了如何处理SM/AWR在SYSAUX表空间中占用大量空间的问题,包括计算occupants大小、查看无效索引、统计表空间、查询SYSAUX区段大小,并通过删除历史分区和优化SQL_PLAN来释放空间。
摘要由CSDN通过智能技术生成

1.计算SYSAUX的occupants的大小

 

select *

  from (SELECT occupant_name "Item",

               trunc((space_usage_kbytes / 1048576), 2) "Space Used (GB)",

               schema_name "Schema",

               move_procedure "Move Procedure"

          FROM v$sysaux_occupants

         ORDER BY 2 desc)

 where rownum <= 10

 

2.查看无效的index

 

select * from dba_indexes where degree not in ('1','0','DEFAULT');

 

3.统计表空间大小

 

select    b.file_id as file_id,

          b.tablespace_name as tablespace_id,

          b.file_name as file_name,

          round(b.bytes / 1024 / 1024 ) as total_size,

          round((b.bytes / 1024 / 1024 ) - sum(nvl(a.bytes / 1024 / 1024 , 0))) as used_size,

          round(sum

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值