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

Thread: how to calculate free extents

  1. #1
    Join Date
    Apr 2008
    Posts
    59

    how to calculate free extents

    How to calculate free extents in our production database for one particular segment? thanks in advance

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    are you looking for unused space below hwm?

    If yes...
    ... get total allocation for target segment - sum(bytes) from dba_extents
    ... calculate optimal allocation for target segment - assuming object was recently analyzed... num_rows * avg_row_len from dba_tables
    ... compare both - usually this does the trick with no further analysis.
    ... for fine grain results factor in pct_free/pct_free
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

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