查詢Oracle表空間信息 |
發(fā)布時間: 2012/9/5 16:49:30 |
1.查看當前用戶每個表占用空間的大小: Select Segment_Name,Sum(bytes)/1024/1024 From User_Extents Group By Segment_Name; 2.查看每個表空間占用空間的大。 Select Tablespace_Name,Sum(bytes)/1024/1024 From Dba_Segments Group By Tablespace_Name;-
Select Segment_Name,Sum(bytes)/1024/1024 From User_Extents Group By Segment_Name order by Sum(bytes)/1024/1024 desc; 4.查詢出系統(tǒng)表空間的大小,并按大小進行降序排列(需要SYSDBA的權限): Select Tablespace_Name,Sum(bytes)/1024/1024 From Dba_Segments Group By Tablespace_Name order by Sum(bytes)/1024/1024 desc;
本文出自:億恩科技【www.allwellnessguide.com】 |