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: Local indexes

Re: Local indexes

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: 2000/06/08
Message-ID: <393FA5D4.240D@yahoo.com>#1/1

amerar_at_my-deja.com wrote:
>
> Hello,
>
> I have a question. I am about to partition a very large table. The
> table holds about 5 million records. This table also has a primary key.
> When you define a primary key on a table, it also creates an index.
> Can I make this index local so it is also partitioned?
>
> I am unsure because the index is 'automatically' created when you define
> the primary key constraint.........
>
> Please cc a copy to: amerar_at_ci.chi.il.us
>
> Thanks,
>
> Arthur
> amerar_at_ci.chi.il.us
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

Include the partition key in the primary key definition.

Then create the index first before adding the constraint.

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk

We are born naked, wet and hungry...then things get worse
Received on Thu Jun 08 2000 - 00:00:00 CDT

Original text of this message

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