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: "snapshot too old" and undo_retention

Re: "snapshot too old" and undo_retention

From: Jared Still <jkstill_at_gmail.com>
Date: Fri, 30 Sep 2005 00:19:24 +0100
Message-ID: <bf46380509291619v29e6287eva64543497b48d796@mail.gmail.com>


Let me try that again.

You should probably use dbms_stats as you are on 9.2

It may also be unnecessary to compute histograms for all indexed columns, but hard to know what may break if you suddenly stop doing so. That requires testing.

eg.

begin
  dbms_stats.gather_table_stats('SAPR3',tabname=>'BSIS',estimate_percent=>1, block_sample=>true, cascade=>true);
end;

That will analyze the table and indexes by scanning 1 percent of blocks.

You will need to hit the books to see how to include histograms if needed. ( I can't recall)

On 9/29/05, Roger Xu <roger_xu_at_dp7uptx.com> wrote:
>
>
>
> "ANALYZE TABLE "SAPR3"."BSIS" COMPUTE STATISTICS FOR TABLE FOR ALL INDEXED
> COLUMNS SIZE 1 FOR ALL INDEXES"
>
> How do I break this into pieces?
>
> Thanks.
>
> -----Original Message-----
> From: Allen, Brandon [mailto:Brandon.Allen_at_OneNeck.com]
> Sent: Thursday, September 29, 2005 4:38 PM
> To: Roger Xu; Oracle-L_at_Freelists. Org (E-mail)
> Subject: RE: "snapshot too old" and undo_retention
>
>
> Are you computing stats (100% sample size)? Perhaps you could/should
> estimate a small portion, like 5% instead?
>
> -----Original Message-----
> From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]On
> Behalf Of Roger Xu
>
>
>
> We have a huge table and it takes more than 24 hours to collect its
> statistics.
>
>
>
>
> This e-mail is intended solely for the person or entity to which it is
> addressed and may contain confidential and/or privileged information. Any
> review, dissemination, copying, printing or other use of this e-mail by
> persons or entities other than the addressee is prohibited. If you have
> received this e-mail in error, please contact the sender immediately and
> delete the material.
> ____________________________________________________________________
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. Any questions please call 972-721-8257 or email your
> request to tech_support_at_dp7uptx.com.
>

--
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Sep 29 2005 - 18:21:48 CDT

Original text of this message

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