oracle 查看表空間名稱大小以及物理路徑


--1、查看表空間的名稱及大小
select
t.tablespace_name,
round(sum(bytes/(1024*1024)),0) ts_size
from
dba_tablespaces t,
dba_data_files d
where
t.tablespace_name = d.tablespace_name
group by t.tablespace_name;

--2、查看表空間物理文件的名稱及大小
select
tablespace_name,
file_id, file_name,
round(bytes/(1024*1024),0) total_space
from
dba_data_files
order by tablespace_name;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM