<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: How to determine row count for all tables in an Oracle Schema?</title>
	<atom:link href="http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/feed/" rel="self" type="application/rss+xml" />
	<link>http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/</link>
	<description>An IBM Gold Consultant's weblog about IBM, Lotus, WebSphere, J2EE, IT Processes, and other IT technologies</description>
	<lastBuildDate>Thu, 17 Dec 2009 03:13:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: vehshi</title>
		<link>http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/#comment-2344</link>
		<dc:creator>vehshi</dc:creator>
		<pubDate>Tue, 08 Sep 2009 18:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/#comment-2344</guid>
		<description>Then where does count(*) on a table gets it data from?</description>
		<content:encoded><![CDATA[<p>Then where does count(*) on a table gets it data from?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JonWat</title>
		<link>http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/#comment-2298</link>
		<dc:creator>JonWat</dc:creator>
		<pubDate>Wed, 06 May 2009 14:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/#comment-2298</guid>
		<description>Because the information in user tables is as of the last time you gathered statistics on the tables: it is not a count of the current # of rows. If you haven;t analysed the tables, those columns will be blank.</description>
		<content:encoded><![CDATA[<p>Because the information in user tables is as of the last time you gathered statistics on the tables: it is not a count of the current # of rows. If you haven;t analysed the tables, those columns will be blank.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew kerle</title>
		<link>http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/#comment-2232</link>
		<dc:creator>matthew kerle</dc:creator>
		<pubDate>Tue, 06 Jan 2009 07:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/#comment-2232</guid>
		<description>why not just query num_rows directly from the user_tables table?

select table_name, num_rows, blocks  from user_tables order by num_rows desc;

much easier one query not n + 1.</description>
		<content:encoded><![CDATA[<p>why not just query num_rows directly from the user_tables table?</p>
<p>select table_name, num_rows, blocks  from user_tables order by num_rows desc;</p>
<p>much easier one query not n + 1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/#comment-2225</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 23 Dec 2008 19:31:18 +0000</pubDate>
		<guid isPermaLink="false">http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/#comment-2225</guid>
		<description>Thanks for the script, I did a few more updates on this:
 -&gt; Added the owner name
 -&gt; getting table list from all_tables, excluding system, sys
 -&gt; seperating the table name and count by a comma to be able to open in an excel as a csv file

Set heading off
Set feedback off
Set pagesize 0
Set termout off
Set trimout on
Set trimspool on
Set recsep off
Set linesize 1000
Column d noprint new_value date_
Column u noprint new_value user_
Spool c:\temp\tmp
Select &#039;Select &#039;&#039;&#039;&#124;&#124;owner&#124;&#124;&#039;.&#039;&#124;&#124;table_name&#124;&#124;&#039; , &#039;&#039;&#124;&#124;count(*) from &#039;&#124;&#124;owner&#124;&#124;&#039;.&#039;&#124;&#124;table_name &#124;&#124;&#039;;&#039;,
    to_char(sysdate, &#039;YYYYMMDDHH24MISS&#039;) d, user u 
from all_tables
where owner not in (&#039;SYS&#039;, &#039;SYSTEM&#039;)
order by table_name
/
Spool off</description>
		<content:encoded><![CDATA[<p>Thanks for the script, I did a few more updates on this:<br />
 -&gt; Added the owner name<br />
 -&gt; getting table list from all_tables, excluding system, sys<br />
 -&gt; seperating the table name and count by a comma to be able to open in an excel as a csv file</p>
<p>Set heading off<br />
Set feedback off<br />
Set pagesize 0<br />
Set termout off<br />
Set trimout on<br />
Set trimspool on<br />
Set recsep off<br />
Set linesize 1000<br />
Column d noprint new_value date_<br />
Column u noprint new_value user_<br />
Spool c:\temp\tmp<br />
Select &#8216;Select &#8221;&#8217;||owner||&#8217;.'||table_name||&#8217; , &#8221;||count(*) from &#8216;||owner||&#8217;.'||table_name ||&#8217;;',<br />
    to_char(sysdate, &#8216;YYYYMMDDHH24MISS&#8217;) d, user u<br />
from all_tables<br />
where owner not in (&#8216;SYS&#8217;, &#8216;SYSTEM&#8217;)<br />
order by table_name<br />
/<br />
Spool off</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathish</title>
		<link>http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/#comment-2214</link>
		<dc:creator>Sathish</dc:creator>
		<pubDate>Mon, 24 Nov 2008 04:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://vivekagarwal.wordpress.com/2007/07/17/how-to-determine-row-count-for-all-tables-in-an-oracle-schema/#comment-2214</guid>
		<description>This query is good. I was searching in the net among them this is straight forward query.</description>
		<content:encoded><![CDATA[<p>This query is good. I was searching in the net among them this is straight forward query.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
