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 3 5290
steve wrote: 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).
"Nothing runs like a fox"
Still have an unlimited set here, for old times sake :) 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
What version Oracle?
The recommendation is to use primary keys for replication,
rowid is still supported for backward compatibility purposes.
(Advanced) Replication is pronounced dead by Oracle, BTW. or do i have to suspend replication drop primary key constraint enable new key col regenerate replication support re-enable replication.
You would, as soon as you change columns for replication
identification.
As it looks like a rebuild to start with, I'd look for
other options than Advanced Replication; 10g has other options,
which -in absence of version information- may or may not be
applicable to your situation.
If you want to stick to (Adv.) Replication, I'd rework your
design with primary keys.
--
Regards,
Frank van Bortel
On Sat, 1 Jan 2005 21:50:37 +0800, Frank van Bortel wrote
(in article <cr**********@news1.zwoll1.ov.home.nl>): steve wrote: 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). "Nothing runs like a fox" Still have an unlimited set here, for old times sake :)
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
What version Oracle? The recommendation is to use primary keys for replication, rowid is still supported for backward compatibility purposes.
(Advanced) Replication is pronounced dead by Oracle, BTW. or do i have to suspend replication drop primary key constraint enable new key col regenerate replication support re-enable replication.
You would, as soon as you change columns for replication identification.
As it looks like a rebuild to start with, I'd look for other options than Advanced Replication; 10g has other options, which -in absence of version information- may or may not be applicable to your situation. If you want to stick to (Adv.) Replication, I'd rework your design with primary keys.
oracle is currently 9.0.2.6.
I also have a registered 10g, but have not upgraded to it yet.
You say replication is dead?, what options are available in 10g
steve
steve wrote: On Sat, 1 Jan 2005 21:50:37 +0800, Frank van Bortel wrote (in article <cr**********@news1.zwoll1.ov.home.nl>):
steve wrote:
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).
"Nothing runs like a fox" Still have an unlimited set here, for old times sake :)
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
What version Oracle? The recommendation is to use primary keys for replication, rowid is still supported for backward compatibility purposes.
(Advanced) Replication is pronounced dead by Oracle, BTW.
or do i have to suspend replication drop primary key constraint enable new key col regenerate replication support re-enable replication.
You would, as soon as you change columns for replication identification.
As it looks like a rebuild to start with, I'd look for other options than Advanced Replication; 10g has other options, which -in absence of version information- may or may not be applicable to your situation. If you want to stick to (Adv.) Replication, I'd rework your design with primary keys.
oracle is currently 9.0.2.6. I also have a registered 10g, but have not upgraded to it yet.
You say replication is dead?, what options are available in 10g
steve
Streams
DataGuard
--
Daniel A. Morgan
University of Washington da******@x.washington.edu
(replace 'x' with 'u' to respond)
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =--- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Boris Villazon |
last post by:
Hi
First at all ... sorry for my poor english.
I have the following process:
I have a Primary PC that acquires data from an external device. This data is stored in a local database.
This...
|
by: Philip Trim |
last post by:
General Brief:
3 SQL Servers as MS SQL Server 2000 Standard Edition with Service
Pack 3
All using FTP for snapshots
All Servers are both Publishers and Distributors.
Server A has the correct...
|
by: Ian Wyld |
last post by:
Hello All
We intend to replicate a database in order to have it as a near immediate
standby in case of the failure of the main server.
Is this the best solution for disaster recovery?
We...
|
by: debian mojo |
last post by:
Hello Group,
I'm working on two SQL server databases on two different remote
servers. What client needs is that his database on one remote server
should be mirrored to the other one. The changed...
|
by: SQLNow |
last post by:
If I have two tables that I want to synchronize via replication publish
subscriber model and they don't contain primary keys i.e. an ID field, but
there are three columns that make a unique key. ...
|
by: subaruwrx88011 |
last post by:
Hello,
I am very new to MySQL and just got done reading the replication
chapter in my reference manual. I kinda understand but I still don't
know if my scenario is going to work out. Here is my...
|
by: DickChristoph |
last post by:
Hi
I tried posting this query in microsoft.public.sqlserver.programming but got
no response.
I am new to replication but I am trying to setup up a transactional
replication of tables from one...
|
by: tropicana |
last post by:
Hi,
I am setting up transactional replication and have run into a problem… Can anyone help?
The table I am publishing is called Area. The table, Area, is the same on both the publisher and the...
|
by: steve |
last post by:
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...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made but the http to https rule only works for...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
header("Location:".$urlback);
Is this the right layout the...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
| |