Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: optimizer_features_enable parameter & query plan

Re: optimizer_features_enable parameter & query plan

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Fri, 09 Jun 2006 20:32:02 +0200
Message-ID: <ghfj825mq2emv1lbj40ofquo1vbv33roof@4ax.com>


On 9 Jun 2006 04:50:49 -0700, "News" <Contact_404_at_hotmail.com> wrote:

>
>Sybrand Bakker a écrit :
>
>> exp help=y informs you about the various values of the statistics=
>> parameter
>
>This assumes that stats are available in 9i DB ? gathered
>periodically??
>I have already tried upgrading few DBs as described in docs. Upgrade
>Information Tool always displayed:
>
>WARNING: --> Database contains stale optimizer statistics.
>.... Refer to the 10g Upgrade Guide for instructions to update
>.... statistics prior to upgrading the database.
>.... Component Schemas with stale statistics:
>.... SYS
>(among others)

You could export them to a stats table with dbms_stats.export_schema_stats prior to exporting the database (and import them in the dictionary after database import) The statistics= parameter makes sure export add a command to gather statistics right after table creation.

--
Sybrand Bakker, Senior Oracle DBA
Received on Fri Jun 09 2006 - 13:32:02 CDT

Original text of this message

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