Oracle query table space usage of a sql

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) t1
join
(select tablespace_name,sum(bytes) curr_b from dba_segments group by tablespace_name) t2 on t1.tablespace_name=t2.tablespace_name

 

the above

Guess you like

Origin www.cnblogs.com/vanwoos/p/11865641.html