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: Counting number of rows

RE: Counting number of rows

From: David Wagoner <dwagoner_at_arsenaldigital.com>
Date: Tue, 17 Feb 2004 15:34:50 -0500
Message-ID: <C6F17AC15C94D84EBEB96A7B7D59D80605B38923@MONALISA.arsenaldigital.com>


You could do this:
SELECT owner, table_name, num_rows, last_analyzed   FROM dba_tables
 WHERE owner = '<table_owner>'
   AND table_name = '<table_name>'

assuming your USER has access to the DBA_TABLES view (i.e., has select_catalog_role). Also, it will only be as accurate as your last_analyzed time.

Best regards,

David B. Wagoner
Database Administrator



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Tue Feb 17 2004 - 14:34:50 CST

Original text of this message

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