Oracle 查看数据库空间使用情况
1、查看Oracle所有表空间大小
select tablespace_name,sum(bytes)/1024/1024 from dba_data_files group by tablespace_name;
2、Oracle未使用的表空间大小
select tablespace_name,sum(bytes)/1024/1024 from dba_free_space group by tablespace_name;
3、使用的表空间大小
select df.tablespace_name,SUM(df.bytes)/1024/1024 total,SUM(fs.bytes)/1024/1024 free,SUM(df.bytes-fs.bytes)/1024/1024 used from dba_data_files df,dba_free_space fs
where df.tablespace_name = fs.tablespace_name
group by df.tablespace_name
相关推荐
FightFourEggs 2020-08-16
踩风火轮的乌龟 2020-07-26
xwb 2020-07-19
bfcady 2020-08-16
Hody 2020-08-16
流云追风 2020-07-04
dataminer 2020-06-25
lklong 2020-11-22
oraclemch 2020-11-06
shilukun 2020-10-10
周嘉笙 2020-11-09
zhuzhufxz 2020-09-16
数据库设计 2020-08-16
yanghuatong 2020-08-16
dbasunny 2020-08-16
罗罗 2020-08-16
ihuaqiang 2020-08-16
choice0 2020-07-30
娜娜 2020-07-28
solarspot 2020-07-28
娜娜 2020-07-20
娜娜 2020-07-18
娜娜 2020-06-22
zhangchaoming 2020-06-21