Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Why does sqlplus "select" produce different order of data?
Parallel Query Option does seem to be the reason, the table I was trying to query has a parallel degree of 6, once I disable that, I got same order each time.
Thanks for all your help.
David
On Thu, 04 Dec 1997 09:07:35 -0500, Allen Kirby <akirby_at_att.com> wrote:
>David Shi wrote:
>>
>> (please also forward your message to dshi_at_magpage.com, thanks a lot)
>>
>> Sorry about posting several questions at the same time, sometimes it's
>> so difficult to get help from Oracle technical support.
>>
>> I noticed when I do a select, each time I got different order of data,
>> is this a Unix buffer problem or something else?
>>
>> Oracle version 7.3.3, OS: Solaris 2.5.1 on a SUN 4000.
>>
><snip>
>
>
>Working as designed. Relational databases do not guarantee the order of
>rows returned from a query unless the order by clause is explicitly
>used. Now, I would have expected the rows to be in the same order,
>especially with a small table, but they don't have to be. Are you using
>the parallel query option? This could change the order. I'm sure it's
^^^^^^^^^^^^^^^^^^^^^^