Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: disable validate on a partitioned table?

RE: disable validate on a partitioned table?

From: Khedr, Waleed <Waleed.Khedr_at_FMR.COM>
Date: Mon, 30 Sep 2002 20:28:19 -0800
Message-ID: <F001.004DD097.20020930202819@fatcity.com>


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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=788141003-01102002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</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>&gt;From:   Khedr, Waleed [<A
  href="mailto:Waleed.Khedr_at_FMR.COM">mailto:Waleed.Khedr_at_FMR.COM</A>]</FONT>   <BR><FONT size=2>&gt;</FONT> <BR><FONT size=2>&gt;As you know for a   partitioned table: unique constraints</FONT> <BR><FONT size=2>&gt; could be   enforced by a local index or global index.</FONT> <BR><FONT size=2>&gt;   </FONT><BR><FONT size=2>&gt;For local index: the unique key will be part of

  the partitioning key.</FONT> <BR><FONT size=2>&gt;--------------------</FONT> 
  <BR><FONT size=2>&gt;--------------------</FONT> <BR><FONT size=2>&gt;So for a 
  partitioned table with a unique key that is a part</FONT> <BR><FONT   size=2>&gt; of the partitioning key, Loading a partition or exchanging</FONT>   <BR><FONT size=2>&gt; it does not require a full table scan or reading all   partitions.</FONT> <BR><FONT size=2>&gt; </FONT><BR><FONT   size=2>&gt;Uniqueness will be checked in memory during the   load/exchange</FONT> <BR><FONT size=2>&gt; process for only one   partition.</FONT> </P><BR>
  <P><FONT size=2>I see. So it will require a "full partition" scan but not a   full table scan. That makes sense.</FONT> <BR><FONT size=2>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</FONT></P>   <P><FONT size=2>ORA-25132 UNIQUE constraint (JRK.COUNTRY_UQ1) disabled and   validated in ALTER TABLE EXCHANGE PARTITION</FONT>
</P></BLOCKQUOTE></BODY></HTML>

------_=_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

Original text of this message

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