--查看Table硬碟使用狀況
select segment_name,segment_type, sum(bytes/1024/1024/1024) GB
from dba_segments
--where segment_name='&Your_Table_Name'
group by segment_name,segment_type;
--查看db 空間使用狀況
select
"Reserved_Space(MB)", "Reserved_Space(MB)" - "Free_Space(MB)" "Used_Space(MB)","Free_Space(MB)", ("Reserved_Space(MB)" - "Free_Space(MB)")/"Reserved_Space(MB)"*100||'%' "Used Percent"
from(
select
(select sum(bytes/(1014*1024)) from dba_data_files) "Reserved_Space(MB)",
(select sum(bytes/(1024*1024)) from dba_free_space) "Free_Space(MB)"
from dual );
沒有留言:
張貼留言