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: SQL to find out user table which count > 0!

Re: SQL to find out user table which count > 0!

From: Glen Upreti <glen.upreti_at_nau.edu>
Date: Fri, 15 Jan 1999 10:28:12 -0700
Message-ID: <369F7AAC.9D3AF066@NOSPAMnau.edu>


If you have time I would do this:
exec dbms_utility.analyze_schema('SCHEMA','COMPUTE'); then just select the num_rows from dba_tables. You have to do the compute first though. We run a cron job to do the computes daily in the evening or early morning so they are relatively up to date. Hope this helps,
Glen

Reid Lai wrote:
>
> Man,
>
> Try num_rows column from dba_tables system view.
>
> Yeung Man wrote:
>
> > Hi,
> >
> > I want to find out all user tables in our application system with
> > rowcount > 0. I know I can do with the analysis and the query the dict. But,
> > can I just use SQL to find them out? TIA.
> >
> > Best Regards,
> > Man
> >
> > yngm_at_chowsangsang.com
>
> --
> Best Regards,
>
> Reid Lai <reidlai_at_hk.super.net>
> Oracle 7.3 Certified Database Administrator (OCP)
> ================================================
> The above opinions are mine and do not represent
> any official standpoints of my employer

--
<html>
<font face="Tahoma"
size=1>|-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|<br> Glen
Upreti<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&nbsp;&nbsp;&nbsp;&nbsp; <br>
Oracle
DBA<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
Northern Arizona University<br>
Phone: (520)523-8393&nbsp;
<x-tab>&nbsp;&nbsp;</x-tab>Fax:(520)523-7407<br> Glen.Upreti_at_nau.edu<br>
</font></html> Received on Fri Jan 15 1999 - 11:28:12 CST

Original text of this message

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