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 -> Two different explain plans for same query

Two different explain plans for same query

From: Norman Dunbar <Norman.Dunbar_at_lfs.co.uk>
Date: Wed, 23 Apr 2003 11:27:52 +0100
Message-ID: <E2F6A70FE45242488C865C3BC1245DA703972065@lnewton.leeds.lfs.co.uk>


Morning Francois,

the default on exp is to estimate stats, and the default on imp is to execute analyze statements in the dump file.

I suspect you have not collected stats on the live system, while the test side is being estimated whenever you do an import. This gives the cost based optimser stats to work with, so it figures out a better execution plan.

HTH Regards,
Norman.



Norman Dunbar
Database/Unix administrator
Lynx Financial Systems Ltd.
mailto:Norman.Dunbar_at_LFS.co.uk
Tel: 0113 289 6265
Fax: 0113 289 3146
URL: http://www.Lynx-FS.com

-------------------------------------
Received on Wed Apr 23 2003 - 05:27:52 CDT

Original text of this message

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