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: count(*)

Re: count(*)

From: <Reginald.W.Bailey_at_jpmorgan.com>
Date: Thu, 19 Sep 2002 13:33:32 -0800
Message-ID: <F001.004D45A7.20020919133332@fatcity.com>

Try this:

select table_name, num_rows from dba_tables where table_name = [table_name];

[table_name] = the name of the table or a variable. This works if you are updating your statistics and you may also want monitoring turned on for the table.
It is easier to get the information from the data dictionary sometimes, than actually doing a count of rows. This is Oracle8i or above, right?

RWB Rishi.Jain_at_VerizonWireless.com_at_fatcity.com on 09/19/2002 01:28:27 PM

Please respond to ORACLE-L_at_fatcity.com

Sent by: root_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:

Hi Gurus,

In one of our insert intensive application we are inserting around 3-4 million rows / hour. Also this app needs to do a count(*) of the tables every 10 minutes for verifying some application based logic. This is really killing us and it takes a lot of time.

Can you please guide me to a direction ( built in functions or something similar).

Actually this app is being ported from Informix. Informix can somehow keep a
trak of the count(*) of a table in its header somewhere.

And yes I have tries count(1) , count(indexed_column) etc.

Thanks In Advance.

R.h

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: Rishi.Jain_at_VerizonWireless.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Reginald.W.Bailey_at_jpmorgan.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- 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 19 2002 - 16:33:32 CDT

Original text of this message

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