DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Rows per Block

  1. #1
    Join Date
    Jan 2001
    Posts
    515

    Question Rows per Block

    I have a 4K block size. The avg_row_len of my table is 168. There are 4579201 rows in the table.

    To figure out how many rows are in a block I did

    SELECT (1024 * 4) /168 from dual;

    (1024*4)/168
    ------------
    24.3809524

    to figure out how many blocks my table should consume I did:

    SELECT 4579201 / 24 from dual;

    4579201/24
    ----------
    190800.042

    but when I check how many blocks it has assigned to it I get:


    select blocks,empty_blocks from dba_tables where table_name = 'MYTAB';

    BLOCKS EMPTY_BLOCKS
    ---------- ------------
    20624 15

    What am I doing wrong?

  2. #2
    Join Date
    Jan 2001
    Posts
    515

    Question Sorry

    I forgot to say that I want to know why the number of blocks I came up with does not match what is in dba_tables?

  3. #3
    Join Date
    Sep 2001
    Location
    Ohio
    Posts
    334
    When was the last time you analyzed the table?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width