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 after truncate

Re: analyze after truncate

From: Jared Still <jkstill_at_cybcon.com>
Date: Tue, 25 Nov 2003 14:39:25 -0800
Message-ID: <F001.005D7CC5.20031125143925@fatcity.com>


You are truncating a table so as to add another 0.7% of its size in inserts, and to update 1.4% of the rows?

My first thought would be to stop doing that.

Modify the extent sizes (if needed) so that your 50k rows fairly fill up the extents allocated on the insert ( so as to avoid wasting space needlessly ) and use insert..append.

Updating 100k row should not be too painful.

Truncating the table for this process seems rather extreme.

Re the analyze for your current situation, you could always use stored outlines between periods that you wish to run the analyze command.

You would of course need to test this first in a non-production environment.

Jared

On Tue, 2003-11-25 at 13:34, sat0789_at_fastmail.fm wrote:
> Hello All,
> We have a huge table both is terms of number of columns and rows. It is
> list partitioned. it has 7 mill rows and its avg row length is 600
> bytes. One of the developers has come up with a method of truncating
> and reloading the table on a daily basis thorough sqlloader. everyday
> there are about 50,000 rows insert and 100,000 rows update. My question
> is do i need to reanalyze this table on a daily basis. Even though we
> truncate the table the statistics still stays on with the table and
> since the table goes thorugh only minimal change, is it advisable to
> analyze it on a daily basis or can i analyze it on a weekly basis.
>
> Please advice..
>
> Thanks,
>
> Sat.
>
> --
> http://www.fastmail.fm - A no graphics, no pop-ups email service
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author:
> INET: sat0789_at_fastmail.fm
>
> 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.net
-- 
Author: Jared Still
  INET: jkstill_at_cybcon.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 Tue Nov 25 2003 - 16:39:25 CST

Original text of this message

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