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: FIRST_ROWS hint problem

Re: FIRST_ROWS hint problem

From: deepa balu via OracleMonster.com <forum_at_OracleMonster.com>
Date: Wed, 15 Dec 2004 08:11:54 GMT
Message-ID: <f32770bcdf944bb5a2c1d50c6ae8db57@OracleMonster.com>


i dont know the answer to you question.

But one thing for you to know is

The optimizer ignores FIRST_ROWS hint in DELETE and UPDATE statement blocks. So there is no use in adding the hint .

Also in SELECT statement blocks that contain any of the following syntax:

? Set operators (UNION, INTERSECT, MINUS, UNION ALL)

? GROUP BY clause

? FOR UPDATE clause

? Aggregate functions

? DISTINCT operator

? ORDER BY clauses, when there is no index on the ordering columns

These statements cannot be optimized for best response time, because Oracle must retrieve all rows accessed by the statement before returning the first row.

-- 
Message posted via http://www.oraclemonster.com
Received on Wed Dec 15 2004 - 02:11:54 CST

Original text of this message

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