展开全部
查看oracle中表32313133353236313431303231363533e59b9ee7ad9431333337626237空间需要用具有dba权限的用户使用以下语句:select distinct tablespace_name from dba_data_files;
查询结果:
另外,可通过其他方法查看一下oracle中表空间的使用率,语句如下:select total.tablespace_name,
round(total.MB, 2) as Total_MB,
round(total.MB - free.MB, 2) as Used_MB,
round((1 - free.MB / total.MB) * 100, 2) || '%' as Used_Pct
from (select tablespace_name, sum(bytes) / 1024 / 1024 as MB
from dba_free_space
group by tablespace_name) free,
(select tablespace_name, sum(bytes) / 1024 / 1024 as MB
from dba_data_files
group by tablespace_name) total
where free.tablespace_name = total.tablespace_name
order by used_pct desc;
查询结果: