Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

where rownum < N is slow

AlleTFeb 15 2010 — edited Feb 17 2010
Hi all,

I am on a 10.2.0.4 SE RAC db.

When I execute

select * from <table> where rownum < N

The query hangs as if the dbms had to perform an entire scan of the table.

Do you have any idea of why this happens???

Thanks in advance
This post has been answered by Jonathan Lewis on Feb 15 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2010
Added on Feb 15 2010
40 comments
8,649 views