Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: table/index size ???

Re: table/index size ???

From: Ron Rogers <RROGERS_at_galottery.org>
Date: Tue, 12 Mar 2002 04:38:47 -0800
Message-ID: <F001.00425547.20020312043847@fatcity.com>


Janet,
 This is the formula that I use to get projected storage needs for a table or index. It takes a lot of calculations and good faith estimates from the developers but the answer is pretty close.



TO DETERMINE THE SIZE OF A TABLE STORAGE step 1. NUMBER OF ROWS IN TABLE. ---------------

step 2. NUMBER OF ROWS IN BLOCK.

NUMBER =COLUMN SIZE. 21 (maximum)
CHAR = COLUMN SIZE
VARCHAR = COLUMN SIZE
DATE = 7 Z=3+(SUM OF COLUMN SIZES)+(# OF COLUMNS < 250)+(3* # OF COLUMNS > 250)

X= DBBLK SIZE / Z       ---------------------------------------------

Y=DBBLK-(%FREE(DBBLK-(52+4(X)))

Y>=X*Z  ADJ X TO GET "TRUE"               ---------------------

step 3. TOTAL BLOCKS NEEDED.

TOT BLOCKS=ROWS IN TABLE/ROWS PER BLOCK TABLE SIZE =DBBLK SIZE * TOT BLOCKS / 1024 GIVES TABLE SIZE IN K.




I usully try to plan a table for 2 years expected capacity. ROR mª¿ªm

>>> janetlinsy_at_yahoo.com 03/11/02 04:08PM >>>
Hi,

Does anyone know some scripts that can calculate table/index size, given the data block size, estimated number of rows, and table row size or index space per row? Acutally how to get table row size and index space per row?

Thank you!

Janet



Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Janet Linsy
  INET: janetlinsy_at_yahoo.com 

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ron Rogers
  INET: RROGERS_at_galottery.org

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Mar 12 2002 - 06:38:47 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US