Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g4N3MnJ29227
 for <oracle-l@naude.co.za>; Wed, 22 May 2002 23:22:49 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id MAA93750;
 Wed, 22 May 2002 12:19:42 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 0046838E; Wed, 22 May 2002 12:03:40 -0800
Message-ID: <F001.0046838E.20020522120340@fatcity.com>
Date: Wed, 22 May 2002 12:03:40 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Browett, Darren" <dbrowett@city.coquitlam.bc.ca>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Browett, Darren" <dbrowett@city.coquitlam.bc.ca>
Subject: Optimizer choosing different index
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain;	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Oracle 8.0.5, peoplesoft version 7.51

We have a report that has stopped working due to running out of temporary
space. 

The first step was to check the explain plan.  I compared the explain plans
between the 
production database and a dev database that is approx 6 months old.  They
were very different.  

Upon review we found that the production database is now using a different
index then the dev system.

I made a copy of the prod database, deleted the index, and the explain plan
and sql performed the
same as the dev system.  

Question I have is, what would cause the cost based optimizer to choose a
different index.  The only thing
that has changed is the number of rows in the source table.  

Statistics are up-todate, and I have re-built the indexes in question.

Thanks

Darren

----------------------------------------------------------------------------
----------------------------------------------
Darren Browett P.Eng 						This message
was transmitted
Data Administrator		 				using 100%
recycled electrons 
Information and Communication Technology
City of Coquitlam 
P:(604)927 - 3614 
E:dbrowett@city.coquitlam.bc.ca 
----------------------------------------------------------------------------
----------------------------------------------- 


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Browett, Darren
  INET: dbrowett@city.coquitlam.bc.ca

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@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).

