Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Num of rows of all tables in a database...
spool counter1.sql
prompt spool %spooldir%\counter1.lst
select 'select ''' || table_name || ''', count(*) cnt from ' || table_name
|| ';'
from user_tables
/
prompt spool off
prompt set feed on
prompt set pages 40
spool off
@counter1
$ del counter1.sql
-- end counter.sql
HTH, Yosi
> -----Original Message-----
> From: Anjan Thakuria [mailto:Anjan.Thakuria_at_sabre.com]
> Sent: Wednesday, September 20, 2000 6:56 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Num of rows of all tables in a database...
>
>
> Hi Listers,
>
> Does any body have a script that gives you the number of rows
> of each table in a
> database that has not been analyzed in a while.
>
> TIA
>
> Anjan
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Anjan Thakuria
> INET: Anjan.Thakuria_at_sabre.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).
Received on Thu Sep 21 2000 - 09:22:16 CDT
![]() |
![]() |