SELECT segment_name table_name, MAX (tablespace_name) tablespace_name,
SUM (BYTES) / (1024 * 1024) table_size_mb
FROM user_extents
WHERE segment_name IN (SELECT tname
FROM tab
WHERE tabtype = 'TABLE')
GROUP BY segment_name
ORDER BY tablespace_name
The Above query tells you the table name, the table space it is residing in and the size in MB.
本文提供了一种SQL查询方法,用于查看数据库中各表占用的空间大小,包括表名、所在表空间及所占空间的MB数。此查询对于数据库管理和优化空间非常有用。
3217

被折叠的 条评论
为什么被折叠?



