Register and RunRecovery

OS : Win 2008 R2 Server
language: C# api
I'm trying to run two of the same applications using the same BDB environment. My understanding is that each process may only have a single handle to the env opened. I use the below code to open an env in the app, then pass it to multiple db's. I do not understand why the second time I run the application it fails on env->open with invalid argument... if I remove the runrecovery and register flags it opens fine...
public static DatabaseEnvironment OpenEnv(string envHome, uint cacheSizeMB, bool create = false, bool printStats = true)
* Env should be created, per process, in a single thread, and the
* handle shared among any other threads within said process.
DatabaseEnvironmentConfig envConfig = new DatabaseEnvironmentConfig();
envConfig.MPoolSystemCfg = new MPoolConfig();
envConfig.MPoolSystemCfg.CacheSize = new CacheInfo(
0, cacheSizeMB * MB, 1);
envConfig.Register = true;
envConfig.RunRecovery = true;
envConfig.Create = create;
envConfig.UseMPool = true;
envConfig.UseLocking = true;
envConfig.LockSystemCfg = new LockingConfig();
envConfig.LockSystemCfg.DeadlockResolution = DeadlockPolicy.MIN_WRITE;
envConfig.LockSystemCfg.InitLockerCount = 150;
envConfig.LockSystemCfg.InitLockObjectCount = 10000;
envConfig.LockSystemCfg.InitLockCount = 150000;
envConfig.UseLogging = true;
envConfig.LogSystemCfg = new LogConfig();
envConfig.LogSystemCfg.AutoRemove = true;
envConfig.UseTxns = true;
envConfig.FreeThreaded = true;
DatabaseEnvironment env;
Directory.CreateDirectory(envHome);
try
env = DatabaseEnvironment.Open(envHome, envConfig);
catch (DatabaseException e)
Console.WriteLine(e.Message);
throw e;
env.PrintStats(printStats, false);
return env;
}

Hi there,
its my understanding that 'recovering' an environment should only be performed when no other processes are accessing the database files
Obviously in your case when you start the 2nd Application and it tries to 'recover' it does not have exsclusive access to the databases.
When you try to Open the Env it knows recovery isnt required and therefore errors out.
I think the best thing you can do is to set envConfig.RunRecovery to false once the first Application has started up so subsequent starts will not try to open in 'recovery' mode.
regards
Richard
Global Support Services

Similar Messages

  • I plugged in my brand new nano to my husbands desktop to get it registered, but had a problem mid way through when I tried to used an apple login that already existed.  Now it's not registered and the computer won't recognize my device.  How do I fix this

    I plugged in my brand new nano to my husbands desktop to get it registered, but had a problem mid way through when I tried to used an apple login that already existed.  Now it's not registered and the computer won't recognize my device.  How do I fix this?

    iPod not recognized in 'My Computer' and in iTunes for Windows
    Call U.S. iPod and Mac technical support: 1-800-APL-CARE (1-800-275-2273) to register your iPod Nano.

  • From within Photoshop Elements, when I try to open Editor, a box opens that states I must activate the software.  I registered and activated the software last year.  When I click to activate, I get a message that I am not connected to the internet.  I am

    From within Photoshop Elements, when I try to open Editor, a box opens that states I must activate the software.  I registered and activated the software last year.  When I click to activate, I get a message that I am not connected to the internet.  I am connected.  How do I get Editor to work?

    You would get the redemption code, or perhaps even the serial number, from whomever you purchased the software from, apparently Amazon, so talk to them.  This wouldn’t be the first time they’ve sold something that didn’t have all the numbers needed to license it.
    A redemption code is something that is usually on the inner disc packaging if you purchase the media in a box, and there is a barcode on the outside of the packaging that must be scanned at the checkout register to activate the hidden inner code so you can redeem it at home on that website.  This is what happens if you buy PSE from a brick-and-mortar store like Best Buy.  I don’t’ know what happens if you purchase the downloaded version as I have never done that.
    A redemption code is 24-digits of letters and numbers that you enter into a website to get a serial number, once and only once.  The serial number of only 24-digits, no letters, is what you enter into the software during the install or when you run it and it asks if you want to register or run in a trial mode—whatever the exact phrasing is.
    In any case it sounds like you don’t have either a redemption code or serial number—although perhaps something is listed on the purchase confirmation or your account online at Amazon or even in an e-mail from Amazon.

  • How do I know where my account is registered and how can I change that?

    Hi,
    Whenever I try to pay Acrobat XI, I get the message that the country of my registration is wrong. How do I know, in which country my account is registered and how can I change that?
    It seems, that my account is registered in Austria, but I work now in the Netherlands. What is there to do?
    Thanks for your help
    Message was edited by: Michael Koller

    Hi Michael ,
    You can log in to Adobe.com with your credentials and you can change your region or country from the option "Change Region" at the bottom left of the page .
    From there you can change your region and select the preferred one and make the payments.
    Hope this will work .
    Regards
    Sukrit Dhingra

  • I have a plane which is in effect till march but I also registered and payed for a teacher plan.

    Today I'm in a plan which is in effect till march but I also registered and payed for a teacher plan.
    How do I see both in my Adobe ID?
    Will I'll receive a receipt every month (I need to give it to my accountant)  since I see that I got a confirming email for a monthly sum and not the total sum. do I have to pay till march for both?
    Could you please reply via mail?
    [email protected]

    https://www.adobe.com/account.html for serial numbers or subscriptions on your Adobe page

  • Photoshop CC keeps asking for me to register and supply my license

    I am a Creative Cloud subscriber, Photoshop/Lightroom only limited edition, and have been for a year or more, running of a Windows 8.1 platform with lots of RAM, etc.  Lately - on occasion - when launching PS, a dialogue will come up with a alternate messages, including "register your product" or "this application is not registered, and cannot launch."  PS then fails to launch, but sometimes I'm taken to a screen where I can register my "30-day trial," or enter my PS serial number for a 30-day trial.  Of course neither of these options are appropriate, and I don't have the PS CC serial number anyway, and I assume that an even worse can of worms will be introduced if I fill out either of those forms.
    I chatted with tech support awhile back, and he had me delete the "obe" file somewhere in System, do some other things, and restart PS.  That worked, but now the problem has re-emerged.
    Anyone have experience with this?
    Tx, Robert

    You need to check icloud on the phones setting you will see the old email there
    Follow these step to a T
    Change apple id back to old email
    sign out in settings
    then chnage back to what u want the account to be
    WIN

  • I try to open Acrobat I get a message that I need to register the product. I click on register and after about a minute, I'm told that I don't have an internet connection. My internet connection is working fine. In fact I registered Acrobat Pro XI using m

    I try to open Acrobat I get a message that I need to register the product. I click on register and after about a minute, I'm told that I don't have an internet connection. My internet connection is working fine. In fact I registered Acrobat Pro XI using my account, but the program itself will not recognize it or allow me to use the software. What do I do?

    If you already registered, then there is no point to trying to do so again. Simply dismiss the dialog.
    Mylenium

  • TS3376 I had my iphone set up to be tracked as registered with iCloud and it had been using it for a year one day it said no devices registered and stopped working why???

    I had my iphone set up to be tracked as registered with iCloud and it had been using it for a year today it said no devices registered and stopped working even though i tracked the selected iphone 4 device an hour earlier why did it do this???

    So basically the phone I was tracking was working an hour earlier it had no signal at times when it did pick up a signal it located it easily but an hour later the message came up no devices registered when my friend returned home I Checked the device I was tracking to make sure find my iphone was on but it was off and my friend didnt turn it off so my question is why did it turn itself off???
    Confused?

  • VAT REGISTER AND REPORT

    Hi,
    What is VAT register and VAT REPORT and in which transaction I can see it.
    Regards,
    Chetan.

    Hi,
    VAT register is nothing but the sales tax register.
    The tcode for executing vat register is J1I2.
    Regards,
    Rambhupal reddy

  • Sales tax register and purchase tax register

    Dear All,
    Is there any standard report for sales tax register and purchase tax register? give me your valuable inputs appraisals are waiting.
    Thanks inadvance.
    Nauma.

    Please refer T code J1I2 for Sales Tax Register. There is no Standard Purchase Tax Register.
    Regards
    Bhavesh Mistry
    Edited by: Bhavesh Mistry on Jul 15, 2009 7:10 AM

  • Register and cenvat

    hi,
    1) what is excise register?
    2) what is the difference for RG register and PLA register?
    RG23A Part 1 and Part 2 used for RAW METERIAL . for Exp u buy a raw meterial so the Qty of u purchased will go RG23A Part 1 and value go to the Part 2. the same way when u sell also Qty will go the Part 1 and Value of the Qty will go the Part 2.
    3) value in part2 means the excise duty or material value? should be excise duty right?
    4) rg23a part II shows the amounts of excise duty on the materials, and how much you have transferred to the CENVAT accounts.
    may i know what it means by cenvat account? cenvat account like example rg23abed? what about plabed? they are cenvat account or register?
    5) what the difference for cenvat account, pla account, pla on hold, cenvat suspense and cenvat clearing?
    thanks

    Hi,
    Please try for these.
    J2I6          :Print excise registers
    J2I9          :Monthly CENVAT return
    Thanks,
    Vasu..

  • I have a DVD Acrobat Pro 9. I upgraded laptops and trying to install but the DVD is not readable. How can I get a new DVD or Download Acrobat Pro 1. The product is registered and I have the serial number. PS: Contacting Adobe on this issue is impossible..

    I have a DVD Acrobat Pro 9. I upgraded laptops and trying to install but the DVD is not readable. How can I get a new DVD or Download Acrobat Pro 1. The product is registered and I have the serial number. PS: Contacting Adobe on this issue is impossible... direct support stinks.

    Download AA 9 Pro from http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html. Make a new backup for your archive. You might also take the DVD to your library to see if it is a drive problem. You might also carefully clean the DVD with water and soap (do not use anything that would scratch the surface or you have destroyed it for sure) and see if that solves the problem. This is particularly an issue if you have finger prints or other crud on the DVD. However, it could also be a bad drive as I mentioned. Hopefully the download solves your problem in any case (I would backup the download to CD and/or backup HD).

  • Since upgrading to iOS7 some text messages are not being sent, iMessage on my Ipad and MacBook doesn't have my phone number registered and my reminder colour on my Iphone keeps changing ... among other things

    Since upgrading to iOS7 some text messages are not being sent on my iPhone 5, iMessage on my Ipads and MacBook doesn't have my phone number registered and my reminder colour on my Iphone keeps changing ... among other things. Any suggestions to fix these faults?

    Make sure People Sending you via iMessage are sending their messages on your PHONE number not on your EMAIL addresses . My sister had the same problem, thats how i managed to solve it!

  • On firefox clickable buttons are not clickable for me eg the + to open new tab ,the sign in . register and other applications buttons on this page wont click yet the 2 blue change buttons are fine

    Question
    on firefox clickable buttons are not clickable for me eg the + to open new tab ,the sign in . register and other applications buttons on this page wont click yet the 2 blue change buttons are fine

    Top of Firefox window non-responsive, toolbars non responsive -- also see [http://kb.mozillazine.org/Problematic_extensions Problematic extensions]
    *caused by Yahoo Toolbar -- https://support.mozilla.com/questions/890908
    *caused by Babylon Toolbar -- https://support.mozilla.com/questions/890670

  • My nano is registered and my songs picked and redeemed the next question how do i tranfer on the the comp to my nano help!!

    My nano is registered and my songs picked and redeemed on itunes i cant see to connect this to my nano help!!!!!!!!!!!

    If things seem to be going haywire with your phone, it seems that it MAY be a software issue.
    Now, that being said, that does not necessarily mean that it is a virus. Software issues do happen sometimes. It is probably just coincidence.
    What you need to do is restore the device using iTunes. This will fix any software issues. After you have done this, you can restore from an iCloud backup.
    iCloud does not back up the actual software, so no, the "virus" would not have gotten into the backups.
    The link below provides steps on restoring your device using iTunes as well as how to restore from an iCloud backup.
    http://support.apple.com/kb/ht1766
    Don't worry! Everything should be back to normal if you follow these steps.

Maybe you are looking for

  • Error in adding new connection in Smartview

    Hi I am trying to connect to HFM using smartview. I am trying to add a new private connection in Excel and using a admin login which was used to create the application and hence has all the rights. But i get an error of "user authentication needed" -

  • Itunes cannot open because another user is using it, please ask them to clo

    I'm on a network with my sister and little brother, but none of us will be using itunes and when I try to get in it, it says that "Itunes cannot open becuase it is currently being used by another user, please have them close out to continue" or somet

  • Is it possible to run ALV report in background if Yes how?

    is it possible to run ALV report in background if Yes how?

  • How to make an image a link?

    I'm sort of new to HTML, but this problem is beyond frustrating. I am using the design display in Dreamweaver, and it still isn't working, and I"m not even coding the HTML. Here is the problem. I have an image on the main page, and I want that image

  • Oracle 9i resource manager

    Hello experts. I would like to know if assigning a particular CPU level to the group, will affect as well the DDL operations that are performed by users in this group (in my case it's dropping partitions, creating them, rebuilding indexes, make table