雅安论坛
标题:
oracle 查看表空间名称大小以及物理路径
[打印本页]
作者:
匿名
时间:
2021-9-28 14:37
标题:
oracle 查看表空间名称大小以及物理路径
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;
欢迎光临 雅安论坛 (https://www.yaanbbs.net/)
Powered by Discuz! X3.4