select t1.tablespace_name,curr_b/1024/1024/1024,max_b/1024/1024/1024,curr_b/max_b from(select tablespace_name,sum(maxbytes) max_b from dba_data_files group by tablespace_name) t1join(select tablespace_name,sum(bytes) curr_b from dba_segments group b…
1.查询表空间的总容量 as MB from sys.dba_data_files a group by a.TABLESPACE_NAME 2.查询表空间的空闲容量 select b.TABLESPACE_NAME, ) as extends, as MB, sum(b.BLOCKS) as blocks from sys.dba_free_space b group by b.TABLESPACE_NAME 3.查询表空间的使用情况 select total.TABLESPACE_NAME,…