How to configure ENV and DB for multithreaded application?

Hi,
From document, I know DB_THREAD must be checked for both ENV and DB, but , I don't know which one is best choice for multithreaded application while facing DB_INIT_LOCK and DB_INIT_CDB. In my application, there maybe multi readers and writers at the same time, should I use DB_INIT_LOCK instead of DB_INIT_CDB? what other flags should I use?
DB_INIT_CDB provides multiple reader/single writer access while DB_INIT_LOCK should be used when multiple processes or threads are going to be reading and writing a Berkeley DB database.
Thanks for your seggestions and answers.

Thanks for the explanation,
The Berkeley DB Concurrent Data Store product
allows for multiple reader/single writer access
to a database. This means that at any point in time,
there may be either multiple readers accessing a
database or a single writer updating the database.
Berkeley DB Concurrent Data Store is intended for
applications that need support for concurrent updates
to a database that is largely used for reading.
If you are looking to support multiple readers and
multiple writers then take a look at the Transactional
Data Store product
(http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp.html)
In this case the Environment is typically opened with:
DB_INIT_MPOOL, DB_INIT_LOCK, DB_INIT_LOG, and DB_INIT_TXN.
Let me know if I missed any of your question.
Thanks,
Sandra

Similar Messages

  • How to configure oracle thin drivers for SUN APPLICATION SERVER

    hi all,
    I am working with EJB with oracle as back-end. I wants to know how to configure oracle thin drivers for the SUN APPLICATION SERVER. Please explain me breifly.
    Advanced thanks to all the replies.
    with regards,
    /kumaraswamy.n

    Kumaraswamy,
    Did you try searching the Internet? Here are the results of my Internet search:
    http://tinyurl.com/zo4gk
    And one of the first hits in the list was this:
    Deploying to a Sun Java System Application Server
    Good Luck,
    Avi.

  • How to configure Queue and QueueConnectionFactory for a MDB

    Hi *,
    I want to send some messages from a session bean to a message driven bean. Therefore I'll use the default Queue (sapDemoQueue) and QueueConnectionFactory.
    In the ServiceLocator of my SessionBean I do the lookup with following methods:
        public QueueConnectionFactory getQueueConnectionFactory() throws NamingException {
            if (queueConnectionFactory == null) {
                Object obj = ctx.lookup("jmsfactory/default/QueueConnectionFactory");
                queueConnectionFactory = (QueueConnectionFactory) obj;
            return queueConnectionFactory;
        public Queue getQueue() throws NamingException {
            if (queue == null) {
                Object obj = ctx.lookup("jmsqueues/default/sapDemoQueue");
                queue = (Queue) obj;
            return queue;
    My Message Driven Bean is configure as followed:
    ejb-jar.xml:
    <message-driven>
      <ejb-name>ExportBean</ejb-name>
      <ejb-class>de.test.ejb.abschluss.ExportBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <message-driven-destination>
        <destination-type>javax.jms.Queue</destination-type>
      </message-driven-destination>
    </message-driven>
    ejb-j2ee-engine.xml:
    <enterprise-bean>
      <ejb-name>ExportBean</ejb-name>
      <message-props>
        <destination-name>jmsqueues/default/sapDemoQueue</destination-name>
        <connection-factory-name>jmsfactory/default/QueueConnectionFactory</connection-factory-name>
      </message-props>
    </enterprise-bean>
    I also create a jms-factories.xml and a jms-destination.xml.
    EAR-Project/META-INF/jms-factories.xml:
    <jms-factories>
      <connection-factory>
        <factory-name>jmsfactory/default/QueueConnectionFactory</factory-name>
        <context-factory-type>
          <link-factory-name>jmsfactory/default/QueueConnectionFactory</link-factory-name>
          <initial-context-factory>com.sap.engine.services.jndi.InitialContextFactoryImpl</initial-context-factory>
          <provider-url>localhost</provider-url>
          <security-principal>Administrator</security-principal>
        </context-factory-type>
        <client-id></client-id>
      </connection-factory>
    </jms-factories>
    EAR-Project/META-INF/jms-destination.xml:
    <jms-destinations>
      <destination>
        <connection-factory>jmsfactory/default/QueueConnectionFactory</connection-factory>
        <destination-name>jmsqueues/default/sapDemoQueue</destination-name>
      </destination>
    </jms-destinations>
    How to configure correctly?
    Does anybody an example how to configure?
    Where may I download the example of the SAP documentation at http://help.sap.com/saphelp_nw04/helpdata/en/3d/41bee546e94ad48537f2cf06a29818/frameset.htm
    Thank a lot,
    Juergen

    Hello Vesselin
    My deployment descriptors:
    ejb-jar.xml
              <session>
                   <ejb-name>MonatsabschlussBean</ejb-name>
                   <home>de.filiadata.leistungserfassung.ejb.abschluss.MonatsabschlussHome</home>
                   <remote>de.filiadata.leistungserfassung.ejb.abschluss.Monatsabschluss</remote>
                   <local-home>de.filiadata.leistungserfassung.ejb.abschluss.MonatsabschlussLocalHome</local-home>
                   <local>de.filiadata.leistungserfassung.ejb.abschluss.MonatsabschlussLocal</local>
                   <ejb-class>de.filiadata.leistungserfassung.ejb.abschluss.MonatsabschlussBean</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
                   <resource-ref>
                        <res-ref-name>FdlbQueueConnectionFactory</res-ref-name>
                        <res-type>javax.jms.QueueConnectionFactory</res-type>
                        <res-auth>Container</res-auth>
                   </resource-ref>
                   <resource-env-ref>
                        <resource-env-ref-name>FdlbQueue</resource-env-ref-name>
                        <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
                   </resource-env-ref>
              </session>
              <message-driven>
                   <ejb-name>ExportBean</ejb-name>
                   <ejb-class>de.filiadata.leistungserfassung.ejb.abschluss.ExportBean</ejb-class>
                   <transaction-type>Container</transaction-type>
                   <message-driven-destination>
                        <destination-type>javax.jms.Queue</destination-type>
                   </message-driven-destination>
                   <resource-ref>
                        <res-ref-name>FdlbQueueConnectionFactory</res-ref-name>
                        <res-type>javax.jms.QueueConnectionFactory</res-type>
                        <res-auth>Container</res-auth>
                   </resource-ref>
                   <resource-env-ref>
                        <resource-env-ref-name>FdlbQueue</resource-env-ref-name>
                        <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
                   </resource-env-ref>
              </message-driven>
    ejb-j2ee-engine.xml
              <enterprise-bean>
                   <ejb-name>MonatsabschlussBean</ejb-name>
                   <session-props/>
              </enterprise-bean>
              <enterprise-bean>
                   <ejb-name>ExportBean</ejb-name>
                   <message-props>
                        <destination-name>FdlbQueue</destination-name>
                        <connection-factory-name>FdlbQueueConnectionFactory</connection-factory-name>
                   </message-props>
              </enterprise-bean>
    jms-factories.xml
    <jms-factories>
      <connection-factory>
        <factory-name>FdlbQueueConnectionFactory</factory-name>
        <context-factory-type>
          <link-factory-name>jmsfactory/default/XAQueueConnectionFactory</link-factory-name>
          <initial-context-factory>com.sap.engine.services.jndi.InitialContextFactoryImpl</initial-context-factory>
          <provider-url>localhost</provider-url>
          <security-principal>Administrator</security-principal>
          <security-credentials></security-credentials>
        </context-factory-type>
      </connection-factory>
    </jms-factories>
    jms-destinations.xml
    <jms-destinations>
      <destination>
        <connection-factory>FdlbQueueConnectionFactory</connection-factory>
        <destination-name>FdlbQueue</destination-name>
      </destination>
    </jms-destinations>
    And I'll put mit ServiceLocator:
        public QueueConnectionFactory getQueueConnectionFactory() throws NamingException {
            if (queueConnectionFactory == null) {
                Object obj = ctx.lookup("java:comp/env/FdlbQueueConnectionFactory");
                queueConnectionFactory = (QueueConnectionFactory) obj;
            return queueConnectionFactory;
        public Queue getQueue() throws NamingException {
            if (queue == null) {
                Object obj = ctx.lookup("java:comp/env/FdlbQueue");
                queue = (Queue) obj;
            return queue;
    Kind Regards,
    Juergen

  • How to configure XI and BI for proxy connection?

    Hi BI guruz!
    I am trying to set up a proxy connection between SAP BI (Vr7.0 SPS 09) and SAP XI (3.0 SPS 19). for this i am planning to follow the How to document (How to Integrate XI and BI in SAP NetWeaver 2004s.pdf) as given by SAP.
    I am new to the aspect of proxy connections... hence i am stuck at the very first step.
    In the pre-requisite section of the doc says
    1. The BW is integrated to the XI landscape
    2. Create a software component in the Software Landscape Directory.
    Can any one please tell me the steps for doing this, the tcodes and all , and how to check for the connections?
    Looking forward to hearing from you, as I read a lot of matter from SDN forums and help.sap.com sites, but cudnt figure out what all i have to for this...
    Thanks,
    Sush

    Hi Sush,
    there is a how-to guide on this topic, did you check it out?
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce
    Hope it is helpful for you!
    Regards,
    Sally

  • How to configure a session timeout for DynPro applications?

    Hello,
    1. Where can I configure the session timeout of the DynPro applications?
    2. Can I configure a session timeout per application and how do I do that?

    Hello Heidi,
    I am not familiar with this property:
    1. Where can I configure it?
    2. Does it apply to every application at the portal?
    3. What if I would like to configure just one application?
    By the way, I have noticed that the DynPro application has an expirationTime property. The documentation says this:
    Specifies the lifetime in seconds of a Web application on the server before the Web application is terminated by the server. The value of the DefaultExpirationTime parameter of the system configuration is used as the default value.
    My question is if someone tried to use this property?
    Message was edited by: Roy Cohen

  • How to configure modem and connect internet and play mp3

    Hello friends
    I am using sun solaris 8 intel edition .
    I am using windowsXP,RedHat Linux and Sun Solaris 8 Intel Editon. I am using Internet on windows and linux platform but i cannot find any device configure tool in solaris 8 , So Please tell me how to configure modem and commands for connection internet and It is possible to play mp3 songs on solaris
    Thaking in Advance
    Piyush Patel
    PI Solution

    Look at the manual for pppd. Also take a look at OSS for sound card support (http://www.opensound.com) and xmms for your MP3 audio (http://www.xmms.org)

  • Load username and password for external application?

    How to load username and password for external application?
    For each user, we should take its Portal username and password for one specific external application. How to do that ?
    Regards.

    ABSOLUTLY YES !!!!
    We already know the external application login information for each user and we want to by pass this user task. (Specially because the user itself doesn't know its username/password for the external appli). In fact we are trying to integrate IStore product to Portal by using this mechanism.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kamalendu Biswas ([email protected]):
    If you define an external application then SSO users can populate user information by themselves.
    Are you syaing that you want to populate user information automatically (bulk lodad)?<HR></BLOCKQUOTE>
    null

  • How to configure Automatic Account Clearing for A/R

    Hi,
    Kindly advice me how to configure  Automatic Account Clearing for A/R
    The client requirement is
    In A/R the customer accounts are not automatically clearing when a payment is posted for that account. We are still seeing all open items and all paid or cleared items when we go to FBL5N and select open items for viewing. Please make account clearing automatic for customer payments.
    Thanks in advance
    Sunitha

    Hi,
    Use T code OB74.
    Maintain for your Chart Of Account, acct type "D", From and to customer accounts and then add the critera you want. Pls note you cannot define more than 5 criteria.
    Then schedule the clearing program job F.13 in the background.
    Cheers.

  • How to configure Oracle Enterprise Manager for ASM RAC Database ?

    Dears,,
    We have two databases (Primary & Standby), each database has two instances
    Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
    How to configure Oracle Enterprise Manager for this environment ?
    I need documentation for this please.
    Many thanks & Regards,,

    Assuming an agent is running on the servers you want to monitor,
    navigate to the Agent home page (Via setup --> Agent)
    When in the agent home page select 'Add Database'and press [Go]
    Assuming yopur database now gets recognized, select the Configure icon and enter the password for dbsnmp.
    When done, press [Ok] to return to the agent home page.
    Regards
    Rob
    http://oemgc.wordpress.com

  • How to configure listener and tnsnames.ora on 10g version

    how to configure listener and tnsnames.ora on 10g version

    If you are on linux platform, on command prompt execute netmgr and configure listener fromt there. Or go to $oracle_home/network/admin/listner.ora write the following
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    For tnsnames.ora write the following
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )

  • How to find classtype and class for a material.

    Hi,
    How to find classtype and class for a material.
    which table contains this data.
    Thanks
    Kiran

    Hi Kiran,
    Check below sample code. Use this BAPI which will give all info about the class for the material.
      DATA:      l_objectkey_imp    TYPE bapi1003_key-object
                                         VALUE IS INITIAL.
      CONSTANTS: lc_objecttable_imp TYPE bapi1003_key-objecttable
                                         VALUE 'MARA',
                 lc_classtype_imp   TYPE bapi1003_key-classtype
                                         VALUE '001',
                 lc_freight_class   TYPE bapi1003_alloc_list-classnum
                                         VALUE 'FREIGHT_CLASS',
                 lc_e               TYPE bapiret2-type VALUE 'E',
                 lc_p(1)            TYPE c             VALUE 'P',
                 lc_m(1)            TYPE c             VALUE 'M'.
      SORT i_deliverydata BY vbeln posnr matnr.
      CLEAR wa_deliverydata.
      LOOP AT i_deliverydata INTO wa_deliverydata.
        REFRESH: i_alloclist[],
                 i_return[].
        CLEAR:   l_objectkey_imp.
        l_objectkey_imp = wa_deliverydata-matnr.
    *Get classes and characteristics
        CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
          EXPORTING
            objectkey_imp         = l_objectkey_imp
            objecttable_imp       = lc_objecttable_imp
            classtype_imp         = lc_classtype_imp
    *   READ_VALUATIONS       =
            keydate               = sy-datum
            language              = sy-langu
          TABLES
            alloclist             = i_alloclist
    *   ALLOCVALUESCHAR       =
    *   ALLOCVALUESCURR       =
    *   ALLOCVALUESNUM        =
            return                = i_return
    Thanks,
    Vinod.

  • How to configure Workflow Notification Mailer for oracle alert in R12

    Hi all....,
    How to configure Workflow Notfication mailer for oracle Alert in R12. Please provide the complete steps.. Its urgent.. Plz help me..
    Regards ,
    Madhan

    Duplicate thread (please post only once)
    plz help me...!!!! Workflow Notification Mailer
    plz help me...!!!! Workflow Notification Mailer

  • How to remove bullets and spacing for url links in the Related Links iview?

    I tried to look for a property that I can edit the look-n-feel of the url links in the Related Link iView using "Theme Editor".
    All I need is to remove the bullets and increase some vertical spacing between the links.
    Currently, it looks like this:
    URL iView A
    URL Iview B
    I go through the whole section of Related Links properties, none of them seems to do what I want.
    Here are the list of properties in Related Link section (of Navigation Panel):
    Link Color
    Text Decoration of Link
    Hover Color
    Text Decoration of Hovered Link
    Initially, I thought "Text Decoration of Link" should be the right property I should look at. But there are a drop-down with 5 options: None, Underline, Blinking, Overline and Line-Through, which really can't achieve what I want.
    Thanks for advice.
    Kent
    Post with Diagram Illustration:
    <a href="http://sapnetweaverforum.blogspot.com/2006/11/how-to-remove-bullets-and-spacing-for.html">How to remove bullets and spacing for url links in the Related Links iview?</a>
    Message was edited by: Kent C.

    Hi, Kai.
    I checked the Related iView properties (URL Template), I don't see what layoutset it is really using. I am not sure, is that a layout set apply to the Related Link Iview?
    For the regular KM iView, I will see what Layout Set I want to apply, then I can go and change the properties (of layout coontroller, collection renderer & resource renderer)you mentioned. But for this Related Link iView, I really don't know. I guess it may be in the code itself.
    If there is a layout set for Related Link iView (or the place to apply layout set to it), can you point to me which one is that? (I did a search through the layout set names, I only find the AppQuicklinkExplorer (I used this for Dynamic Nav. Link iView before), if I can aply this layout set to Related Link iView, my problem will be solved.)
    Thanks for help.
    Kent

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • TS1702 when i try to update an application it tells me that my account is not valid for use in the UK and have to switch to the australian store to update?how do i switch stores/countries for the applications?? Thanks.

    when i try to update an application it tells me that my account is not valid for use in the UK and have to switch to the australian store to update?how do i switch stores/countries for the applications?? Thanks.

    See  >  Change your iTunes Store country
    Here  >  http://support.apple.com/kb/HT1311

Maybe you are looking for

  • Macbook Pro, Snow Leopard , can't drag and drop?

    I have a 13" Macbook Pro and I am unable to drag and drop with my trackpad but I can with a wired mouse.  I have reinstalled Snow Leopard and checked every conceivable setting and checked the trackpad.  The trackpad will do everything else but 'drag

  • MIRO for multiple PO from differenct company codes

    Hi, One of the user would like to do MIRO (Invoicing) of multipe PO's together which belong to different company code. When I try to do it, it gives a error sayign cross company code transaction and also the functional company code curreny is differe

  • Cannot Find Symbol

    Ok, I'm trying to make a program that when "java-ed" it opens another randomly selected file. When i try to javac the file, it tells me that it doesn't recognize some of the symbols. access.java:6: cannot find symbol symbol : variable hello location:

  • Using unlocked 3g on cdma/hspa network

    I purchased an unlocked refurbished iphone with the intention of using it on the koodo network in Canada. It is primarily a cdma network, but uses its parent company's hspa network. I realize that cdma isn't supported on the Iphone 3g, but thought hs

  • Please help!.. anyone! i am getting ticked off..

    hello i have a 30 gig i-pod video, i was in the process of updating my i-pod software and then getting ready to update my library. well i have a problem, my i-pod video will not show anything on the screen, i tried to reset it using the center button