dbms_space.unused_space 过程与DBA_TABLES显示信息不一样?

2020-06-21 00:00:00 数据库 专区 源码 显示 研究
我有一个表xs1,我用以下命令分析它: analyze table tsjb.xs1 compute statistics for all columns for table; 然后显示它的资料: [php] SELECT num_rows, blocks, empty_blocks as empty, avg_space, chain_cnt, avg_row_len FROM dba_tables WHERE owner = 'TSJB' AND table_name ='XS1'; NUM_ROWS BLOCKS EMPTY AVG_SPACE CHAIN_CNT AVG_ROW_LEN ---------- ---------- ---------- ---------- ---------- ----------- 22 5 3 7932 0 30 [/php] 然后,又用 dbms_space.unused_space 显示: [php] Total blocks allocated to table =8 Total bytes allocated to table = 65536 Unused blocks(above HWM) = 0 Unused bytes(above HWM) = 0 Last extent used file id = 5 Last extent used begining block id = 8 Last used block in last extent = 8 [/php] 两次结果为什么不一样啊,dba_tables 中显示已使用块:5,高水标记以上块(BLOCKS列)为:3。 但dbms_space.unused_space 显示 总块为:8。高水标记以上块:0 我该谁的?

相关文章