N-way replication

hi,
can someone please provide a script, allowing n-way/mesh/update anywhere topology HA/DR system.
I am able to setup a hot standby two-way replicating system;
MACH1<---->MACH2 [SITE A]
these two servers replicate using the two way hot standby replication scheme.
MACH3<----->MACH4 [SITE B]
also these two servers replicate using the two way hot standby replication scheme.
but now i need the two sites also replicate with the other, for example;
MACH2<------>MACH3 [SITE A]+[SITE B]
Is it possible to do this with a secondary replication scheme? (it is not a problem two sites are one way or two way replicating, all solutions will be appreciated :) )
Thanks.

Thanks for the extra detail. My first comment is that unless you have a compelling reason to use TimesTen 7.0 you should really consider using TimesTen 11.2.1 for any new developments; it has many new features compared to 7.0 plus better performance in many scenarios.
The configuration that you want to achieve can easily be realised using classic or legacy replication. Here is a 4-way example using database level replication:
CREATE REPLICATION myrepscheme
ELEMENT e1 DATASTORE
MASTER mystore ON mach1
SUBSCRIBER mystore ON mach2
SUBSCRIBER mystore ON mach3
SUBSCRIBER mystore ON mach4
ELEMENT e2 DATASTORE
MASTER mystore ON mach2
SUBSCRIBER mystore ON mach1
SUBSCRIBER mystore ON mach3
SUBSCRIBER mystore ON mach4
ELEMENT e3 DATASTORE
MASTER mystore ON mach3
SUBSCRIBER mystore ON mach1
SUBSCRIBER mystore ON mach2
SUBSCRIBER mystore ON mach4
ELEMENT e4 DATASTORE
MASTER mystore ON mach4
SUBSCRIBER mystore ON mach1
SUBSCRIBER mystore ON mach2
SUBSCRIBER mystore ON mach3
STORE mystore ON mach1 PORT 10000
STORE mystore ON mach2 PORT 10001
STORE mystore ON mach3 PORT 10002
STORE mystore ON mach4 PORT 10003;
Looks easy but there are some important caveats:
1. If you use the default asynchronous mode of operation then when the currently 'active' datastore (the one receiving application updates) or the machine hosting it fails there will, in general, be some trapped transactions. If you immediately failover the application to another datastore and then recover the failed store you need to consider what will happen to those transactions... You really have 2 choices; allow them to flow across after the store has been recovered but then you run the risk of 'old' updates overwriting 'newer' updates or you discard the failed datastore entirely and re-create it by duplicating the new active datastore. Either way you will typically 'lose' some transactions and/or have diverged datastores. Using conflict resolution may help (this is only available with table level replication not datastore level replication) but it is not always a foolproof solution.
2. You need to take care with the geopgraphic links to make sure that the bandwidth and latency of the connections is sufficient for replication to operate successfully. You will almost certainly have to activate the software compression option (COMPRESS TRAFFIC ON) if you are using geographic replication. You also need to ensure that the O/S TCP/IP settings are tunes suitable for high latency connections.
There is an alternative (and preferred) solution for this requirement based on active/standby pair replication. Rather than explain it here (it is quite detailed) I have written a whitepaper that describes this (and other) replication solutions; if you are interested and can give me an e-mail address I will send it to you.
Chris

Similar Messages

  • One way replication from MS sql server to Oracle 10g

    Hi,
    We are using Sql server 2005 windows 2003 32 bit and Oracle 10g 10.2.0.3 on linux 64 bit
    Is it possible to replcate table data on real time from sql server (2005 32 bit or sql server 2000 32 bit)to oracle 10g running on linux 64 bit?
    If yes then what are the steps.
    It will be one way replication from sql server to oracle.
    Which option is best sql server dts or Oracle Stream replication to replicate table data?
    Regards,

    If you want to push data from SqlServer, then ODBC, Linked tables, DTS etc.
    If you want to pull data from Oracle, then Heterogenous Services / Gateway.

  • Implement two way replication on few tables

    Is there a way where I can implement 2 way replication.
    For instance I've two database A and B
    In a table in database A get updated or changed ..the effect should be shown on B
    and vice versa....
    Need ideas...

    * Oracle edition (enterprise, standard),
    Enterprise edition
    * network connectivity (is there a stable network link between the two),
    Yes we have a stable network
    * latency requirements (how quickly does a change on one have to appear on the other), and
    probably every 3 hrs
    * business requirements (why are you replicating the data in the first place)
    Well ours is call center, we work according to the availability of the interpereters and also we keep change pricing of call on daily basis.
    So there are few tables which needed to be updated regularly.

  • Oracle stream two ways replication

    Hi all,
    I have a primary database and standby database. I'm using Oracle Stream for replication.
    I have a question.
    Can my standby database becomes primary and primary database becomes standby?
    Thank you!
    Dan.

    Thanks Arun,
    I've configured Bi-directional Replication on DB-11G-R2 by command and configured 1 way replication on Enterprise Manager but i failed to configure Bi-directional Replication on Enterprise Manager.
    Do you have document that guides steps by steps configuration Bi-directional Replication on Enterprise Manager?
    Brds,
    Dan.

  • 2 way replication using Oracle 10g OID

    Hi Friends,
    Is it possible to have 2 way replication between Oracle E-Biz R12.1.3 and Microsoft Active Directory(windows 2008 server) at the same time using Oracle 10g OID.
    Regards,
    DB

    Hi Leoncio,
    Thanks and the requirement is :
    1) user will be cretaed in Oracle e-biz R12.1.3 HRMS application and it should be replicated to Microsoft Active Directory (windows 2008 server)
    2)E-mail address will be cretaed in Microsoft Active Directory (windows 2008 server) against an existing user and it shoule be replicated/updated in Oracle e-biz application User
    Regards,
    DB

  • 3 Way Replication with SYNC_CAPTURE (WBSSTORT = WBSZENTR = WBSSTORT2)

    Hi,
    i have a big issue in Oracle Streams 11g (11.1.0.7) with a 3 Way replication with SYNC_CAPTURE.
    My challenge is a replication just like that:
    WBSSTORT <=> WBSZENTR <=> WBSSTORT2
    I have to use the SYNC_CAPTURE because our Customer is using a Oracle Standard Edition.
    I followed your Metalink Note: 462102.1 with one big difference in Capture Process.
    REM ####################################
    REM ### CREATE SYNC CAPTURE ########
    REM ####################################
    conn stradmin/stradmin@WBSSTORT
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'mfr.t2',
    streams_type => 'sync_capture',
    streams_name => 'sync_capture',
    queue_name => 'stradmin.streams_queue',
    source_database => 'WBSSTORT.OPITZ_CONSULTING.INT');
    END;
    conn stradmin/stradmin@WBSSTORT2
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'mfr.t2',
    streams_type => 'sync_capture',
    streams_name => 'sync_capture',
    queue_name => 'stradmin.streams_queue',
    source_database => 'WBSSTORT2.OPITZ_CONSULTING.INT');
    END;
    conn stradmin/stradmin@WBSZENTR
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'mfr.t2',
    streams_type => 'sync_capture',
    streams_name => 'sync_capture',
    queue_name => 'stradmin.streams_queue',
    source_database => 'WBSZENTR.OPITZ_CONSULTING.INT',
    include_tagged_lcr => true);
    END;
    After I have instantiatet the Table SCNs, I tried to insert a row in WBSZENTR, but that row is not propagated and applied to WBSSTORT or WBSSTORT2.
    If I insert a row into WBSSTORT, nothing is propagated and applied on WBSZENTR or WBSSTORT2.
    So my questions are:
    1.     Can I build a 3 way Replication with SYNC_CAPTURE
    2.     I’m not sure if the Apply Process working, because the apply_capture is set to TRUE, but in Oracle Documentation I read, the the SYNC_CAPTURE is Captureing only on Table and not from REDO
    3.     How can I Build a 3 Way Replication with SYNC_CAPTURE
    Many Thanx and greetings from Berlin – Germany
    Martin

    Have you seen the metalink note: 728911.1

  • One-Way replication

    Hi,
    Is there a way to perform a one-way replication: we run 9i on a primary server and we want to duplicate the database (running on that server) to a secondary server In case of a failure of the primary server, the second one would be operational.
    We are thinking about using replication to copy data from the primary database to the secondary server. The problem with this solution is that replication is a 2 way process: any changes made on the secondary server is duplicated to the primary one.
    Deletion is a huge problem in our case: deleting a table from the standby server, would delete it from the primary one. This is not acceptable in our case because we do not want to have changes made on the secondery server copied to the first one!
    Any solution to that problem?
    Thanks in advance.

    Using read only materialized view

  • Setup Masters (two ways) Replication

    Anyone knows where I can find clear setup documentation for master replication using Enterprise Manager?? I have two Linux servers running Oracle 9.2 and I like to setup two ways replication between DB1 on server 1 and DB2 on Server 2. I read Oracle replication documentation and It is not clear..Could I setup everything by using tools or I need to run some scripts myself?? thanks...

    Refer to the Metalink Note 117434.1 [http://metalink.oracle.com] - title "Initial Steps Required to Create a Multi Master Replication Environment V8.1/V9.x
    Also, the Oracle Replication Management API Reference document that comes with the Oracle online documentation has scenario-based step-by-step instructions.

  • OID 2 WAY LDAP replication

    Has anyone been able to create a multi master replication environment between 3 OID servers using LDAP 2 way replication between each?
    Scenario
    oid1 --> oid2
    oid1 --> oid3
    oid2 --> oid1
    oid2 --> oid3
    oid3 --> oid1
    oid3 --> oid2
    I can get oid1 to replicate to both oid2 & oid3, but not oid2 replicating to both oid1 & oid3 and vice versa.
    Any help would be appreciated...........
    Thanks
    J

    No, this kind of scenario is not supported.
    regards,
    --olaf                                                                                                                                                                                                   

  • 2-Way Materialized View Replication

    Dear All,
    i want to know if it is possible to configure 2-way Replication with Materailized view Replication
    e.g if i had EMP table at master site
    and MV EMP_MV at materialized view site
    if i update EMP table in master site ,then EMP_MV is updated automatically
    it is working fine
    but i want if i update EMP_MV at MV site then the underlying table EMP at master site should also be updated
    if it is possible then how can we do that ???
    Regards,
    M.Shakeel Azeem

    Can u please give me the code to resolve conflict issue?
    i think i have to execute the code at master site
    for now ,i had resolve the issue by
    1) Login to Oracle Enterprise Manager with the replication adminstrator user
    2) Go to: Distributed->Advanced Replication->Administration
    3) On the right there will be a tab called "Errors"
    4) Delete or Re-run the error shown with the buttons on the bottom right.
    but now i m getting this in alter.log
    Thu Nov 08 06:29:47 2007
    Errors in file d:\oracle\admin\testdb\udump\testdb_j000_8420.trc:
    ORA-12012: error on auto execute of job 51
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 3
    ORA-01005: null password given; logon denied
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 794
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 851
    ORA-06512: at "SYS.DBMS_IREFRESH", line 683
    ORA-06512: at "SYS.DBMS_REFRESH", line 195
    ORA-06512: at line 1
    Please suggest?
    thanx a lot

  • MYSQL 55 to Oracle 11gr1 replication(oneway) - can not replicate

    I have setup golden gate replication between mysql 55 and oracle 11gr1. While trying to setup the initial load, I do'nt see any data push to oracle from mysql.
    What could be wrong in my setup.? has anyone tried this kind of setup? i see the the report for replicat and it says data is not replicated. while extract shows that 4 rows from table are taken for insert.

    Hi Stev
    I am trying to do the initial load process
    On source (MYSQL 55)
    database (ggtest and table test)
    table test has
    TEST(COL1 INT)
    manager is running on default port 7809
    manager parameter file is defined with (PORT 7809)
    There is initial load extract (EINI01) -->
    ADD EXTRACT EINI01
    param file
    EXTRACT EINI01
    SOURCEDB [email protected], USERID ggsdev, PASSWORD ggsdev
    RMTHOST 192.168.75.116, MGRPORT 7809
    RMPTTASK REPLICAT, GROUP RINI01
    TABLE ggtest.TEST
    On target oracle 11gr1 (11.1.0.6)
    Database in archive log mode, with minimum supplemental logging.
    replicat process
    ADD REPLICAT RINI01
    Parameter file for replicat
    REPLICAT RINI01
    USERID ggs_owner, PASSWORD ggs_owner ( added in target database)
    ASSUMTARGETDEFS
    SETENV (NLS_LANG="AMERICAN_AMERICA.WE8MSWIN1252")
    MAP ggtest.TEST , TARGET GGTEST.TEST;
    -- to start the initial load ( mysql side has 4 rows, oracle has no row )
    on source, i ran the command
    ggsci> start extract eini01
    I can see on report, extract has picked 4 rows for insert, but on replicat side no replication done. No error reported in gserr.log and there was a communication between source side of extract with traget side manager and sunsequently repliacat on target was started by manager and stopped normally. but no rows replicated.
    Between oracle-to-oracle there is no problem. But my actual project is to setup from mysql to oracle (one way replication).
    let me know if you need any other info.
    Thanks
    rafey

  • Replication of Sales contract from CRM to R/3

    Hi Experts,
    I have a requirement of replicating the created sales contract in CRM to the R/3 system through Middleware in 2007. In the standard way replication of R/3 contract to CRM is only possible. Here the BDOC used in BUS_TRANSACTION_MESSAGE and there is no mapping modules present for CRM to R/3.
    Is it wise to create a custom adapter and use the fm CRM_BUS_MESSAGE_R3_UPLOAD_SRV as the mapping module and enhance the BADI CRM_BUS20001_R3A?
    Please throw me some light on how to proceed with the development.
    Yours answers are greately appreciated!!
    Regards,
    Suthagar.

    Hi Kai,
    Its the normal sales contract with the Pricing aggreements. In SAP help, I found a note saying Note that you cannot download CRM contracts to the SAP ECC system
    please find the link [http://help.sap.com/saphelp_crm60/helpdata/en/7a/e486398dcfd74fe10000000a11402f/frameset.htm], the note can be found in Data exchange for sales contract under the Sales contracts.
    Also on the transaction R3AC1 with the sales contract type, the mapping from CRM to R/3 is blank.
    If it is possbile to replicate from CRM to R/3, please let me know the steps to acheive it.
    Thanks for your help.
    Regards,
    Suthagar.

  • Replication of table from Oracle 10g to sql server 2000

    Could i replicate table from Oracle 10g to sql server online. we have tables with same configuration and if any change happen in oracle 10g or sql server in that table we need to replicate that change to other database.
    What is the solution for this two way replication between sql server and Oracle 10g

    But the tutorial is saying that i will have to install Oracle database on the server already having sql server, is it client or whole database, if it is then it will acquire lot of resource.
    I want to find out that for Heterogenous Service ODBC, we need third party software for ODBC Driver of SQL SERVER for Linux and secondly if we use Transparent Gateway then what are the steps for its configuration.
    I could not find steps of configuration of Transoparent gateway, when i am trying to install Transparent gateway from Universal installer, it is not there. where do i find it , Do i need to purchase it too.

  • Oracle Standard Edition and GoldenGate for replication?

    The Question:
    Can GoldenGate run in a Standard Edition RAC ==> Enterprise Edition standalone environment and perform the required rule-based replication without requiring an upgrade of our RAC Standard Edition to RAC Enterprise Edition?
    The environment:
    Source System: 2-node RAC running Standard Edition 10.2.0.5 (RHEL5 x86-64)
    Target System: 1-node running Enterprise Edition 11.2.0.1 (RHEL5 x86-64)
    The requirement:
    Lossless one-way replication in "real time" of selected schema while excluding selected DDL/DML based on multiple rules.
    Present solution:
    LogMiner, but there is a known LogMiner bug (p8977287) that causes data loss when one RAC node goes down or is evicted from the cluster. The bug is reportedly patched in 11.2.0.2 and is slated to be fixed in 12.x.
    Thx.

    Yes. Simple enough, it can extract from SE, even XE!

  • Goldengate replication of CLOBs in Linux

    Hi All,
    I'm facing a weird problem using GoldenGate to replicate CLOBs in a Linux environment. I have configured GG for a simple one-way replication of no more than 10 tables from Oracle to Oracle databases.
    Most of these tables have CLOB columns and during my testing, in a Linux box, I detected that the CLOB data is replicated to the target db adding an extra space between each character. For example:
    In the source:
    Text (CLOB): Testing replication of CLOB using Goldengate
    In the target, the replicat is saving the data in this way:
    Text (CLOB): T e s t i n g r e p l i c a t i o n o f C L O B u s i n g G o l d e n g a t e
    Have you seen this problen before? Is there any problem with my GG installation? I tested this in a Windows platform and there, the CLOBs are being replicated fine.
    The details of my Linux and GG env:
    SO: Oracle's Enterprise Linux 32bit
    Database: 11GR2
    GG (I’ve tried both 11G and 10G versions):
    For 10G:
    [orgolden@naciprdell209 golden]$ ./ggsci
    Oracle GoldenGate Command Interpreter for Oracle
    Version 10.4.0.19 Build 002
    Linux, x86, 32bit (optimized), Oracle 10 on Sep 17 2009 23:49:42
    Copyright (C) 1995, 2009, Oracle and/or its affiliates. All rights reserved.
    For 11G:
    [orgolden@naciprdell209 golden_11g]$ ./ggsci
    Oracle GoldenGate Command Interpreter for Oracle
    Version 10.4.0.19 Build 002
    Linux, x86, 32bit (optimized), Oracle 11 on Sep 17 2009 23:49:42
    Copyright (C) 1995, 2009, Oracle and/or its affiliates. All rights reserved.
    Thanks and regards,
    Harvey

    Okay, so I reviewed the documentation and need some help in replicating DDL for 2 schemas.
    Here is my Extract and Replicat modules
    EXTRACT EXT1
    USERID ggs_owner, PASSWORD ggs_owner
    RMTHOST db2, MGRPORT 7809
    RMTTRAIL /home/oracle/goldengate/dirdat/gg
    ---ddl---
    DDL INCLUDE MAPPED
    ---dml---
    table schema1.*;
    table exclude schema1.*_sq;
    REPLICAT REP1
    ASSUMETARGETDEFS
    USERID ggs_owner, PASSWORD ggs_owner
    DDL INCLUDE MAPPED
    DDLERROR DEFAULT IGNORE RETRYOP
    REPERROR (1403, DISCARD)
    MAP schema1.*, TARGET schema1.* ;
    MAP schema2.*, TARGET schema2.*;
    My issue is that ddl replication is only working for schema1. No ddl is being replicated with schema2. I know there must be a something small I am overlooking.
    I was successful with
    DDL INCLUDE ALL, EXCLUDE "schema3.*, EXCLUDE "schema4.*", EXCLUDE "schema5.*", etc...
    However, I don't want to list out every schema that could potentially perform ddl. I would think the DDL INCLUDE MAPPED and then include those schemas that you want mapped.
    Any ideas?

Maybe you are looking for