Message-Id: <10596.115130@fatcity.com> From: Chuck Hamilton Date: Mon, 21 Aug 2000 11:55:41 -0700 (PDT) Subject: Re: Simple DBA Type Question --0-424238335-966884141=:2482 Content-Type: text/plain; charset=us-ascii This query will give you the approximate size. The only thing it doesn't account for is the size of the control files which as far as I know cannot be obtained via a database query. select sum(bytes)/1048576 megabytes from (select sum(bytes) bytes from v$datafile union all select sum(bytes*members) bytes from v$log); Peter Hazelton wrote: Hi guys Real quick question here! Using SQL plus, how can I determine the physical size of my database? If that cannot be done, is there a way to see the size of individual tables? Thanks a lot Peter ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -- Author: Peter Hazelton INET: peterhazelton@hotmail.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@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). --------------------------------- Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! --0-424238335-966884141=:2482 Content-Type: text/html; charset=us-ascii

This query will give you the approximate size. The only thing it doesn't account for is the size of the control files which as far as I know cannot be obtained via a database query.

select sum(bytes)/1048576 megabytes 
from (select sum(bytes) bytes from v$datafile
      union all
      select sum(bytes*members) bytes from v$log);

  Peter Hazelton <peterhazelton@hotmail.com> wrote:

Hi guys

Real quick question here! Using SQL plus, how can I determine the physical
size of my database? If that cannot be done, is there a way to see the size
of individual tables?

Thanks a lot

Peter
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

--
Author: Peter Hazelton
INET: peterhazelton@hotmail.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@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 w! ant to be removed from). You may
also send the HELP command for other information (like subscribing).



Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!