Handling Locking for transaction in Middle Tier versus Database backend

Hi,
If we implement middle tier with C# as the programming language and backend as SQL Server database, if we now wanted to implement locking where we take the classic case of money withdrawal from a bank account, we could implement this as a single atomic transaction
using locks / monitor in the middle tier or we could do this in a stored procedure and handle it using a begin tran commit tran in SQL Server.
What would be the recommended way? middle tier or sql server database backend?
Thanks

> the two different servers having the same middle tier executing the same code at the same time will be handled by the backend by putting one on hold while the other is being serviced.
Yes.  A SQL Server database provides a single coherent state repository for the whole application.  And you can use the database transactions to control which business transactions run concurrently, and which do not.
David
David http://blogs.msdn.com/b/dbrowne/

Similar Messages

  • Any Material locked for transactions due to errors in Material Ledger?

    We are implementing Material Ledger for actual costing purpose. After ML implemention, will there be any situation due to errors in costing run, or otherwise, that the material is locked for any further transaction? Is such kind of threat exists under any situation?
    Sanjay

    Dear Sanjay,
    I don't think you will face any problem after succesfully completion of actual cost run.
    Situation can be totally opposite...I mean to say while costing run you might face problem of material locking.
    There could be problem if transaction in material is happening and same time cost run is going on. or if cost run is going on and the same time somebody is trying any transaction.
    It is always suggested to run cost cycle in the night or lock the user id's while cost run.
    Regards
    Rupesh Kumar Singh

  • Client Authentication via middle tier to database.

    Is it possible to pass through the Identity of the Real User
    to the database when using an Application Server that uses
    connection pooling to connect to the database.
    Note. The Application server is running EJBs that connect to the
    database using JDBC, with any driver type (eg OCI, thin).
    null

    Trevor,
    What type of OS is the app server running on? How is the user
    logging into the app? There are middleware packages that can
    map the currently logged in user to the database on a per-
    connection basis. Openlink provides a middle-tier security
    layer that dispatches a connection to the database based on a
    combination of factors (client app, client IP, username,
    servertype).
    HTH,
    Stephen
    Trevor (guest) wrote:
    : Is it possible to pass through the Identity of the Real User
    : to the database when using an Application Server that uses
    : connection pooling to connect to the database.
    : Note. The Application server is running EJBs that connect to
    the
    : database using JDBC, with any driver type (eg OCI, thin).
    null

  • Lock for transaction code.

    i have created screen executed with Transaction code,having few Controls inside screen.
    As soon as I enter action(click push button) inside the screen.(ie Transaction code), this transaction screen should be locked, and other users should not use the transaction simultaneously in the present System.
    I have to do it inside the ABAP coding. could you please help me how to do it.
    Regards
    Chandra

    hai
    I used below FM with parameter 'ZTRAN$' for TABNAME as u said.my transaction name is ZTRANS.
    Now tell me onething, If same user opens the same transaction again(\n) , transaction opens for simultaneous access.
    How to deal this case..will this FM cover this function also?
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
      MODE_RSTABLE         = 'E'
       TABNAME              =  'ZTRAN$'
      VARKEY               =
      X_TABNAME            = ' '
      X_VARKEY             = ' '
      _SCOPE               = '2'
      _WAIT                = ' '
      _COLLECT             = ' '
    EXCEPTIONS
      FOREIGN_LOCK         = 1
      SYSTEM_FAILURE       = 2
      OTHERS               = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to install Oracle BPEL Process Manager for OracleAS Middle Tier

    hi,
    i need to install BPEL process manager, so i download the following file from otn
    1.soa_windows_x86_101310_disk1
    2.soa_windows_x86_bpel_101310
    here i read the document named b28980.pdf from bpel\doc\pc.1012 to install BPEL PM
    so i start to complete the pre-installation task
    1.installed Oracle database 10g
    2.Run the Integration Repository Creation Assistant on the Database
    3.Install Oracle Application Server 10g Release3 (10.1.3.1.0) and select either the J2EE Server installation type or the J2EE and Web Server installation type. selected J2EE and Web Server installation type
    and installed according to the Oracle application server installation guide.
    installed OracleAS in the path : D:\product\10.1.3.1\OracleAS_1
    4.Install the current release of Oracle BPEL Process Manager for OracleAS Middle Tier
    here they mention to select the J2EE and Web Server installation type because that type is selected in Oracle AS installed in Oracle Application Server
    so i start to install the BPEL PM by selecting the setup.exe-->and shows the location source and destination
    default destination is : D:\product\10.1.3.1\OraBPEL_1 selected next on the screen
    the next screen is select installation type here there are two types named
    1.BPEL process Manager for Developer (371MB)
    2.BPEL process manager for Oracle AS Middle tier (107MB)
    i selected 2.BPEL process manager for Oracle AS Middle tier (107MB) and click next
    pop up window opens with title dependencies
    error:
    BPEL Process manager for oracle AS Middle tier will run on top of a supported Oracle Application Server 10.1.3.1.0 J2EE server and Web Server Or J2EE server instance. this location does not contain this instance. Please select new Oracle home that contains a supported instance.
    so i changed the destination path to : D:\product\10.1.3.1\OracleAS_1\BIN then also i got the same error.
    please any one mention the path for J2EE and Web Server instance for installing the BPEL PM for Oracle AS Middle Tier.
    Thanks in Advance
    Aswath Thaniga

    If you choose the developer version you will be fine.
    If you have installed J2EE and Web Server installation into D:\product\10.1.3.1\OracleAS_1 then this is the location you install your BPEL PM into, not D:\product\10.1.3.1\OraBPEL_1 or D:\product\10.1.3.1\OracleAS_1\BIN.
    D:\product\10.1.3.1\OracleAS_1 is what we call the ORACLE_HOME, generally we create a new home for each install, but in this case there is a dependency on 10.1.3.1 OC4J container. So it needs to be installed into 10.1.3.1 oracle home.
    The bin directory is just the executables for that home, its not the actual. home.
    cheers
    James

  • Windows Integrated Authentication Help From Middle Tier

    We are trying to enable single sign-on using Windows Integrated Authentication so that the user does not have to enter a username or password, they just get logged in automatically. I created the current Oracle account on the database and it works just fine when I try to connect from my local computer to the database. Our problem is that our application calls an application that runs as a Windows services on the middle tier, and so it gets an invalid username/password error. I can see in the audit logs that it is trying to connect to the database as NT AUTHORITY\ANONYMOUS LOGON.
    The client, middle tier, and database are all Windows based operating systems. The applications is a .Net application and we turned on Impersonation which we read will help pass the client OS user to middle tier so that the application runs as them. And that appears to be working correctly. Again we can get this working when we host the windows service locally, it just wont work when it is hosted on the middle tier. Any ideas how to get this to work?
    Oracle version 11.2.0.2 and 11.2.0.3
    Windows Server 2008 R2

    Hi, jeff81.
    I had same problem with Win2003 server. Try this:
    Start -> Settings -> Control Panel -> Administrative Tools -> Services
    then select "PROPERTIES/LOGON" for necessary service.
    Change "Local System account" to your user account.
    Make sure that user account have necessary grants.
    ps. sorry my poor english :(

  • Locking of Transactions for MM - FI Integration

    Every month, we do the closing of accounts. For this, we have to close all GRN related transactions, so that the accounting entries are not passed. We use trxn SM01, to lock, MIRO, MIGO, & ML81N, so that user does not book any entries for that month.
    Is there any other better way to achive this ?? if yes, can it be done by the user department , instead of coming to IT, to lock the transactions
    thanks
    amit

    Hello,
    There is fixed solution on for what you are asking.But its little bit tricky.
    If you are aware of Validation rule .you can go and customise your requirement or take ABAPERS help.
    Please use tcode GBB0 & Ob28 to create validation
    For e.g
    Prerequisite.
    If posting day is after last day of month & tcode is MIGO,MIRO,etc
    CHECK: User ids(only these user will have option to use this trx else it will give error.you can keep this access to only few like urself)
    Error: Posting not allowed in previous month.
    likewise you can custoimise your requirement.

  • How to handle bdc for more than one transaction?

    how to handle bdc for more than one transaction?

    Hi srk,
    I am providing you with some references below. Hope this prove to be helpful to you.
    Method 1:
    Use one BDC_OPEN_GROUP
    Multiple BDC_INSERT 
    One BDC_CLOSE_GROUP.
    Call function BDC_OPENGROUP.
    Build BDC data and call lBDC_INSERT for transaction 1
    Build BDC data and call lBDC_INSERT for transaction 2
    Build BDC data and call lBDC_INSERT for transaction 3
    paas the tcodes to bdc_insert.
    call function BDC_CLOSE_GROUP.
    Also check this out:
    Here we need to record 2 transactions (shdb).
    Once completion of the recording. Populate the data into input internal table .
    Loop the internal table and process the 2 transactions
    like
    1. BDC_OPEN_GROUP
    2. LOOP AT ITAB
    a. Populate first transaction recording data
    and pass transaction to the BDC_INSERT_GROUP.
    BDC_INSERT_GROUP.
    b. Populate second transaction recording data
    and pass transaction to the BDC_INSERT_GROUP.
    BDC_INSERT_GROUP.
    ENDLOOP.
    3. BDC_CLOSE_GROUP
    the above info can be found at : How to use 2 transactions in BDC?
    Also check this out:
    Suppose u have created recordings for transactions 'MM01' 'XK01' and 'VA01'.
    Then do this:
    bdc_open_group.
    after this we have to fill the bdcdata structure for one transaction.here 'MM01'.
    bdc_insert.
    refresh bdcdata.
    after this we have to fill the bdcdata structure for one transaction.here 'xk01'.
    bdc_insert .
    refresh bdcdata.
    after this we have to fill the bdcdata structure for one transaction.here 'va01'.
    bdc_insert.
    bdc_close_group.
    Hope these are useful to you.
    Please reward if any of the above are useful.
    Regards,
    Kalyan

  • How to Lock a Transaction for Editing AND VERY minor tab cont. help

    Just two things I need to ask about
    <b>1. How to Lock a Transaction for Editing</b>
    I am currently using the fcode ENQUEUE_E_TABLE. The function works as once the transaction in opened, another cannot access it.
    However, I have two modes in my transction (Display and Edit). <u> What I need to do is If another user has already opened the transaction, the other user can still access the transaction but cannot access the edit mode.</u>
    <b> 2. VERY minor tab cont. help </b>
    I noticed in a table control is being used in a transction you can resize a colunm. <u> How do you disable this </b>?
    and <u> how do you resize the horizontal scroll bar </u> so that you can limit scrolling upto the point where there are field columns?
    Thanks for you help ppl and take care

    Hi chad,
    This link will help u know abty different types of locks that are available:
    http://help.sap.com/saphelp_erp2005/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm
    For resizing all u can go to the table settings and u can do it.
    Hope tis helps u,
    Regards,
    Nagarajan.

  • Delays in acquiring lock for com.sun.xml.ws.handler.ServerSOAPHandler

    Using WLS 10.0 mp2 and jrockit, there looks to be intermittent delays in the webservice, of about 3.5 seconds delay, when WLS is trying to acquire locks for com.sun.xml.ws.handler.ServerSOAPHandler in com.sun.xml.ws.handler.HandlerPipe.process(). This is showing up in JRA recording, and is happening about 15-20% of the calls.
    Does anyone encounter similar issue?
    Also, WLS 10.0.2 comes with JAX-WS 2.0.1. Is there any issue upgrading to 2.2?

    Using WLS 10.0 mp2 and jrockit, there looks to be intermittent delays in the webservice, of about 3.5 seconds delay, when WLS is trying to acquire locks for com.sun.xml.ws.handler.ServerSOAPHandler in com.sun.xml.ws.handler.HandlerPipe.process(). This is showing up in JRA recording, and is happening about 15-20% of the calls.
    Does anyone encounter similar issue?
    Also, WLS 10.0.2 comes with JAX-WS 2.0.1. Is there any issue upgrading to 2.2?

  • How to install/upgrade Ultrasearch for AS Middle Tier 10.1.2.0.2?  DB 9208.

    Hi,
    I am trying to understand the Ultrasearch from the point of view of my 10.1.2.0.2 middle tier. Here is my environment:
    Our Metadata Repository and Portal Repository (Customer) databases are version 9.2.0.8. Recently patched to 9.2.0.8 from 9.2.0.7.
    Our Infrastructure & Middle Tiers have been recently upgraded to version 10.1.2.0.2 from version 9.0.4.1.
    Both the repository databases and the Infra and Mid tiers have their own Oracle Homes.
    From what I read, Ultrasearch is installed by default with an Oracle Database. It is also available with Oracle Application Server.
    With the version of Ultrasearch coming with our 10.1.2.0.2 AS being a later version than the one that came with the Database, I am trying to figure out how to install the correct Ultrasearch in our Customer (or Metadata ?) database.
    The iasua.log from our middle tier upgrade says:
    ============================================================================
    2009/07/16 12:27:20.478 PDT NOTIFICATION:1 Framework: Starting to examine UltraSearch.
    2009/07/16 12:27:20.478 PDT NOTIFICATION:1 Framework: Finished examining UltraSearch with status: Success.
    2009/07/16 12:52:41.587 PDT NOTIFICATION:1 Framework: Starting to examine UltraSearch.
    2009/07/16 12:52:41.587 PDT NOTIFICATION:1 Framework: Finished examining UltraSearch with status: Success.
    2009/07/19 19:08:28.616 PDT NOTIFICATION:1 Framework: Starting to examine UltraSearch.
    2009/07/19 19:08:28.616 PDT NOTIFICATION:1 Framework: Finished examining UltraSearch with status: Success.
    2009/07/19 19:12:25.560 PDT NOTIFICATION:1 Framework: Starting to upgrade UltraSearch.
    2009/07/19 19:12:25.579 PDT NOTIFICATION:1 Framework: Finished upgrading UltraSearch with status: Success.
    ============================================================================
    But during the Metadata Repository Upgrade using MRUA, I saw the following error:
    ============================================================================
    Calling upgrade plugin for ULTRASEARCH
    Error: Component upgrade failed ULTRASEARCH
    ============================================================================
    I can connect to the Ultrasearch Admin tool from the Application Server Console middle tier => portal page, and I see there that the version is 10.1.0.4.2. Ultrasearch has never been setup previously with our 904 environment. I see the WK_TEST default instance there that I can navigate around. My question is, how do I check and confirm that Ultrasearch has been installed correctly for my Application Server?
    If I have to install a new version of Ultrasearch, what are the installation steps? Does Ultrasearch always use the Metadata repository database? Or can it be configured to use a customer database? I don't see a WKSYS schema in our Portal database. WKSYS exists only in our MR database.
    As per the APP_REGISTRY in our MR database, the Ultrasearch component is version 9.2.0.8.0 and is INVALID.
    I believe that Ultrasearch was an option prior to 10.1.2+ releases, but is required with the recent releases. Correct me if I am wrong.
    I think Ultrasearch is installed for our AS environment. I don't know if it is valid.
    Any help would be appreciated. I just need to confirm that I am good to go, to proceed and upgrade our Portal to version 10.1.4.
    Thanks.
    CV

    Figured out that Ultrasearch was installed as a part of the Middle Tier install and was upgraded successfully during the Middle Tier upgrade.
    Thanks.
    CV

  • Dose middle tier installation asks for the instance name?

    Dose middle tier installation asks for the instance name?
    If yes, should it be same as the infrastructure instance name?
    Regards,
    DN

    Dose middle tier installation asks for the instance name?It should, and the name is not the same as infrastructure. Infrastructure and Midtier are different installations and different Oracle homes, in fact they could be installed on different machines.
    In Application Server terminology, an "Instance" is related to an "Installation", the difference is that an installation is the set of files installed into an Oracle home and an instance is the set of processes associated with those files.

  • 32-bit shell emulation for ALL patching of middle tier?

    In the Oracle Fusion Middleware Infrastructure and Middle Tier April2009 Cirtical Update Patch 8298235, I found the following statement:
    On Linux x86-64 computers, always use 32-bit shell emulation. Use the following command before running the installer and any other Oracle Application Server commands or scripts:
    linux32 bash
    I have seen the requirement for 32-bit emulation in individual steps in a patching or upgrade before, but this is the first time that I have found such an all-encompusing statement. I have never run into a problem that I know of running opatch in 64-bit mode.
    What is the real meaning of the above statement and, if it really means ALWAYS, what possible problems might occur if 32-bit mode has not been used in all patching.

    Hussein,
    Thanks for your quick reply. I'm still a little confused. When installing r12 rup6 and upgrading to 11g there was lots of patching. Whenever the specific doumentation stated that linux32 was required, it was used. I only found this when actually running the Xwindows universal installer, and then even when installing 11g software. However, all other patching (lots) of the application tier using opatch was done without using linux32. We did download and install the latest 64-bit version of opatch. None of the patches produced any errors. Is this the correct thing to be doing? If not, what should be done to correct the problem? How might any problem manefest itself.
    The statements in 564174.1 and in Patch 8298235 say "all commands and scripts". What does this really include? starting up services? autoconfig? etc. or is the only real worry when something is being compiled?
    Also, your answer implies that if you have the 64-bit version of opatch you don't need to worry about linux32.

  • BPEL logs for Middle Tier AS installation

    We've installed BPEL in the Middle Tier AS configuration in a solaris environment. We're still working out the kinks. Can't seem to locate the BPEL logs for this configuration. Where do they reside?

    If i have understood your question correctly, then you can find logs under "/midtier-home/integration/orabpel/domains/default/logs"

  • Groups vanish from OID when a new middle tier is installed for Portal - URGENT

    gurus,
    we had the following portal environment -
    1. database tier (sun box #1) - oracle 9i database
    2. middle tier (sun box #2) - oracles 9iAS portal Release 2 with webcache option
    now, we installed 9iAS on a third box (sun box#3) so we can have multiple apache servers.
    after the install was done i logged into the portal to do a health check but, found that all the groups were missing.
    i had following groups before bringing in sun box#3 -
    GRP_ADMIN
    GRP_BASE_USER and many others.
    after the installation of third server i lost all the groups. it looks like the groups vanished away from the OID. i found the following -
    Owner.Table Groups exist ?
    (Y / N)
    PORTAL.WWSEC_GROUP$ Y
    ORASSO.WWSEC_GROUP$ N
    could anyone reply on this pls ... its very critical cause all the user privileges has been lost due to this.
    thanx a bunch.

    Hi,
    Just to close off this thread, I got this portal installation working. I think what made it work was adding an additional 512MB of memory to the machine in addition to the original 640MB.
    Jim

Maybe you are looking for

  • BPELEngineBean.syncCreateAndInvoke throws Exception occurred during commit

    We have a SOA Suite 11g composite deployed on a cluster with 4 managed server. Version of SOA suite is 11.1.1.1.0 This composite gets called only once a day. Following errror is thrown by the composite only sometimes ###<Apr 12, 2010 8:03:51 AM EDT>

  • Ldb pnpce

    hi, i have to display a report using ldb PNPCE .Displayed Data should be between the date period entered in selection-screen. say pn-begda = 11.02.2008 and pn-endda = 17.02.2008.for this i hav written code GET PERAS. PROVIDE massn massg begda pernr s

  • LOL Another Thread From A Unhappy BT Customer !

    Pretty funny reading through all the threads... every one bashing BT ! lol... I guess people consider signing up for BT should read this forum first... eek ! I am absolutely dispondant about the service I receive from BT, nothing short of a joke ! An

  • Is there a way to convert JVM 1.1x byte code to JVM 1.3+ byte code

    I dont have the source code from a program that is used in my company. The original writers went out of business... so we cant ask them. I was thinking of decompiling the code and then recompiling it... but I was wondering if there wasnt just a byte

  • Sun IdM Password Sync 8.1 - Urgent help needed

    Hi, I have installed Sun Idm 8.1 password sync. It has been installed in Direct mode. The test environment is 1 dc controller and 1 windows xp machine. The following test cases were done - 1. Admin/User changes password (IDM) - it is synchronized to