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: Adding to Plan_Table

Re: Adding to Plan_Table

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 9 Aug 2005 07:02:32 -0700
Message-ID: <1123594800.508841.192460@g44g2000cwa.googlegroups.com>


PRG, just because the first_rows version of the query is using indexes does not mean the all_rows version is less efficient. You need to actually test the queries. Then you should examine the statistics information to see why the CBO is wrong or why the use of indexes isn't the best plan. Often you can rewrite the query such that the CBO will find the best plan.

You can place hints in the SQL where necessary to provide the CBO guidence such as select /*+ ORDERED */ col_list ..... Hints are documented in the SQL Manual.

HTH -- Mark D Powell -- Received on Tue Aug 09 2005 - 09:02:32 CDT

Original text of this message

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