Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

dba_tables.empty_blocks shows 0 even after table delete

Rob JonesDec 30 2024 — edited Dec 30 2024

hi,

I'm using the following Oracle version.

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Just doing some Oracle learning here. Nothing urgent. I inserted data into a table and deleted the data. But, when I checked the empty_blocks attribute of the dba_tables table, it still showed 0. Here are the steps performed.

create table testblocks (col1 integer);

insert into testblocks values (1);

commit;

begin dbms_stats.gather_table_stats('XXXXXXX', 'TESTBLOCKS'); end;

delete testblocks;


commit;


begin dbms_stats.gather_table_stats('XXXXXXX', 'TESTBLOCKS'); end;


select * from dba_tables where table_name = 'TESTBLOCKS';

Any ideas? I even ran it by inserting 10M records into the table and it still showed 0.

Comments

Post Details

Added on Dec 30 2024
6 comments
147 views