SQL> select owner,table_name,blocks,EMPTY_BLOCKS from dba_tables where EMPTY_BLOCKS <>0;
OWNER TABLE_NAME BLOCKS EMPTY_BLOCKS
------------------------------ ------------------------------ ---------- ------------
SCOTT TEST_1 245550 1106
用show_space查看
Total Blocks ..........................246656
Total Bytes ..........................2020605952
Total MBytes ..........................1927
Unused Blocks ..........................1106
Unused Bytes ..........................9060352
Unused KBytes ..........................8848
Used Blocks ..........................245550
Used Bytes ..........................2011545600
Used KBytes ...
DBA_TABLES之BLOCKS AND EMPTY_BLOCKS
最新推荐文章于 2021-04-12 21:31:34 发布
本文介绍了如何通过SQL查询DBA_TABLES视图获取Oracle数据库中表的BLOCKS和EMPTY_BLOCKS信息。BLOCKS表示表曾经使用的数据块数,而EMPTY_BLOCKS则表示尚未使用的数据块数,这些数据有助于分析数据库空间使用情况。
订阅专栏 解锁全文
4928

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



