Skip to Content
author's profile photo Former Member
Former Member

Lock DB /Disable Update when Updating data in DB from JDBC receiver

Hi Experts,

I have a requirement where the database is being used by more than one application on the legacy side,

So If I have to update the data from SAP thru SAP PI JDBC adapter into the same database.. is there any way can lock the db or any other method hich will not allow addition to the table at the same instant?

And allow the update on the DB from the legacy side once the JDBC rcvr adapter has completed the task of updatign the data?

pls share your thoughts..

Regards,

Teja

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 05, 2012 at 08:34 AM

    Hi,

    can you use the isolation level setting in JDBC adapter ?

    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm

    or do you need anything else ?

    more on isolation levels:

    http://en.wikipedia.org/wiki/Isolation_(database_systems)

    Regards,

    Michal Krawczyk

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Christian,

      These are staging tables...

      The scenario is as follows :

      SAP data flows to Legacy DB, this DB is used by the hoe grown front end ...

      If the front end operation delivers a call to the DB for the particular data whilst sap is updating the data in the DB in the absence of a lock ther emight be a display of incorrect data..

      instead what we plan to do is give an error on the front end stating a lock and then a retry after a few seconds would successfully retreive the updated data from SAP ...

      Would you suggest any work around for this?

      Regards,

      Teja

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.