Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Estimate space used by an Oracle index

Oracle Database Tips by Donald BurlesonMarch 8, 2015

Question:  I am creating a new Oracle index and I want to get the storage clause properly so that the index will fit within a single initial extent.  What formula can I use to estimate the size of an Oracle index?

Answer:  For global sizing estimate of tables and indexes, I recommend the Oracle capacity planning spreadsheets To estimate the size of an index for the storage clause, you can use the following procedure:

  1. Calculate the required database block header size (BHS).
       
    BHS = fixed header + variable transaction header
        where:
        
    fixed header = 113
         variable transaction header = 24  *INITRANS

  2. Calculate available data space (ADS).
        
    ADS = ((Blocksize - BHS)  * (PCTFREE/100))

  3. Calculate the average data length (ADL) per row.

    Note: Step 3 is the same as step 3 in the table-sizing section in Chapter 5. However, size only for those columns in the index.

  4. Calculate the average row length (ARL).
       
    bytes/entry = entry header + ROWID length + F + V + D

       where:
      
    entry header = 2
         ROWID = 6

    F = Total length of bytes of all columns that store 127 bytes or fewer—one header byte per column.
    V = Total length of bytes of all columns that store more than 127 bytes—two header bytes per column.
    For UNIQUE indexes, the entry header is 0.

  5. Calculate number of blocks for index.
        
    # of Blocks = 1.05 * (((# of NOT NULL rows) / (ADS) / ARL))

    The 1.05 factor allows for branch space and is an empirically (SWAG) derived value.

  6. Calculate the number of bytes required.
       
    Size in bytes = BLOCKSIZE - number of blocks

 


 

   

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational