Adding replication to an existing database.

I am looking at adding replication to an existing database. This database has lots of existing containers many of them are 1G in size. How will this be handled when the master and client initially start? Will the master just start sending to the client? Is there another option?

Yes. This, and the alternatives, are described in the Ref Guide, on the page entitled "Initializing a new site".
Alan Bram
Oracle

Similar Messages

  • Adding Replication to an existing App

    We're looking to add replication to our Bdb JE enabled application. We use the Direct Persistence Layer. So far, I've swapped out our use of the Environment object with that of a ReplicatedEnvironment object and wrapped our transactions with code similar to je.rep.quote.RunTransaction example. So basically, the application assumes that the local environment is master and replicates out to the group.
    This works, however, when I bring the app down, the other nodes elect a new master and when I bring the app back up and try to write, the write fails because the local environment is now a Replica. This is disconcerting to me as I don't see a manual way of forcing the local environment to be the master when it comes up (after having sync'ed with the other nodes).
    An alternative would be to move all persistence out of my application into remote nodes. I'm looking at the example code under je/rep. The example shows an HARouter class that can forward write requests to the master. However it looks rather low level, with the client application needing to marshall the requests to the server and the DPL code presumably would reside on the server nodes. My client code would need to change significantly to be able to write to an out of process node and I would have to keep the server DPL in sync with the client (my data's lifetime is one day, so schema changes are irrelevant).
    Am I correct in this assessment, or are there APIs to more seamlessly forward writes while still offering the client the DPL API? If this is the case, are there APIs to control which node is master?
    Thanks,
    Adam
    Edited by: 833022 on Feb 1, 2011 11:13 AM

    Adam,
    You're right that BDB JE does not currently provide APIs to forward writes seamlessly. There's two ways to think about this.
    If high availability is a priority, then you'd like your application to be able to flexibly handle the fact that mastership may have moved to any node in your group. If it can do that, you''ll be able to support writes with the least amount of disruption and delay in the event of a failover in the system. Alternatively, an application may find it preferable to have the writes serviced from a specific node. Replication is serving more like a backup, and the application is willing to incur some overhead to have mastership moved to a specific node.
    In the HA-is-a-priority case, there are two options for directing write operations. You've looked at one of them, the HA aware router based on com.sleepycat.je.rep.Monitor, which directs write requests to the master. That's the HARouter example. A second option is to set up an HA unaware router, which uses the com.sleepycat.je.rep.StateChangeListener, to track the node that is the master, and redirect operations to that node. That's the SimpleRouter example.
    With both options, your application would still have to do the work of forwarding. When using StateChangeListener, the code in the server nodes does it directly. The StockQuotesRMIForwarding example illustrates how to uses RMI to add forwarding to your application.
    If you'd like to take the approach where you mandate who is the master, you gain some application ease, but do reduce how available your application is, in the case where the targeted master node goes down. In BDBJE 4.2, which is not yet available, we have both an API and command line utility that transfers mastership to the specified node. I've appended the description. Unfortunately, while I think it would serve your needs, it's not yet in a released version. In BDBJE 4.1, your main option would be to use ReplicationMutableConfig.NODE_PRIORITY to skew the mastership toward the desired node. If you do that, and specify the initialElectionPolicy parameter in the ReplicatedEnvironment constructor to require that all nodes in the group participate in the first election, you could ensure that your desired node is always the master. But be careful -- if that node were down, your application would stall, unable to elect a new master!
    Hope this helps,
    Linda
    In JE 4.2, available in the future:
    ReplicationGroupAdmin.transferMastership
    public void transferMastership(String nodeName, int retries, int retryInterval, TimeUnit timeUnit)
    throws EnvironmentFailureException,
    InterruptedException,
    MasterStateException,
    MasterTransferFailureException,
    MemberNotFoundException,
    UnknownMasterException
    Transfer mastership of the replication group from the currentl master to a specified replica.
    This command is forwarded to the original, current master. The original master will request that the specified replica perform a syncup so its data is up to date with the original master. The period allowed for this syncup is specified by je.rep.catchupMasterTimeout, defined in ReplicationMutableConfig.CATCHUP_MASTER_TIMEOUT. When the replica is sufficiently caught up, the original master will send out messages to notify all nodes that the specified replica will be the new master.
    The original master shuts down after the mastership transfer is successfully done. A MasterReplicaTransitionExcepiton will be thrown when users try to do further operations on the original master. At that point, the original master will have to be closed and reopened to resume life as a replica.
    In the event of a network partition, it's possible that the original master is isolated from other nodes, and its transfer notification message is not seen by those nodes. In that case, the new master may not be the node specified in this API. To detect such unexpected transactions, this method will check to see if the specified replica is elected as a master
    Edited by: Linda Lee on Feb 1, 2011 3:42 PM
    Edited by: Linda Lee on Feb 1, 2011 3:53 PM

  • Adding Spatial to Existing Database

    I am looking for information detailing how to use/implement the
    Spatial search to an existing database. Most of the information
    I have already read does not indicate how to set up pre-existing
    tables. We are using another company's database design within
    our product and rather than rebuilding or recreating the current
    tables, I would like to see if we could add the indexes without
    major changes.
    Thanks!

    does the existing database design include the storage of spatial
    geometry or is it your intention to add spatial data storage
    capabilities to an existing design?

  • Which is better a new schema or adding tables in the existing schema

    Hi All,
    We have a new requirement from the client asking us to include a few new functionalities(pages--- all together a new application has to be embedded into our application) in our application. By adding these new functionalities, the number of hits to our application can be doubled.
    As per the above requirement, I would like to know that whether to create a new schema or to create some new tables in the existing database for the new functionalities.
    By what way, can I handle the number of requests in a better way? by creating the new schema or by creating the new tables for the new functionalities.
    Also I would like like to know what kind of factors will differ between creating a new schema or creating new tables for the new functionalities in the existing schema.
    FYI... We are using Cold Fusion as front-end and Oracle 9i for back-end

    I agree with VD in that it all depends on how closely the new features ties into your existing application structure.
    The second major factor to consider is since you mention "for client" is if your application has more than one client and if you will be rolliong this feature into the application for all clients. If you have multiple clients but only this one gets this feature then it may make more sense to use a second schema, but it really depends on how easy to identify and separate this feature's objects for the purpose of maintaining it through future upgrades is going to be.
    HTH -- Mark D Powell --

  • SSAS Deploy returns error on existing database instead of overwriting

    I am aware that this issue has been discussed before. However I have not found a satisfactory answer. I occasionally run into this issue: I have a deployed SSAS database on the server from a project in SSDT. I open the project again at a later
    time in SSDT, make some changes such as adding a new attribute to a dimension and deploy with the same name. I get a metadata engine error "Errors in the metadata manager. The database with the name of 'XYZ' already exists in the 'SERVER' server.".
     Please note that unlike commonly discussed scenarios, I have not renamed anything. The Database Name property in SSDT matches exactly both the Name and ID properties on the server, and the Deploy Changes Only property is set in SSDT. Why doesn't it
    see that I want to overwrite, or at least ask me whether I want to overwrite? Since the ID and Name properties on the server are derived from the Database Name property in SSDT, it is clear I want to overwrite?
    I know I can delete the database on the server and deploy successfully, but I don't want to do this. The only way I found of deploying successfully without deleting the database on the server is to change the Database Name property in SSDT (e.g.
    by adding a 2 to the original name) then deploy, rename back to the original name then deploy with overwriting, then delete the renamed one from the server.
    The fact that I can circumvent the error in this way surely proves the current functionality is a bug?
    Charles
    Charles Kangai, MCT

    Hi Charles,
    For the error message "Errors in the metadata manager. The database with the name of '' already exists in the '' server",
    generally there are two reason that can cause this issue.
    Deploy this solution to a different name than your existing database.
    Rename the previous database before deploying the new version with the new cube
    Please refer to the link below to see the detail information.
    http://geekswithblogs.net/darrengosbell/archive/2008/09/28/ssas-deploying-to-renamed-databases.aspx 
    Hope this helps.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Issue in adding Space to the existing Virtual Machine from added repository

    Hi,
    I'm facing issue in adding Space to the existing Virtual Machine (Guest OS) from added repository.
    Environment details :
    VM Server : /OVS => 130GB
    /OVS/935970F2CC2D4B4391701397517F1001/ => 512 GB
    Things I have done :
    •     I created a VM (Guest OS) in the VM Server with 120 GB
    •     After creating the VM (Guest OS) , When I tried adding a VIRTUAL DISK of size 150 GB , I got an error “Maximum available Disk space is only 10GB”.
    My query :
    •     Will I be able to add space to Existing VM from the added Repository ( /OVS/935970F2CC2D4B4391701397517F1001/ ) , whose system.img is stored in path /OVS/running_pool/34_rhel/ .
    Kindly help me out in this.
    Thanks in advance.
    -- Sri

    Hi all,
    I checked with Oracle on the above and got the info currently , the we can utilise only the space available in the existing repo and cannot extend to additional repo.
    Work around is : Clone it to the other repo , or Use Symbolic link .
    Thanks,
    Sri.

  • How to create a new database after copying an existing database with a new name

    hi
    i have an existing database and want to copy with a new name in sql server 2005 how do it is possible 
    spose
    i have a db name attached in sql server StoreManagementDB now i want to copy this database with all the transactions as StoreManagementDB_1.
    thanks

    Use a two steps to use a backup file to restore a database with a new name.
    ----You need to have a full backup of your database:
    --Step 1:
    RESTORE FILELISTONLY
    FROM DISK = 'C:\bk\TEST.BAK'
    --Find out the LogicalName of data file and log file
    -- in this case: the data file: TEST and the log file LogicalName: TEST_log
    --Both names will be used in the MOVE command
    --Step 2:
    -- Restore the files for test1.
    RESTORE DATABASE test1
    FROM DISK = 'C:\bk\TEST.BAK'
    WITH RECOVERY,
    MOVE 'TEST' TO 'C:\bk\test1_Data.mdf',
    MOVE 'TEST_log' TO 'C:\bk\test1_Log.ldf'
    GO

  • Creating a new database vs. Using the existing database

    Hi,
    I have to build a new desktop application over an existing oracle database -
    Current database is around 300 gb
    Has 1500+ tables
    Tables are in denormalized form and has ungrouped table columns
    High level of nesting is done in the triggers.
    Now before I take decision to use existing database I want to know
    1. what factors to consider while choosing between the existing db or a new db?
    Thanks in advance.

    Some of the things I would consider before including the two desktop applications together:
    Would you mind impacting one or the other application (downtime) if you needed to bounce the database for any reason, or if there were issues with the database. Keeping them separate would prevent having to bring down both applications if the database went down for any reason (planned or otherwise).
    Would the type of activity in both databases be so similar that all global optimizer and other parameter settings be perfect for both cases?
    Would the SLA be the same for both databases? Would your customers agree to impacts of one application data if you had to roll back the database for the other application?
    By having the two applications in the same database, you are also stuck with having to wait for both application vendors to certify their product with the next patch level or version for upgrades. Keeping them separate eliminates this problem.
    Is there any compelling reason to keep them together?
    Personally, I would keep them separate for all of the above reasons, and many more which I did not bother to write.

  • Error while installing EnterpriseManager grid control on existing database

    Hi All,
    While installing Oracle EnterpriseManager grid control on existing database
    it asked for deconfig an existing database control and while doing this we got an error as follows
    Getting temporary tablespace from database...
    Could not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ceserp.computechcorp.net)(PORT=1543)))(CONNECT_DATA=(SERVICE_NAME=GRID))): ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    CONFIG: stty: standard input: Invalid argument
    stty: standard input: Invalid argument
    stty: standard input: Invalid argument
    stty: standard input: Invalid argument
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing /u01/oracle10g_grid/DB10.2.0/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ceserp.computechcorp.net)(PORT=1543)))(CONNECT_DATA=(SERVICE_NAME=GRID))) -repos_user SYSMAN -action drop -verbose -output_file /u01/oracle10g_grid/DB10.2.0/cfgtoollogs/emca/GRID/emca_repos_drop_2010-03-15_11-14-10-PM.log
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error dropping the repository
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at /u01/oracle10g_grid/DB10.2.0/cfgtoollogs/emca/GRID/emca_repos_drop_<date>.log for more details.
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error dropping the repository
    Refer to the log file at /u01/oracle10g_grid/DB10.2.0/cfgtoollogs/emca/GRID/emca_2010-03-15_11-13-15-PM.log for more details.
    Mar 15, 2010 11:14:10 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error dropping the repository
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:183)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:134)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:171)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:486)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1142)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:470)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:419)
    please help on this issue
    Thanks

    Based on the error below:
    Could not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ceserp.computechcorp.net)(PORT=1543)))(CONNECT_DATA=(SERVICE_NAME=GRID))): ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
    It looks like the installer can't connect to your existing database.
    Can you ensure that your listener is servicing the already existing database.
    lsnrctl status -> will list services
    Make sure the database you want to use as your repository is there.

  • Members only area setup to query existing database before allowing creation of account

    I followed this walkthrough:
    Walkthrough: Creating a Web Site with Membership and User Login
    It was very helpful in creating the members login area.
    My next step is to link it to an existing database, so it will make sure the person who is trying to create an account is in that database. Is this easily done, or not possible? 
    I also need to know what I should do with the database. Should it be uploaded onto the webserver? It is currently kept in Microsoft Access, but I believe I need to put it into SQL? I apologize, I am not very knowledgeable about databases and how they work.
    Any help would be greatly appreciated! 

    http://msdn.microsoft.com/en-us/library/ms173463.aspx
    If this is an ACCESS database you will be better of asking this question om access forum.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Installing OEM Grid Control on Solaris Sparc using an existing database

    During installing OEM 10g on Solaris, after select "using an existing database" the connect string for database (host:port:sid) never is solicited and the path for datafiles neither, then the installation cancel.
    On Windows, this type of installation in the same version work fine!
    1_ How I do to install OEM 10g on Solaris using an existing db?
    Tx,
    Diego.

    Have you installed the Management Agent for the target database?

  • Use of existing database

    I have a database created on disk1 disk2 disk3.
    I detach the disks from the original server and attach them to a second server.
    I want to install the DB software on this server, but use the existing database.
    I tried to install with the option "software only", but couldn't find anywhere how to present the existing DB to the server.
    BTW, the OCR and voting disks are on different disks.
    Thanks in advance!
    P.S. It may be very simple, but I never did that and couldn't find documentation about it.

    fred11gr2 wrote:
    It should not matter the OS. It's a general issue about what Oracle tool to use to accomplish that.Yes and no. There are differences in what needs to be done to manually create an instance.
    For instance, on Windows, you need to use oradim to create a service for the instance, and this isn't necessary on unix/linux.
    But if you're looking for a conceptual answer, more than a steb-by-step instruction, you're right, it doesn't matter what os you're on.
    Brgds
    Johan

  • Adding a record in a database using the jbutton

    hi i'm a newbie of jdeveloper.. i just wannna ask how to code adding a record in a database POSTGRESQL using the jbutton.. i already connected in the database but in the model form it has already navigation buttons.. but i want to learn how to code the jbutton in a form without using navigation buttons. THANKS..

    I guess you are talking about swing JButton.
    If I remember it correctly you need to have a listener to the JButton something like this:-
    http://www.javaworld.com/jw-03-2001/print/listing5.txt
    Where on the cick of the button you will call a method that fetches the records from your Table

  • Importing a Database into existing database.

    Hi,
    I have a Oracle 8i server in a network, and I had another standalone computer with Oracle 8i Enterprise Edition installed on it. I want to take the backups from the standalone system to the main Server without overwriting the existing database running on it. The Databse is same in both systems(Server & Standalone system). I just want to append the database in the Server with the exported database of the standalone system at intervals of time (i.e. Weekly or monthly)

    so u wanted only the incremental data,
    either u can try standby database (manually applying archive log files weekly/monthly).
    or if you transaction tables not many, u can keep a log and tablewise and insert/delete/update, the same can be replicated in copy of the database
    regards

  • Installing Enterprise Manager 10g Grid Control Using an Existing Database

    I want to install Enterprise Manager 10g Grid Control 10.2.0.3 using an existing database. This database is RAC 10.2.0.2. and I use it as Infrastructure Metadata Repository.
    I is said in Oracle documentation that SYSMAN schema has to be dropped, thus Database console repository has to be dropped. As far as I understand after Grid Control installation I will not be able to use Database console for my RAC 10.2.0.2 Infrastructure Metadata Repository database. I will be able to use only Grid Control for this database.
    Am I right? Could you give me any advice about Installing Enterprise Manager 10g Grid Control Using an Existing Database?
    Thank you.

    I am trying to install the OEM rel 2.0 on AIX 5L from the downloaded software zip files which are as below,
    AIX_Grid_Control_full_10201_disk1.zip (656,766,406 bytes) (cksum - 2157028496)
    AIX_Grid_Control_full_10201_disk2.zip (655,758,726 bytes) (cksum - 2350778444)
    AIX_Grid_Control_full_10201_disk3.zip (641,760,716 bytes) (cksum - 2053607771)
    AIX_Grid_Control_full_10201_disk4.zip (606,903,411 bytes) (cksum - 4162514797)
    AIX_Grid_Control_full_10201_disk5.zip (576,555,758 bytes) (cksum - 3304661461)
    AIX_Grid_Control_full_10201_disk6.zip (459,658,650 bytes) (cksum - 3120478203)
    AIX_Grid_Control_full_10201_disk7.zip (311,903,435 bytes) (cksum - 2438252536)
    AIX_Grid_Control_full_10201_disk8.zip (224,594,251 bytes) (cksum - 2618845234)
    I am unable to locate the runInstaller in any of the disks 1- 8 ,can somebody help me on this. Thanks

Maybe you are looking for

  • When installing iTunes, an error message always shows

    I have tried to install iTunes many times, and I've tried all different versions just to make sure it wasn't one particular version that didn't work. It gets to the final page of installation and it says "iTunes installer completed. Errors occurred d

  • Who is online feature ; visibility of what users are in line (Excel login)

    Good morning: We are on BPC 7.5 Netweaver (not Microsoft) and need visibility of what users are on line in BPC (users logged in Excel client). Per SDN that functionality is available in BPC 7.5 for Microsoft under the BPC 7.0 MANAGEMENT CONSOLE  per

  • Does N810 support Bluetooth SAP(SIM Access Profile...

    Does N810 indeed support Bluetooth SAP? If so, N810 must have its own GSM modem, does N810 have modem?

  • Messenger

    Hi Guys i have just swapped to an i mac, i downloaded the latest version of microsoft messenger for mac but it doesnt seem to support video conferencing like the pc version i came from.. am i missing something?? Thanks Keith M

  • Mpg video will play in FF but not in IE

    Here's the link: http://02c11c8.netsolhost.com/melissa/index.html I have two flash files to play sound and one video file below them. This works in FireFox but not in IE. Any help would be greatly appreciated.