Configuring the DbEnv for multi-process single-writer scenario

I have (1) a multi-process server program (Apache/PHP) using the XML container read-only and (2) a couple of scripts (Perl, PHP, whatever), one of which may be performing update work on the data at any given moment. There is, however, no concurrent write access.
Write access, if I've understood correctly, commands the use of transactions in a multi-process scenario. Specifically, I'd use:
* DB_INIT_MPOOL, DB_INIT_LOCK, DB_INIT_LOG and DB_INIT_TXN when creating the environment, so that all subsystems that will eventually be needed are in place;
* DB_INIT_MPOOL, DB_INIT_LOCK, DB_INIT_LOG and DB_INIT_TXN for writing;
* DB_INIT_MPOOL for reading.
Please correct me if these assumptions are somehow flawed or simply wrong.
Do I need more flags?
Now, in the Berkeley DB Reference Guide, I read about Berkeley DB Concurrent Data Store Applications and the DB_INIT_CDB flag. I wonder if (a) this information also pertains to BDB XML and (b) this fits my scenario - only one write process at any given time.
If I can use DB_INIT_CDB, what will I gain with respect to the scenario laid out above, or any other possible scenario?
Michael Ludwig

Hi John,
thanks for pointing out that the flags used to open the environment have to be consistent among all applications.
As for CDB:
CDB puts a single big lock around the database, and
won't let any readers get access to anything while a
writer is operating. Generally it is advisable to use
transactions in preference to CDB, which will allow
concurrent reads and writes. You should also consider
using MVCC, to increase concurrency more.Thanks for this info on MVCC. I remember reading an interview with the Interbase (then Groton Database) developer Jim Starkey, who seems to have invented MVCC, in which he told how, one morning in the shower, it appeared to him that multi-version concurrency control was the solution to almost all problems. Well, database problems, maybe.
I read about MVCC in your Transaction Guide.
http://www.oracle.com/technology/documentation/berkeley-db/xml/gsg_xml_txn/cxx/isolation.html#snapshot_isolation
"What [MVCC] means is that every time
a writer would take a read lock on a page,
instead a copy of the page is made and
the writer operates on that page copy.
This frees other writers from blocking
due to a read lock held on the page."
I think an application featuring high concurrency of read and write operation will benefit from MVCC, provided there is enough memory to accomomate all the page copies. And I will eventually need this.
At the moment, however, the update is done using the typical nightly crontabbed batch job. Not much traffic expected during the update, and no updates while the site is busy. I doubt I have much to gain from MVCC in this primitive scenario. What do you think? Would I still benefit from MVCC, or would I only incur the copy overhead without benefitting from it for lack of read-write concurrency?
Michael

Similar Messages

  • Is the price for multi user 89.99 per year? How is it installed by each user?

    Is the price for multi user 89.99 per year? How is it installed by each user?

    Hi cclark,
    An Adobe PDF Pack subscription is tied to an Adobe ID, so it's a single-user subscription. There's nothing to install; you access the subscription by logging in via a web browser to https://cloud.acrobat.com using your Adobe ID and a password.
    I hope that answers your questions.
    Best,
    Sara

  • Where to Configure the Price for the UoM Conversion

    Hi All,
    I have a requirment from my client here that he wants to change the UoM of the material at the billin document level. The UoM can be changed but I realized once it is changed the price has gone all wrong. Where can I configure the price for the UoM conversion because I cannot find it anywhere in SD itself.
    Appreciate all of your inputs.
    Thanks a lot!

    Hi Prashant,
    I am trying to maintain the same material with different UoM but when I do so it says that the current condition is being processed at the current session. I guessed it meant that the conditiont record for that material type already exists?
    How do I rectify this problem because when I enter the new line of material with the new UoM disappears.
    Appreciate your input in this,
    Thanks a lot!
    Edited by: Yvonne Lee Sook Fun on Jun 16, 2009 4:32 AM

  • How to configure the requirements for output control ?

    Hi ,
    I have some problems in configuring the requirements for output control like following :
    My aim is to make a condition check when i create an inbound delivery ( VL31N)  or MIGO ...., as default in the requirement check for output , a message type will be created automatically if the it satisfies the condition in the KOBEV .....KOBEV( each sub routine was defined with a message type ( V6 )  ( if sy-subrc = 0) . And then a printing program will be triggered to print the SAPscripts form in the table "tnapr"  but even if i have put sy-subrc in ( KOBEV...KOBEV ) always = 0 the printing was not executed , and in this case i do not understand the reason why , If you please to help me this .
    Thanks ,

    Hi,
    it seems that the requirement you made is not the reason why it's not printed. If you set sy-subrc to 0, this code should have no effect.
    Cheers,
    Stefan.

  • SQL Server Management Studio - Configuring the environment for first time use

    Hi
    I have recently switched my local 'My Documents' folder location to a network drive that I 'make available off line' to allow on-line/off-line work and synchronisation when I am working in and out of the office.
    When I load my SQL Server Management Studio 2005 I frequently get 'Microsoft SQL Server Management Studio is configuring the environment for first time use'.
    Management Studio  them loads and I can continue without problem.
    I am guessing it is trying to make reference to some settings file. Any ideas? I wonder if I can change/move these settings elsewhere to a local drive?
    Thanks

    Hi,
    There is bug report of this issue:
    http://connect.microsoft.com/SQLServer/feedback/details/126364/configuring-enviroment-for-the-first-time-every-time-in-ms-sql-server-management-express
    "SQL Server Management Studio Express saves the settings for the user in ...\Documents and Settings\<User Profile>\Local Settings\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM
    and in ...\Documents and Settings\<user profile>\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM
    if any of these files are not available or unusable, SSMSE will generate new ones."
    Hope this helps.
    BR,
    JoukoK

  • The Prerequisites for releasing process order

    Hi all,
    What are the Prerequisites for releasing process order?
    Can we issue the material against process order, if it is on CRTD status?

    Hi,
    Prerequiste for REL of Process Order -
    Process order should have CRTD status.
    Other with IMG setting, you can have order status directly REL once it is created also. See Prod Sch Profile setting.
    You cannot do goods posting (GI and GR) unless order is REL status. Not possible with CRTD status.
    Srini

  • What could be the reason for Crawl process to take long time or get in to a hung state.

    Hi All,
    What could be the reason for Crawl process to take long time or get in to a hung state? Is it something also related to the DB Server resources crunch? Does this lead to Index file corruption?
    What should be the process to be followed when index file is corrupted? How do we come to know about that?
    Thanks in Advance.

    "The crawl time depends on what you are crawling -- the number of items, the size of the items, the location of the items. If you have a lot of content that needs to be crawled, it will take much time".
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f4cad578-f3bc-4822-b660-47ad27ce094a/sharepoint-2007-crawl-taking-long-time-to-complete?forum=sharepointgeneralprevious
    "The only clean and recommended way to recover from an index corruption is to completely rebuild the index on all the servers in the farm."
    http://blogs.technet.com/b/victorbutuza/archive/2008/11/11/event-id-4138-an-index-corruption-was-detected-in-component-shadowmerge-in-catalog-portal-content.aspx
    Whenever search index file got corrupted it will got the details to Event logs
    http://technet.microsoft.com/en-us/library/ff468695%28v=office.14%29.aspx
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Using ARIS process models as the foundation for Business Process Monitoring

    Hello,
    Do anyone know if you can use IDS Scheer ARIS process models and the integration between IDS Scheer ARIS and SAP Solution Manager as the starting point for end-to-end Business Process Monitoring (BPM) so that you get the process description/model automatically in Solution Manager BPM and just need to configure the monitoring (more or less that you monitor against the modelled process in ARIS)?
    Is there an API for SAP Solution Manager BPM so that non-SAP solutions/systems can be part of the end-to-end process monitoring?
    If not, how do you usually integrate non-SAP solutions that are part of an end-to-end process that you want to monitor into SAP Solution Manager BPM, or do you not use Solution Manager BPM for this?
    What is the roadmap for SAP around SAP Solution Manager BPM when it comes to non-SAP systems/applications/solutions and the new SAP NetWeaver BPM functionality?
    Regards,
    Markus Johansson

    Hello Markus,
    I just paste my answer form the other forum entry Re: Business process management strategy in SAP?
    in a nutshell BPM Netweaver is focussing on so called edge-processes (usually
    SOA-based and often workflow related). These edge-processes a thought to enhance exisitng core business processes and should provide the fast competitive edge versus competitors. Examples would be also xApps. For this Netweaver provides process modelling tools, where you can get exectuable code through the integration between CE and PI. The monitoring part for these processes is mainly targeting business end-users and business manager.
    Business Process Monitoring with Solution Manager focusses on core business processes which are realized with the "conventional", "old" SAP Architecture, e.g. Order-to-Cash or Procure-to-Pay. You get a combination of technical monitors (average response times of transactions, background job runtimes, monitors for IDOC or qRFC processing) and application related monitors (you get more than 200 pre-configured application monitors out-of-the-box like number of overdue customer orders or outbound deliveries or number of deliveries with goods issue posted but no invoice). The target group here is the support organization of the customer, from Basis-Support over application support on IT side to process owner on business department side.
    Overview presentations can be found under
    https://service.sap.com/bpm --> Media Library --> Customer Information -->
    "Business Process Monitoring - Part 1 & 2".
    Or look under https://www.sdn.sap.com/irj/sdn/nw-processmonitoring
    In the end BPM Netweaver and BPMon SolMan are complementary for different purposes and different target groups.
    Best Regards
    Volker

  • Logging takes in the field for multi-camera set-up with OL

    Is there any way to designate separate cameras or link shots (to be labeled as CamA or CamB) to advance takes and make notes simultaneously?
    OL doesn't really seem set up to use with documentary style shooting with multiple cameras, but maybe there is some way around this?
    I just want to be able to add takes in OL to multiple cameras without a lot of typing between each take...and add notes that are applicable to multiple cameras within one shot and one take.
    Any ideas?

    OnLocation CS5 has an entirely new feature set known as the File-Based Workflow that may be just what you are looking for. The basic steps are as follows:
    PRE-PRODUCTION (IDEALLY)
    1) Create a placeholder for one camera angle of a given scene/shot. (Consider using Adobe Story to prepare your script. Then you can hand the script off to OL and have it automatically broken down into scene-level placeholders. You will then still need to break those placeholders down to the shot level)
    2) Use the Camera Name property to designate the camera for that shot. If you use the "auto-matching" process, which you will likely want to do if you're entering notes per take, then this data point will be used to automatically mate a set of clips from, say Camera A to the correct set of placeholders.
    3) Fill in any other metadata that is common to other camera angles.
    4) Duplicate the placeholder for other camera angles & shots of the scene. To do this, you can use either the Duplicate Placeholder command or, to create multiple duplcates, the Break Out Scene command, both of which are available in the context menu when you right-click a row in the shot list. Note that both commands work with multiple rows selected.
    5) Customize each duplicate as appropriate.
    6) Repeat for your other shots.
    DURING THE SHOOT
    1) [Strongly recommended] For multi-cam shoots, synchronize the date/time on all the cameras. Ideally, synch them all to the date/time on the computer running OnLocation. This greatly simplifies the auto-matching process by saving you the hassle of repeatedly changing the camera date/time in OnLocation.
    2) Select placeholder(s) or clip(s) for the next shot.
    3) At any time between starting and stopping recording of the take, click the Timestamp button (upper left corner of the Project/Shot List panel). This step applies a timestamp to the placeholder, which makes it possible for the auto-matching mechanism to determine which clip belongs with which placeholder.
    4) Optional: Add temporal comment markers to timestamped placeholders, which will be aligned to the clip when you auto-match. (Note that PPRO does not recognize comment markers added in OnLocation.)
    5) Repeat steps 1-3 for subsequent shots
    AFTER TRANFERRING CLIPS TO THE COMPUTER
    1) In the Media Browser panel, navigate to the folder where you copied the content.
    2) Select the clips.
    3) Click the Auto-Match button at the top of the panel. This opens the Auto-Match dialog.
    4) if this is a multi-camera shoot, check the appropriate box and select the name of the camera that this content came from. The list for the Camera Name setting is populated from what you entered in the Camera Name field for all timestamped placeholders. [Be alert for unintended variants. For example, if you entered "Camera A" for some shots and "Cam A" for others, you'll see both versions in the list. Before proceeding, you should standardize the entries.]
    5) Set the Camera Date/Time. If you synched the cameras' date & time to the computer's, then this step is not necessary (unless you previously set a Camera Date/Time offset in OL, in which case you will need to reset the Date/Time to match the computer's.)
    6) Click OK to proceed with auto-matching. OnLocation will proceed to find the placeholder whose timestamp fits within the Start and Stop Recording times of one of the clips and, if relevant, whose Camera Name matches your selection. All metadata from that placeholder will be merged into the clip.
    [Please note that all of the foregoing is from memory--I don't have OL CS5 installed on this home computer--so I may have gotten the names of some of the controls wrong. I'm pretty confident that the basic workflow is sound, however.]
    Here's the help page for this feature. I'm afraid it's does not really cover the particulars for a multi-camera workflow. http://help.adobe.com/en_US/onlocation/cs/using/WS89e4fde9608114f41e5eb2de124b454ea2b-8000 .html
    As for entering the same string in the Comment field (or any other metadata property) for multiple placeholders or clips simultaneously, simply select whichever rows in the Shot List that you want to edit, then in the Metadata panel edit whichever properties you choose to. Your changes will be applied to all selected rows (assuming they're editable--i.e., not read-only or offline, both of which apply only to clips, not to placeholders)

  • Configure The client for ADC

    I like to Configure Acrobat 8 for the Document Center.
    In my Acrobat 8 pro swedish version I cannot find the the drop-down-text
    "Choose Advanced > Security > Use Adobe Online Services. " taken into account the "language diffrences".
    So I download a trial Acrobat 9 pro english version.
    And again I cannot do the "Choose Advanced > Security > Use Adobe Online Services. " exercise, this time no langauage consideration.
    So Do I need Acrobat pro version 8 english.
    Or even betyter do you have a metaframe client I can use for the small test. I get tired of thinking about remove the clent and download another.
    regards Anders

    I post the solution my self.
    I have asked the excellent provider Web Case Support [mailto:[email protected]] to write the anwer here. But as they don't have yet:
    This solution works fine in ver 8 and 9 that are the only one I have tested.
    1. Launch Acrobat and go to Advanced> Security Settings.
    2. Click Adobe LiveCycle Rights Management Servers.
    3. Click the New option, up top.
    4. Enter this information as it appears: Name: Create Adobe PDF Online Server Name: pdf-policy.adobe.com Port: 443
    5. Click Connect to this server and Log in with your Document Center ID and password.
    To apply polices to PDF files follow the direction below:
    1. Open the PDF in Acrobat 8.
    2. Choose Advanced > Security > Manage Security Policies.
    3. In the dialog box list of policies, select the policy that you want to apply.
    4. Click Apply To Document.
    5. In the Save As dialog box, click Save. The default filename includes the word Envelope, so the saved PDF doesnot overwrite the original.
    on behalf of Web Case Support /Anders K

  • AIP-18510:  Error adding objects to configuration ... for business process.

    Hello,
    We are encountering this error few days after applying latest MLR patch.
    None of our agreements can be deployed, even those that were not changed in any way after the patch was applied.
    This is part of our ui.log:
    2009.02.02 at 08:49:10:409: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Formatted message
    2009.02.02 at 08:49:10:409: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Formatted message
    2009.02.02 at 08:49:10:409: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Rendering Page::pages/deployment/deploy_progress
    2009.02.02 at 08:49:10:421: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) In getVersionOnly()
    2009.02.02 at 08:49:10:965: Thread-24: IP - (ERROR) Error -: AIP-18510: Error adding objects to configuration CONFIG for business process cm_all_agreements
         at oracle.tip.configuration.B2BConfigurationBuilder.run(B2BConfigurationBuilder.java:452)
         at java.lang.Thread.run(Thread.java:534)
    2009.02.02 at 08:49:20:651: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Found Non Validation Errors
    2009.02.02 at 08:49:20:651: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Formatted message
    2009.02.02 at 08:49:20:651: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Formatted message
    2009.02.02 at 08:49:20:662: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Rendering Page::pages/deployment/deploy_error
    2009.02.02 at 08:49:20:673: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) In getVersionOnly()
    2009.02.02 at 08:49:27:961: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Rendering Page::pages/deployment/config_list
    2009.02.02 at 08:49:27:971: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) Executing Query::SELECT DISTINCT C.ID, C.CLASSTYPE, C.name, C.LifeCycleState, CA.aud_modified FROM TIP_Configuration_t C, TIP_Configuration_t_AUD CA WHERE C.ID = CA.ID AND C.LifeCycleState IN ('Active','Validated','Quiescing','Quiesced') AND CA.aud_modified IN ( SELECT MAX(aud_modified) FROM TIP_Configuration_t_AUD WHERE ID = C.ID GROUP BY ID) ORDER BY CA.aud_modified DESC
    2009.02.02 at 08:49:27:978: AJPRequestHandler-ApplicationServerThread-13: UI - (ERROR) In getVersionOnly()
    Please help as this renders our server useless.
    Best regards,
    Kamil

    Hi Kamil,
    I'm guessing you are talking about encountering these issues post MLR# 7 patch.
    Here are some of the things ypu could start off with:
    1. Check your LS Inventory to see if your patch was applied successfully
    2. Ensure that all the post installation steps were performed (in the readme file)
    3. You could rollback this patch and check if you are still getting the same error.
    4. After rollback, if your config works fine, rerapply the patch again and observe the effects.
    Thanks & Regards,
    Suhas.

  • How we determine publisher take the role for call processing?

    dear sir,
    I've an iptel environment with only 1 publisher and subscriber . I was told that the current device that handling all the call processing is the only subscriber but will be backup by publisher for call processing in case of subscriber down. How we determine that? which part of ccm we should look into?
    please advise.

    Charles:
    Check your CCM group (under System) to see if your cluster is configured for sub as call processing engine and pub as backup. The order matters - top of the list is the main call processing engine, primary backup next, secondary backup next.
    The routers should also contain the pub and sub in your dhcp pool option 150 statement and the pub in the ccm-manager redundant host statement.
    Hope that helps.
    Tom

  • Where can I find the documents for disassembly process?

    Dear all,
        I have a problem now. There's a finished product A. Materials B and C are its components. Now material A needs to be disassemblyed into B and C. B can be reused, but C will be scrapped.
       Where can I find the detail documents for disassembly process?
       Thank you.
    Paul

    Paul,
    From your explaination, I think you need to map your disassembly process with the help of production order scenario.
    Create order for material B. Component for that would be material A. No need to maintain material C as it is already consumed for material A.
    Let me explain me in details.
    You have cretaed order for A, you have done goods issue of B & C on the same order. You have done GR for A on the same order.
    The costing you have achieved on the order.
    Now for some reason you need to disassemble the A.
    You create order for B, issue the A to this order. Not to take inot consideration the C as it is already consumed on A.
    In SAP scrap does not carry any cost. Still you want to take into account the scarp then either do the GR with movement type 531 with any of the code.
    But before that some of the things you need to take into consideration.
    1. Material type of B has to be semifinished, to eanble the creation of order against that.
    2. Create the special order type for disassembly process.
    3. Maintian the special BOM usage if B has one primary BOM in the system or else you need to edit the component overview everytime you create the disassembly order.
    Refer the link of mine to have the clear idea.
    Re: Two BOMS for a Single material
    Hope this helps you.
    SmanS

  • Configuring the PATH for jdk1.3.1_01 in WindowsXP

    I need help in configuring the autoexec.bat file for jdk1.3.1_01 . I am running on WindowsXP. (I used to have win 98 on my old pc that crashed and had jdk1.2.1 and working just fine) Now I have a new pc and have tried the following:
    windir=C:\WINDOWS
    SET winbootdir=C:\WINDOWS
    SET COMSPEC=C:\WINDOWS\COMMAND.COM
    SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3.1_01\bin
    SET PROMPT=$p$g
    SET TEMP=C:\WINDOWS\TEMP
    SET TMP=C:\WINDOWS\TEMP
    When I type in C:\path ...it does not show the path I entered. I have no clue what I am doing and the instructions I printed out from sun just do not help me out at all. I really need to get this working so I can continue learning. If anyone can please straighten me out on this I would really appreciate it. Feel free to email me at [email protected]
    Thanks Reba

    Your PATH appears to be correct. However, to verify your PATH you should be able to type the following:
    c:\>echo %PATH%
    This will display your PATH setting on the console. In addition, you can verify that your PATH setting is correct by typing:
    c:\>java -version
    If your path is set correctly, you should see something like:
    java version "1.3.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
    Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
    If, instead, you get something like:
    "Bad command or file name"
    Then your PATH is not configured correctly.
    Hope this helps.

  • Is there way to configure the Time for attribute Description?

    Hi All,
    We have a requirement that …
    If we provide description (Tooltip) for attribute in Fact or Dimension it is displaying in couple of Seconds. Is there any way that configure to change the Time for attribute Description (Tooltip) Display Time ?
    Thanks in advance

    I should note that the time stays on the left of the event name when I re-enter the text (which I had to do all the time before I found the "show event times" button) so I feel like there's a way.

Maybe you are looking for

  • Upgrade windows 8.1 is not showing in store

    Dear Team, Greetings for the Day! We are using windows 8 pro. We wish to upgarde with windows 8.1 pro. We are following below process: 1) We have already windows update in windows 8 pro. 2) We are not getting any option upgrade 8.1 in store. Note: Pl

  • Auto Login in Apex 4.2.3

    Hi All, Am calling a apex application url from a third party application. In the url am passing user name and password and i to want to check the user is valid user or not, if the user is valid then it should skip the login page and go to the home pa

  • Problem of calling external procedures writen on C and use mysqlclient

    i have a problem at use to external library written on С++ and use mysqlclient under Oracle ORA-06521: PL/SQL: Error mapping function ORA-06522: /lib/libabrogation.so: undefined symbol: abrogation ORA-06512: at "WORK.ABROGATION", line 1 ORA-06512: at

  • Best way to call methods on similar objects without an interface

    Hi, I have two objects that i need to iterate, they both have the same method i need to call during iteration, but those two objects are from different libraries and i cannot change them to add them as implement interface...    for (Iterator it = doc

  • Webservices with Database interaction

    Hi, I am new to Web Services. I have a requirement to retrieve database records using web services. I am uisng Tomcat and JWSDP or AXIS Thanks