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

Home -> Community -> Usenet -> comp.databases.oracle -> replication and primary key

replication and primary key

From: steve <me_at_me.com>
Date: Sat, 1 Jan 2005 18:27:32 +0800
Message-ID: <0001HW.BDFC9C1400282F49F03055B0@news.newsguy.com>


Hi,

several years ago , I implemented the oracle replication system.

At that time our database was ported from an old Fox pro application. ( K , no laughing at the back).

As the foxpro did not use "primary keys", I set up a replication column called "repindex".

Each site that adds records uses:

"siteID+sequencekey", this col, is col is only used fro replication, but I now have the situation that the primary key is allocated to this col.

As I'm now re-implementing in applications in java, I now want to allocate the primary key to another distinct column:

  1. can i just drop the primary key then enable the key on another col
  2. can the replication system still use the "repindex" col, without it being the primary key col

or do i have to
suspend replication
drop primary key constraint
enable new key col
regenerate replication support
re-enable replication.

I would ask tom, but getting a question to that guy is impossible these days.

steve Received on Sat Jan 01 2005 - 04:27:32 CST

Original text of this message

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