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

Home -> Community -> Usenet -> c.d.o.server -> Re: Table and schema current size.

Re: Table and schema current size.

From: Fad <nospam_at_allowed.localhost>
Date: Tue, 26 Jun 2001 22:12:02 +0200
Message-ID: <8Y5_6.3592$jb3.115771@news1.bredband.com>

"Peter Shvets" <pshvets_at_powermarket.com> wrote in message news:9hamoe$1rlg$1_at_news.mainstreet.net...
> Hello, dear friends.
> I need to find out how big is every single table in the schema I have
 as
> well as the size of the schema itself.

Define "how big" and "size"... :-)

Seriously, perhaps something like this is what you were asking for (usage is on ones own risk, of course):

Tables #1 (run this and then run the sql it produces): select 'select count(*) from '||table_name||';' from user_tables;

Tables #2 (includes views and synonyms also): select 'select count(*) from '||table_name||';' from cat;

Schemas:
select count(*) "object count" from user_objects; select owner, count(*) "object count" from dba_objects group by owner;

Bonus:
select object_type, count(*) from user_objects group by object_type;

Note that not every type of object can be a schema object.

Regards
/Fad Received on Tue Jun 26 2001 - 15:12:02 CDT

Original text of this message

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