title: Oracle: Difference in execution plans between databases
body: <p>I am comparing queries my development and production database.</p>
  
  <p>They are both Oracle 9i, but almost every single query has a completely different execution plan depending on the database.</p>
  
  <p>All tables/indexes are the same, but the dev database has about 1/10th the rows for each table.</p>
  
  <p>On production, the query execution plan it picks for most queries is different from development, and the cost is somtimes 1000x higher.  Queries on production also seem to be not using the correct indexes for queries in some cases (full table access).</p>
  
  <p>I have ran dbms_utility.analyze schema on both databases recently as well in the hopes the CBO would figure something out.</p>
  
  <p>Is there some other underlying oracle configuration that could be causing this?  </p>
  
  <p>I am a developer mostly so this kind of DBA analysis is fairly confusing at first..</p>