Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: disable validate on a partitioned table?
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C268FA.1971DB40"
------_=_NextPart_001_01C268FA.1971DB40
Content-Type: text/plain;
charset="iso-8859-1"
This is probably b/c the unique key does not include the partitioning key.
Waleed
-----Original Message-----
Sent: Monday, September 30, 2002 8:33 PM
To: Multiple recipients of list ORACLE-L
a partitioned table?
-----Original Message-----
>From: Khedr, Waleed [ mailto:Waleed.Khedr_at_FMR.COM
<mailto:Waleed.Khedr_at_FMR.COM> ]
> >As you know for a partitioned table: unique constraints > could be enforced by a local index or global index. > >For local index: the unique key will be part of the partitioning key. >-------------------- >-------------------- >So for a partitioned table with a unique key that is a part > of the partitioning key, Loading a partition or exchanging > it does not require a full table scan or reading all partitions. > >Uniqueness will be checked in memory during the load/exchange > process for only one partition.
I see. So it will require a "full partition" scan but not a full table scan.
That makes sense.
In any case my question was moot because I was unable to do an "alter table
... exchange partition ... " on a table with a disable validate key, even
though the documentation says that's one of the times when it would be
useful. When I tried doing the exchange partition I received
ORA-25132 UNIQUE constraint (JRK.COUNTRY_UQ1) disabled and validated in
ALTER TABLE EXCHANGE PARTITION
------_=_NextPart_001_01C268FA.1971DB40
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: disable validate on a partitioned table?</TITLE>
<META content="MSHTML 5.50.4915.500" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=788141003-01102002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=788141003-01102002><FONT face=Arial color=#0000ff size=2>This
is probably b/c the unique key does not include the partitioning
key.</FONT></SPAN></DIV>
<DIV><SPAN class=788141003-01102002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=788141003-01102002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=788141003-01102002><FONT face=Arial color=#0000ff
size=2>Waleed</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Jacques Kilchoer
[mailto:Jacques.Kilchoer_at_quest.com]<BR><B>Sent:</B> Monday, September 30, 2002
8:33 PM<BR><B>To:</B> Multiple recipients of list ORACLE-L<BR><B>Subject:</B>
[Possible Spam - go to http://spam.fmr.com] RE: disable validate on a
partitioned table?<BR><BR></FONT></DIV>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>>From:
Khedr, Waleed [<A
href="mailto:Waleed.Khedr_at_FMR.COM">mailto:Waleed.Khedr_at_FMR.COM</A>]</FONT>
<BR><FONT size=2>></FONT> <BR><FONT size=2>>As you know for a
partitioned table: unique constraints</FONT> <BR><FONT size=2>> could be
enforced by a local index or global index.</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>>For local index: the unique key will be part of
the partitioning key.</FONT> <BR><FONT size=2>>--------------------</FONT> <BR><FONT size=2>>--------------------</FONT> <BR><FONT size=2>>So for apartitioned table with a unique key that is a part</FONT> <BR><FONT size=2>> of the partitioning key, Loading a partition or exchanging</FONT> <BR><FONT size=2>> it does not require a full table scan or reading all partitions.</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>>Uniqueness will be checked in memory during the load/exchange</FONT> <BR><FONT size=2>> process for only one partition.</FONT> </P><BR>
------_=_NextPart_001_01C268FA.1971DB40--
------=_NextPartTM-000-b0822a90-2672-456a-b7c6-cb71656efaad--
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Khedr, Waleed INET: Waleed.Khedr_at_FMR.COM Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Sep 30 2002 - 23:28:19 CDT
![]() |
![]() |