dbTalk Databases Forums  

partitioned unique index

comp.databases.oracle.server comp.databases.oracle.server


Discuss partitioned unique index in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
alex123
 
Posts: n/a

Default partitioned unique index - 10-11-2010 , 06:43 AM






Hi,

I have a table with is partitioned by value by one of column A. It is
possible to create primary key on another column B which index will be
partitioned like table?

Reply With Quote
  #2  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: partitioned unique index - 10-11-2010 , 11:46 AM






On Mon, 11 Oct 2010 04:43:51 -0700, alex123 wrote:

Quote:
Hi,

I have a table with is partitioned by value by one of column A. It is
possible to create primary key on another column B which index will be
partitioned like table?
You can create a global unique index or you can create a unique prefixed
local index.



--
http://mgogala.byethost5.com

Reply With Quote
  #3  
Old   
Jonathan Lewis
 
Posts: n/a

Default Re: partitioned unique index - 10-12-2010 , 02:16 PM



"alex123" <michalwert (AT) poczta (DOT) fm> wrote

Quote:
Hi,

I have a table with is partitioned by value by one of column A. It is
possible to create primary key on another column B which index will be
partitioned like table?

No,

If you want a local index to support a primary key or unique constraint
the partitioning column(s) have to be a subset of the primary key / unique
column(s)

--
Regards

Jonathan Lewis
http://jonathanlewis.wordpress.com

Reply With Quote
  #4  
Old   
joel garry
 
Posts: n/a

Default Re: partitioned unique index - 10-12-2010 , 04:32 PM



On Oct 12, 12:16*pm, "Jonathan Lewis" <jonat... (AT) jlcomp (DOT) demon.co.uk>
wrote:
Quote:
"alex123" <michalw... (AT) poczta (DOT) fm> wrote in message

news:02752f68-e0c6-4d77-9c36-a87942d29934 (AT) g10g2000vbc (DOT) googlegroups.com...

Hi,

I have a table with is partitioned by value by one of column A. It is
possible to create primary key on another column B which index will be
partitioned like table?

No,

If you want a local index to support a primary key or unique constraint
the partitioning column(s) have to be a subset of the primary key / unique
column(s)
Of course I have no idea what I'm talking about, but wondering if this
is a use for cube-organized materialized views. I'm guessing that
since minimax operators are a type of aggregator, there might be a way
to effectively repartition with the mview: http://www.rittmanmead.com/files/COMV_PAPER.pdf

jg
--
@home.com is bogus.
http://threatpost.com/en_us/blogs/tw...-500000-092110

Reply With Quote
  #5  
Old   
alex123
 
Posts: n/a

Default Re: partitioned unique index - 10-13-2010 , 02:32 AM



Quote:
No,

If you want a local index to support a primary key or unique constraint
the partitioning column(s) have to be a subset of the primary key / unique
column(s)
So if I want to truncate partition of table with primary key I have to
rebuild unique index on PK or use 'update global indexes'? I cannot do
it without these options?

Reply With Quote
  #6  
Old   
Jonathan Lewis
 
Posts: n/a

Default Re: partitioned unique index - 10-13-2010 , 02:55 AM



"alex123" <michalwert (AT) poczta (DOT) fm> wrote

Quote:
No,

If you want a local index to support a primary key or unique constraint
the partitioning column(s) have to be a subset of the primary key /
unique
column(s)

So if I want to truncate partition of table with primary key I have to
rebuild unique index on PK or use 'update global indexes'? I cannot do
it without these options?

If you can't create the index as local that's correct .

--
Regards

Jonathan Lewis
http://jonathanlewis.wordpress.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.