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: ** anyway to create a primary key on table with duplicates that cannot be deleted

Re: ** anyway to create a primary key on table with duplicates that cannot be deleted

From: Lou Fangxin <anysql_at_gmail.com>
Date: Fri, 21 Oct 2005 13:19:10 +0800
Message-ID: <ea5907d30510202219s22f8ade4tf57cbc034a1c7f31@mail.gmail.com>


Hi all:
  Create a non-unique index, then add the primary key constraint with "enable novalidate" option, it will keep the new rows inserted unique, while keep the current duplicate rows exist in table.  On 10/20/05, A Joshi <ajoshi977_at_yahoo.com> wrote:

> Hi,
> I have a table under replication and corrupted with duplicates. I cannot
> do any update/delete operation on the table since it needs a primary key. I
> cannot create a primary key since duplicates exist. catch..
> i tried creating index by appending rowid/rownum but no luck. Any way out
> of this. Cannot remove the table from replication since that needs quiescing
> and cannot quiese right now due to processing that will last another 4 days.
> Thanks for help.
>
> ------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.<http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/>
>
>

--
Welcome, Fangxin.Lou from China
Home: http://www.anysql.net/en/
Mydul: http://www.anysql.net/en/mydmp.html

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Oct 21 2005 - 00:21:51 CDT

Original text of this message

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