Unix Technical Forum

Table size

This is a discussion on Table size within the Oracle Database forums, part of the Database Server Software category; --> Oracle 10g, Linux 386, Cooked files I need to calculate/estimate how much disk space a database will use. What ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 02:48 PM
PHernandez
 
Posts: n/a
Default Table size

Oracle 10g, Linux 386, Cooked files

I need to calculate/estimate how much disk space a database will use.
What would be best: Create the database add data, check size, add data
and check size and use the difference to estimate how much the database
will increase over time OR calculate how much space each row in each
table will use and then use this data to estimate the size?

If the first, about how much data do I need to load to get numbers that
are more or less reliable? If the latter, eh, how exactly is that done?

I assume that I need to sum the bytes each column uses for a row, and
it seems that the characterset matters for chars and varchars. That
would be the easy part. Then there is probably some overhead. And for
the indexes I really don't have a clue. Oracle leaves space empty to
let rows grow. What more to consider?

There doesn't seem to exist documentation on how to proceed with this.

Thanks for your time,
ph

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 02:49 PM
tina london
 
Posts: n/a
Default Re: Table size


"PHernandez" <phph109@yahoo.es> wrote in message
news:1117567148.413604.234540@g47g2000cwa.googlegr oups.com...
> Oracle 10g, Linux 386, Cooked files
>
> I need to calculate/estimate how much disk space a database will use.
> What would be best: Create the database add data, check size, add data
> and check size and use the difference to estimate how much the database
> will increase over time OR calculate how much space each row in each
> table will use and then use this data to estimate the size?
>
> If the first, about how much data do I need to load to get numbers that
> are more or less reliable? If the latter, eh, how exactly is that done?
>
> I assume that I need to sum the bytes each column uses for a row, and
> it seems that the characterset matters for chars and varchars. That
> would be the easy part. Then there is probably some overhead. And for
> the indexes I really don't have a clue. Oracle leaves space empty to
> let rows grow. What more to consider?
>
> There doesn't seem to exist documentation on how to proceed with this.
>
> Thanks for your time,
> ph
>


I would do it the first way, use volumetrics from the analysis phase to help
you populate the db, build your indexes, analyze and then test, When it is
acceptable in terms of performance scale the sizes upwards.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 02:50 PM
Mark D Powell
 
Posts: n/a
Default Re: Table size

The size estimate for a complete database has to include more than just
the data; it must include the overhead necessary to support SYSTEM,
SYSAUX, TEMP, and UNDO. The TEMP and UNDO tablespaces can require a
lot of space depending on how the application works, activity levels,
and how far back in time it is desired to be able to flashback a query.

The size estimate for the database then has to be then more than
doubled to support Oracle's recommendation for a flashback database
area (10g), if you plan to use this feature.

You can make the estimates without building a database if you have a
decent idea of the amount of data, number of tables, and number of
indexes. There have been numerous posts in the past on how to estimate
the size of a table. The big problem is that development often has no
idea how big the application is going to be!

Note that the total space consumed by indexes has a tendency in the
OLTP world to just about equal the total space consumed by tables as
applications grow in number of tables. In another environment I have
the data is 3/4 the size of the indexes (part OLTP and part SPC
system).

HTH -- Mark D Powell --

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com