Multi-processes on the same machine open the same database

I run into an issue where I have two processes, running on the same machine.
Process-1 starts the replication as master and opens database for read-write.
Process-2 only opens the same database for read-write, no replication is started,
and process-2 will fail to open the database because of "Non-replication DB_ENV
handle attempting to modify a replicated environment" error.
Can you suggest a way to handle this scenario?
Can two processes on the same machine open the same database for read-write?
Thanks.

Following are how I setup the database environment for Master side:
DB_ENV->rep_set_priority(80)
DB_ENV->repmgr_set_ack_policy(DB_REPMGR_ACKS_ALL)
DB_ENV->repmgr_set_local_site()
DB_ENV->rep_set_nsites(2)
DB_ENV->set_cachesize(1MB)
DB_ENV->set_data_dir()
DB_ENV->set_lg_dir()
DB_ENV->set_tmp_dir()
DB_ENV->set_flags(DB_AUTO_COMMIT, 1)
DB_ENV->set_lg_max(1MB)
DB_ENV->log_set_config(DB_LOG_AUTO_REMOVE, 1)
DB_ENV->set_lg_bsize(1MB)
openFlags = DB_INIT_MPOOL | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN | DB_INIT_REP | DB_THREAD | DB_CREATE | DB_USE_ENVIRON;
DB_ENV->open("/home/db", openFlags, 0644)
DB_ENV->repmgr_start(3 threads, DB_REP_MASTER)
Both processes using the same environment home directory.
Now I'm able to get both process up and running, because now I check for DB_REP_IGNORE return value from repmgr_start() method on the second process.
The first process starts the replication server, and the second process will not start the replication server at all.
However, if the first process terminated and got restart, the replication server will not be restarted...
I saw there's a check of "listener" in the repmgr_start function.
How can I restart the replication server either upon restarting the first process or from the running second process?

Similar Messages

  • I am in the middle of a job using CS 6, but at the same time opening the Creative Suite apps.  I created an InDesign file in CS 6, saved it, and now I can't open it. I'm getting this message: Cannot open file because it was saved with a newer version of A

    I am in the middle of a job using CS 6, but at the same time opening the Creative Suite apps.  I created an InDesign file in CS 6, saved it, and now I can't open it. I'm getting this message: Cannot open file because it was saved with a newer version of Adobe InDesign CC (10.1). You must use that version or later to open the file." AARRGGHH! So how do I access the file?

    Sounds like you opened and saved it in CC, so now you need to go back to CC and either complete the project there, or export to IDML to take it back into CS6.

  • A "designer" file being worked on a machine, is checked-in regularly, if at any point of time the latest version of that file is taken on the same machine, all the data gets deleted

    A “designer” file being worked on a machine, is checked-in regularly, if at any point of time the latest version of that file is taken on the same machine, all the data gets deleted

    Hi,
    Could you provide us more information to help you?
    If you have resolved the issue, it would be better if you can post the solution here, which will help others.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Issue while installing TimesTen on the same machine as the Oracle DB.

    Hi,
    I am new to the TimesTen(TT) and facing the issue of installing TimesTen on the same machine as the Oracle DB(this is our project requirement ). I am trying to install on Solaris 32bit machine with 64GB RAM. When i installed only TT there is no issue. But I am not able to installed if I installed Oracle DB and after that I installed TimesTen on same machine.
    Further if I tried to installed the TT with less size i.e.128MB along with oracle DB on same machine it installed successfully . But when i tried TimesTen with 16GB size it doesn't installed successfully along with oracle DB. Also, I tried to installed only TimesTen with size 16GB it installed without any error.
    Could you please let me know what could be the possible reason for the above behavior.
    Also i read in some threads in the same forum mentioning that "it is not recommend to installing TimesTen on the same machine as the Oracle DB as they can contend for resources (memory and CPU). Could you please elobrate more on this what kind of issues can possibly occur in this kind of scenario.
    Please let me know in case more information is required.
    Thanks in advance !!!
    Regards,
    Sanjay

    Can you please explain what you mean by 'install' in this context? Memory size is not an installation time option with TimesTen. It sounds to me like you mean 'am not able to configure a TimesTen database to use xxx MB/GB of memory' rather than 'unable to install TimesTen'?
    With a 32-bit operating system the largest TimesTen database you will be able to create is 2 GB. If you need a larger TimesTen database then you need to run 64-bit TimesTen on a 64-bit OS.
    It general it really isn't a good idea to run TimesTen on the same machine as the Oracle database. Perhaps you can share what your overall objectives are? WHat are you looking to achieve by using TimesTen? If we understand that we can give better advice.
    Chris

  • Safari opens links in new tabs, or in pre-existing tabs without giving me the option of opening the link in the same tab.

    Safari opens links in new tabs, or in pre-existing tabs without giving me the option of opening the link in the same tab.
    This has never happened before. Normally I would right-click and select open in new tab. How do I fix it? It's really frustrating.

    Safari > Preferences > Tabs
    "Open pages in tabs instead of windows:"
    Click the box for drop down.
    You have three choices, Never, Automatically and Always.
    Pick  your choice.

  • Hi I have just tried to convert a pdf through Adobe Export PDF, it appears to process it, but when I open the word file it just has the lines on it, and no words.

    hi I have just tried to convert a pdf through Adobe Export PDF, it appears to process it, but when I open the word file it just has the lines on it, and no words.

    Hi nickel13,
    What is the problem you are facing?
    Is this happening with a single PDF file?
    Regards,
    Florence

  • �Unable to create the virtual machine. The error was -4�

    I have a VS2003 C# application, which call JACE (a JNI wrapper) through C++ mixed mode to use JAVA object�s functions.
    Because the natural of our JAVA program it must be able to reach maximum heap size of 512MB, we set it during the startup of JVM by using �-Xmx512M� parameter.
    It worked well with a small PC (Dell Optiplex GX750 and Shuttle Xpc ) with only 512MB physical memory. We have about 50 machines running the application in the production.
    Recently, one of our customers installs the application to a larger PC ( Shuttle Xpc with different model), which has 1 GB of physical memory. The application started throw exception from JVM. The error message is �Unable to create the virtual machine. The error was -4�. I checked with JNI return code and found that -4 mean �not enough memory�.
    I did some experiment by running the application with 2GB PC, 1 GB PC, 1GB laptop, 512MB PC. I don�t found relationship between how much �maximum heap size� can be assigned and how much �physical memory� is available (reading from task manager). The 2GB machine can take only 128MB of �maximum heap size� However, 1GB machine can take up to 300MB of �maximum heap size�.
    I also use program like ImageJ (http://rsb.info.nih.gov/ij/) to test maximum heap size for it. I found that ImageJ can take 512MB maximum heap size without problem. It can even take 1024MB of maximum heap size.
    I have created a small program to duplicate this problem. Although it use exact the same code to start JVM up, it can go up to 650MB heap size for both 2GB and 1GB PC.
    This is puzzling. Does anyone know what are factors determine how much �maximum heap size� can be set for JVM from JNI?
    Software used
    Windows XP SP2
    Visual studio.net 2003 SP1 (the problem also occurred without SP1)
    .NET Framework 1.1 SP1
    JACE 1.1rc1_05
    JRE 1.5.07 (also tested with JRE 1.5.09 and 1.6.0 beta)

    Do you resolve the problem? If so what was the fix?
    I have been getting the Java Virtual Machine Launcher error message “Could not create the virtual machine” when attempting to run an Oracle application that uses JNLP via a browser. Even clicking on componets such as javaw.exe produces the error message. In conjunction with receiving the error message, the application that I am working with will not launch.
    I had JRE 5u10 and J2RE 1.4.2u13 installed and thought that installing JDK 5u17 may resolve the issue. I removed JRE 5u10 and J2RE 1.4.2u13 and installed JDK 5u17 (and the included JRE 5u17.) The error message was still there.
    I have unistalled (via Add/Remove programs) and reinstalled (via both Win off-line and on-line) JDK 5u17 and JRE 5u17 many times.
    During the uninstalls I have received a Java Web Start 1.5.0_17 bad installation – error invoking JVM error message.
    I have restarted the machine also.
    There are some remains of J2RE 1.4.2u13 still on the machine –even after the 1.4.2u13 uninstall. The Java\j2re1.4.2_13\lib folder remains.
    I am running Win XP SP2 and IE6 SP2.
    Note: I cannot use Java 6 since the application that I am working with is Java 5 based.

  • Setup the UWL to open the tasks in the right application defined in SWFVISU

    Hello!
    I'm trying to set up the UWL to open the tasks defined in transaction SWFVISO, and I'm kind of stuck, so I hope you can help me.
    When I open an item, I get the the following error:
    Business Server Page (BSP) Error
    What happened?
    Call of BSP page terminated due to error.
    Note
    Following error text processed in system:
    BSP exception: Access to URL /scripts/wgate/webgui/! is forbidden.
    Error Type:
    Your SAP Business Server Pages Team
    Whats really bothering me, is that the application I want to execute the Work Item at, is Web Dynpro for Java?
    When the UWL connector is defined, you define ITS and/or WAS to launch back-end task handlers. The decision of which is selected, is defined in SWFVISU, where you select Web Dynpro JAVA - in my case. (please do correct me if i'm wrong)
    Then I dont understand why it tries to use ITS?
    Regards
    Lasse

    Part of the issue was that the XML was not generated automatically - the solution for this was due to a change in SP18.
    See this post for the solution: SWFVISU task not appearing in any of the UWL Config files
    Edited by: Lasse Finderup on Oct 20, 2009 2:09 PM

  • When the browser is open the mouse does random things in all open programs, I can close FF and it works fine is there a mouse bug?

    Since the last upgrade, when the browser is open the mouse randomly clicks on things changes windows by itself. In addition highlighting things to cut and past is almost impossible... this transfers over to all open programs word, movie maker, audacity, etc... and as soon as the browser is close the problems go away... I am having this on two computers the first is a 32 Bit Vista system with a corded mouse the second is a dual boot 64 bit Win 7 and Linux Mint laptop using a Logitech cordless mouse and built in mouse pad both mouse and pad does this... in both operating systems.
    I thought it was a problem with the mice or interference with the wireless receiver or from an Xbox in the same room interfering with the systems, however updated drivers were downloaded and installed on both computers for all three operating systems.

    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?

  • How do I resolve the issue Cannot open the file ".indd". Adobe InDesign may not support the file for

    How do I resolve the issue Cannot open the file ".indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing , or the file may be open in another application?

    Shouldn't the CC version be able to open any file created in an older version on InDesign?
    Yes, it ought to.
    If the older file wasn't yours (if someone emailed it to you,or burned it on a disc, or whatever), then I am almost willing to bet you a beverage in the city of your choice that it's not a complete InDesign file. That is, maybe it was zipped and renamed, or the beginning or end of the file was chopped off during download, or something like that. The only reason I'm not actually making the bet is that there is a remote chance that I'd lose, and maybe you're in Adelaide or Khabarovsk or somewhere where the cost of airfare to me would make that bet a very expensive bet for me to to lose. So no latte for you if I'm wrong!
    The script that Jongware posted will tell you what version of InDesign made the file to begin with. Additionally, if someone did something like rename YourFile.PDF to YourFIle.INDD, it'll report that it's Not An InDesign File. Because while SpectrumPCS is kinda right and that message can be generated when attempting to open a CS5 file in CS3 or whatever, it also spits out the same message when you just try to open an Autocad file, or a Windows system file, or a PDF, or any file that InDesign actually cannot open at all.

  • I have internet connection (status upper left) but get the message "Cannot open the page". This also applies for my email

    I have checked all that is to be found on the internet and in the apple itunes to get the connectivity.
    When I check the router, the iPod touch is listed. Also when I check the iPod, in the upper corner left is stated that I have connectivity.
    However when I want to go to an internet site, I get the message "Cannot open the page" this is also shown when I start my email?

    Try:
    - Reset the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    -Power off and then back on yor router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - The troublshooting here:
    iPhone and iPod touch: Troubleshooting Wi-Fi networks and connections
    - As a tet configure you router for no security
    Do other devices successly connect to the internet via your router
    Does your iPod connect successfully to other networks?

  • I have the PE Mac 8 version and have downloaded the program.I opened the  initializer which halts 90% through checking my system profile. I have all the system requirements, what is wrong?

    I have the PE Mac 8 version and have downloaded the program.I opened the  initializer which halts 90% through checking my system profile. I have all the system requirements, what is wrong?
    Message was edited by: denconbe

    Yes I remove everything. I also have purchased the program and because I had this problem with the purchased DVD
    I downloaded the program thinking the purchased DVD was at fault but as I obtain the same result with both, there must be
    something wrong with my computer set up or it might be OSX 10.6.1 that is the problem! I will have to wait till monday.

  • When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....

    When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....
    Could some one give help and let me know where I can probably find the settings option that allows me to change and switch to previous situation where it was possible to decide time to time how to proceed either opening the file or saving it ??
    Thanks in advance
    David

    What is your operating system?
    Open a PDF from where?  If online, in what browser?

  • I am facing issues with my music on my iOS device. I have five devices connected to my apple id. And out of which a Windows Machine and iPhone is not able to sync the purchased songs on the the Windows machine and the iPhone.

    I am facing issues with my music on my iOS device. I have five devices connected to my apple id. And out of which a Windows Machine and iPhone is not able to sync the purchased songs on the the Windows machine and the iPhone. The iPhone4 shows the songs are not supported and on the Windows Machine the songs do not play completely. Can anyone advice what could have gone wrong ? Because rest of the devices are synced to MacBook and they are able to sync the content normally.  I have even subscribed to iTunes Match but the problem is still not fixed.

    Firstly...  a little Clarity...
    Devices refer to iDevices... iPod... iPhone... iPad. ..   Not Computers.
    Authoriation applies ONLY to Computers... of which there is a Limit of 5 per Apple ID.
    If the issue is with iTunes on your Windows Computer... Perhaps you need to Re-install iTunes...
    See Here... to Uninstall and Re-Install iTunes...
    http://www.apple.com/support/itunes/install/

  • When I click on a link in an email, it does not automatically open the site page? When I receive an email with a link in it, if I click on the link to open the page, nothing happens. It does not open the internet to that page.

    When I click on a link in an email, it does not automatically open the site page?
    When I receive an email with a link in it, if I click on the link to open the page, nothing happens. It does not open the internet to that page.

    I don't appear to have a toolbar either.

Maybe you are looking for