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(*) last 30 seconds

RE: Count(*) last 30 seconds

From: Ramon E. Estevez <com.banilejas_at_codetel.net.do>
Date: Tue, 11 Feb 2003 12:24:39 -0800
Message-ID: <F001.00549F71.20030211122439@fatcity.com>


Tks to all of you for your help.  

The table has a PK that is formed by 11 fields of 13 that the table has. This table is for a DW system.  

This the only one in the table.  

I analyze the table again, had done it before using dbms_stats.gather_schema_stats, and the time went down to 7 seconds.  

And there is no difference between count(*) and count(1), the same results with both of them.  

tks to all  

-----Original Message-----
Lisa
Sent: Tuesday, February 11, 2003 11:40 AM To: Multiple recipients of list ORACLE-L

well, have you traced the statement yet? That's where to start, with autotrace.  

My count(*) which executes a FTS (in a load to mitigate any ORA-1555 error) takes 15 minutes to count 50 million rows.  

Lisa Koivu
Tired, Tired, Tired.
Fairfield Resorts, Inc.
5259 Coconut Creek Parkway
Ft. Lauderdale, FL, USA 33063
Office: 954-935-4117
Fax: 954-935-3639
Cell: 954-683-4459

-----Original Message-----
Sent: Tuesday, February 11, 2003 11:19 AM To: Multiple recipients of list ORACLE-L

Hi list,  

I issue a select count(*) from mytable and last 30 seconds.  

The table has 1,466,196 records and were loaded with a batch process, so they are in a countinous space.  

I consider that time exagerated.  

The TBS is LMT with a Uniform size of 128 MB.  

The block size is 8MB, version 9.2.0.1.0 in Windows 2000.  

Where should I start looking ???  

TIA   Ramon E. Estevez
com.banilejas_at_codetel.net.do
809-565-3121  

--

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

Author: Ramon E. Estevez
  INET: com.banilejas_at_codetel.net.do

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 Tue Feb 11 2003 - 14:24:39 CST

Original text of this message

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