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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Explain plan cardinality way off / bad plan problem

Re: Explain plan cardinality way off / bad plan problem

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 21 Jul 2005 16:32:32 -0700
Message-ID: <1121988752.010777.235660@g44g2000cwa.googlegroups.com>


Perhaps the statistics are out of date. Look at dba_tables.num_rows for all the tables in the query and the view used in the query. If the value is more than 5% off from the actual count generate new statistics. Compare before and after explain plans.

You might want to see if you can eliminate the outer select by pushing the outer select where clause conditions into the inner selects.

HTH -- Mark D Powell -- Received on Thu Jul 21 2005 - 18:32:32 CDT

Original text of this message

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