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: analyze table takes forever

RE: analyze table takes forever

From: Andrey Bronfin <andreyb_at_elrontelesoft.com>
Date: Thu, 31 Oct 2002 06:03:31 -0800
Message-ID: <F001.004F872D.20021031060331@fatcity.com>


Thanks a lot to all who replied !
Cheers !
Andrey.  

-----Original Message-----
Sent: Tuesday, October 29, 2002 9:00 PM
To: Multiple recipients of list ORACLE-L  

You mentioned that count(*) took 10 minutes but did not say how many rows are present in that partition; if number of rows is less than 1 million, I would do the following.  

alter table <owner>.<table_name> move partition <partition_name> tablespace
<tablespace_name> nologging;
 

and then re-analyze the table partition.  

We have seen a significant improvement in runtimes when we set the sort_area_size to 50Mb while doing these kinds of operations.  

Also, I read in metalink sometime back that there is a known bug if you estimate less than 20%.  

Hope this helps.  

Govind  

-----Original Message-----
Sent: Tuesday, October 29, 2002 1:25 PM
To: Multiple recipients of list ORACLE-L what's the structure of the table?
And try taking an export of this partition and import it into it's own table in a development box... see if you can analyze it there. Nick
-----Original Message-----
<mailto:andreyb_at_elrontelesoft.com> ]

Sent: Tuesday, October 29, 2002 7:49 AM To: Multiple recipients of list ORACLE-L  

Dear gurus !
We are trying to analyze a table partition (estimate 2 %) and it takes forever.
analyze table ... partition (P20021022) estimate statistics sample 2 percent;
For instance, select count(*) from the same partition takes 10 minutes , but

the analyze takes literally infinite amount of time , once i left it to run for half a day and killed it since it did not finish Even when i do analyze ... estimate statistics sample 100 rows; , it takes almost 2 minutes to ananlyze 100 rows.
Any ideas ?
It's Oracle 8.1.6 on an expensive 6 CPUs HP machine with EMC storage. Thanks a lot in advance.  

DBAndrey

* 03-9254520 
* 058-548133 
* mailto:andreyb_at_elrontelesoft.com <mailto:andreyb_at_elrontelesoft.com>  



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

<http://www.orafaq.com>
-- Author: Andrey Bronfin INET: andreyb_at_elrontelesoft.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com
<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). Content-Type: text/plain; name="ReadMe.txt"; charset="us-ascii" Content-Transfer-Encoding: 7bit The previous attachment was filtered out by the ListGuru mailing software at fatcity.com because binary attachments are not appropriate for mailing lists. If you want a copy of the attachment which was removed, contact the sender directly and ask for it to be sent to you by private E-mail. This warning is inserted into all messages containing binary attachments which have been removed by ListGuru. If you have questions about this message, contact Postmaster_at_fatcity.com for clarification. ------_=_NextPart_001_01C280E5.ECC959C0-- -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Andrey Bronfin INET: andreyb_at_elrontelesoft.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 Oct 31 2002 - 08:03:31 CST

Original text of this message

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