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: Pls Help... Oracle sort order

Re: Pls Help... Oracle sort order

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 06 Jul 2007 15:06:48 -0700
Message-ID: <1183759607.55575@bubbleator.drizzle.com>


fitzjarrell_at_cox.net wrote:

> It doesn't matter if you're using Oracle 2 or Oracle 10gR2, the answer
> is still the same. Maybe in Oracle 44 ordered heap tables will exist.
>

>> Thanks.

>
> David Fitzjarrell

In a sense they do now. Try this example from Morgan's Library.

CREATE CLUSTER sorted_hc (
program_id NUMBER(3),
line_id NUMBER(10) SORT,
delivery_dt DATE SORT)
TABLESPACE uwdata
HASHKEYS 11
HASH IS program_id;

CREATE TABLE shc_airplane (
program_id NUMBER(3),
line_id NUMBER(10) SORT,
delivery_dt DATE SORT,
customer_id VARCHAR2(3),
order_dt DATE)
CLUSTER sorted_hc (program_id, line_id, delivery_dt);

But it seems it is not the data that is sorted but rather the hashes.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Fri Jul 06 2007 - 17:06:48 CDT

Original text of this message

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