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: Script to know the size of each table in a schema ?

RE: Script to know the size of each table in a schema ?

From: Trassens, Christian <CTrassens_at_uni2.es>
Date: Mon, 19 Mar 2001 01:43:44 -0800
Message-ID: <F001.002D0465.20010319005627@fatcity.com>

You don't need to analyze. DBMS_SPACE was a solution for estimating space without statistics.

Regards.

> -----Mensaje original-----
> De: Feng, Jun [SMTP:jfeng_at_netsol.com]
> Enviado el: viernes 16 de marzo de 2001 16:21
> Para: Multiple recipients of list ORACLE-L
> Asunto: RE: Script to know the size of each table in a schema ?
>
> Hi,
>
> Is the analyze table required when dbms_space is used to calculate the
> space? I wrote a script to calculate space usage in the allocated space in
> the segments. Every time I run the script, the analyze table has to be run
> first.
>
> Jun
>
> -----Original Message-----
> Sent: Friday, March 16, 2001 7:21 AM
> To: Multiple recipients of list ORACLE-L
>
>
> Well i've been watching this thread and I dont think i've seen this
> explanation yet, if i've missed it, feel free to brutalize me ;)
>
>
>
> Break down and read $ORACLE_HOME/rdbms/admin/dbmsutil.sql
>
> in there is a package called dbms_space.
>
> NOTICE the docs about it, there is no other place but this package to
> get the info on how much space a table is using, TRUE SPACE IN USE not
> allocated space.
>
> Scenario:
>
> table storage(initial 600M next 100m).
> there are 2(yes only 2) rows in the table, avg_row_len = 70 bytes.
>
> do you want 600M as the table size
> or 140 bytes?
>
> That determines whether you use all of the previous stated ways to get
> the info, or the way i just explained.
>
> Joe
>
> tapas dutta wrote:
>
> > ----- Original Message -----
> > To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com>
> > Sent: Wednesday, March 14, 2001 9:25 PM
> >
> > Dear Listers,
> >
> > I just made script to know the size of datafile in a tablepace ,
> > but I still have no idea to make a script to know the size of each table
> in
> > a schema ?
> >
> > is there anyone who has the script ?
> > furthermore , I need some information about relationship diagram which
> > describe
> > the relation among tables/view to calculate storage of objects ( i.e
> > tablespace , datafile , segment , extent ) .
> >
> > thanks in advance : )
> >
> > =bambang=
> >
> > <> Bambang Setiawan <>
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author: Bambang Setiawan
> > INET: Bambang.Setiawan_at_Sidola.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: Ruth Gramolini
> > INET: rgramolini_at_tax.state.vt.us
> >
> > 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: Bambang Setiawan
> > INET: Bambang.Setiawan_at_Sidola.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: tapas dutta
> > INET: tapasoracle_at_umtl.co.in
> >
> > 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).
>
>
> --
> Joe Testa http://www.oracle-dba.com
> Performing Remote DBA Services, need some backup DBA support?
> For Sale: Oracle-dba.com domain, its not going cheap but feel free to
> ask :)
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Joseph S. Testa
> INET: teci_at_oracle-dba.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: Feng, Jun
> INET: jfeng_at_netsol.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: Trassens, Christian
  INET: CTrassens_at_uni2.es

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 Mon Mar 19 2001 - 03:43:44 CST

Original text of this message

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