Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Database Size Estimation
"Vijays" <srinivasanvijay_2000_at_yahoo.com> schrieb im Newsbeitrag
news:fe3d44d1.0311140052.54dc0530_at_posting.google.com...
> Hi,
>
> I have been asked to do the database size estimation. I have the the
> list of tables, indexes and average number of rows expected at this
> point and also for the next 5 years...With that how can i estimate the
> database size. This the first time i am exposed to do such thing. Any
> help is highly appreciated.
>
> I am hoping to get a tool or some excel sheet where i key in the
> respective information to get the sizing !! is something possible like
> that ??
>
> Rgds
Here are some values to start with:
all values are in bytes required
overhead for each row: 3
colums:
1 varchar2 = 1 + count(characters), e.g. "MyName" = 6chars = 1+6 = 7.
better take and average and not maximal fill of the columns, that is e.g.: varchar2(100) declared, but only (50) used in reality
1 number = 1 + count(digits)/2 1 date = 7
1 row: = 3 + sum(column values see above) ------------- 1 table: sum(row_values) ------------- 1-col-index: 16 + column value see above n-col-index: 16 + sum(column values see above)
>>
1 row - n indexes sum(index_values)
and finally
the database = sum(table_values) + sum(index_values)
+ x% due to storage parameter PCTFREE; the value also depends on
init parameter db_block_size
I think it should be easy for You to set up Your own Excel sheet for Your
purposes.
The thing is only that these values are hard to find - no doco. I had to
search a while at my time ...
hth, Jan Received on Fri Nov 14 2003 - 05:32:31 CST