1. 查某一用户下的表
select SEGMENT_NAME,TABLESPACE_NAME,sum(BYTES/1024/1024)||‘M‘ from USER_extents where SEGMENT_TYPE=‘TABLE‘
group by SEGMENT_NAME,TABLESPACE_NAME
2.查所有的表
select SEGMENT_NAME,TABLESPACE_NAME,sum(BYTES/1024/1024)||‘M‘ from dba_extents where SEGMENT_TYPE=‘TABLE‘
group by SEGMENT_NAME,TABLESPACE_NAME
原文地址:https://www.cnblogs.com/gavinYang/p/11199488.html
时间: 2024-11-05 11:36:05