Implement data concurrency

hi! i'm a java newbie and i've been tasked to create this web application. my question is what's good way / strategy to implement data concurrency?
for data concurrency, my officemate suggested this design :
if user A is editing a record in the table then that record should be locked from other users. A class, called UserAccessRightsManager, will supervise all the locked records. So, if user B wishes to edit that record, he must go through UserAccessRightsManager. Is this a good idea? If not, can you give some suggestions? I'm a bit worried with his idea. What if two users edit the same record at the same time?
would appreciate any help! thanks!

What backend database are you using? I would let the db handle locking.

Similar Messages

  • MCTS 70-466 Implementing Data Models and Reports with Microsoft SQL Server 2012

    I am searching for training kit for Exam 70-466 (Implementing Data Models and Reports with Microsoft SQL Server 2012) but I think is not published yet. I was expecting its release in Jan or Feb 2014. Would any one can tell me its release date or any place
    where I can find this book.
    Thanks
     

    Hi Azhar lqbal Gondal,
    According to your description, since the issue regards training and certification,
     I suggest you post the question in the Learning forums at
    http://social.technet.microsoft.com/Forums/en-US/home?category=learning. It is appropriate and more experts will assist you. If you have a specific technical question about Microsoft SQL Server,
     you can visit and post your question on  the SQL Server Forum.
    There is some detail about Exam 70-466 Implementing Data Models and Reports with Microsoft SQL Server 2012, you can review the following articles.
    Exam content can be found here:
    http://www.microsoft.com/learning/en-us/exam-70-466.aspx
    http://borntolearn.mslearn.net/certification/database/w/wiki/525.466-implementing-data-models-and-reports-with-microsoft-sql-server-2012.aspx#fbid=Mn-t6aRhs-H
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Phantom Reads / Data Concurrency

    I am using OWB 10.2.
    I am encountering phantom reads within some of my OWB maps. These phantom reads are caused by activity on the source system when I am sucking the data from the source tables. The problem is my map does an update and then an insert. The activity on the source occurs after the update transaction has started but before the insert transaction.
    Does anyone know of a setting in OWB that allows serializable transactions?
    I thought of using the command "SET TRANSACTION ISOLATION LEVEL SERIALIZABLE" and changing the Commit Control to Manual for the map but can I put the set transaction command in a Pre-Mapping process? Or does it have to be in a SQL*Plus operator in the Process Flow.
    I cannot find any information about Data Concurrency in the OWB documentation and am surprised that no one has encountered this problem before.
    Help!

    Hi,
    Check the below links:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:27523665852829
    http://www.experts-exchange.com/Database/Oracle/Q_20932242.html
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com

  • What if I implement data level security using Selection formula?

    Hi All,
    I have a requirement to implement data level security for all the reports, the thing is, we donot have a front end application developed in java/.net or any other language, so we have only two options (as per me, if you think there are other alternatives then please share).
    1) Implement security at the database level (that is use user roles in where clause which will make the where clause really complicated and hence the performance of the query will eventually decrease).
    2) Retrieve the data with the flags of user role/permission on data. Use these flags in selection formula to select the needed records as per the user login.
    I have already in middle of implementing the second method, thought to take suggestion from you guys, I appreciate if you could tell me the drawbacks of the method I am using, and if there is an alternative method you could think of.
    Thanks,
    -Azhar

    Standaone Crystal Reports does not have any security option except to use Trusted Authentication when connecting to the DB. We use Microsofts NT or MS SQL Server Authentication only.
    Doing this in CR Designer using flags and formula will never be secure, the user could simply change the formula etc...
    Check with your DBA on how to configure AD authentication and then enable or add each user to SQL server. You may need to configure and mantain this manually depending on how you ahve your network configured.
    Thank you
    Don

  • How to implement data level security

    How to implement data level security in BI Publihser?. I am using Obiee enterprise edition and bi publihser. My requirement is to show data based on User- Region relation ship.
    User A - belongs to Eastern Region
    User B - belongs to Southern Region
    so if user A logged in he should see only Eastern Region report. If user B logged in He should see only Southern region. I am using direct sql to my oralce database as data source.
    i appriciate your help

    I am using a common database username and password for jdbc connection. what i am looking is based the BI Publihser login, is there any way?
    say i have userregion table joined with fact. so that i can write a query to get the data
    select c1,c2,c3
    from userregion, fact
    where fact.region=userregion.region
    and userregion.user = BIPUBLIHSERUSER
    but my question is ithere any variable to tell who is logged in BI Publisher? Any server varaibles?
    Other related question is, In every report i want to show User name who is running the report. How can i get this?

  • What should i do to implement Data Archiving and Data Reporting

    we want to implement Data Archiving and Data Reporting in our product. Can someone tell me what techniques or approaches people take in general to implement Data Archiving and Data reporting.
    i am currently looking into DataWarehousing. is this the right apporach ? i have no idea as where i should start on this. can someone give me a good direction as a starting point.
    thank you,
    Puja

    Did you setup Find My Mac before it was stolen?

  • Shared data - concurrent access

    Entity beans are best used when shared data is being concurrently accessed.
    Could you please clarify this statement . How does it different than shared data - concurrent access by jdbc DAO class ?

    jverd wrote:
    I have no idea what you're asking. I cannot provide clarification until you do.Ok. let me explain further. my question is , is it a good idea that whenever we need shared concurrent data access in a application Entity bean is the best ? Why? does it really outsmart the jdbc DAO access methodology whenever it comes to the realm of shared concurrent data access ?
    For example: I can think of a system e.g online auction house application. This needs concurrent shared data access ..right ?
    Do you think use of Entity bean is best here instead of jdbc DAO access methodology ? Why ?

  • Implementing Data Guard

    I am in need of Step by Step instruction set to implement Data Guard on 11gr2 OS linux.

    Hi again;
    Please also see:
    http://wiki.oracle.com/page/DataGuard+%3A+Step-by-Step+Instructions+for+Creating+a+Physical+Standby+Database
    http://www.oracletutorial.info/oracle-data-guard-11g/videos/oracle-data-guard-11g-step-by-step/
    Regard
    Helios

  • MRP BOM - Implementation Date

    Hi All,
    In mrp_bom_components we are having the item for which there is no implementation_date but we have effectivity_date date .
    Will the item will be populated in MRP or not .
    Regrads,
    Ankit

    it should be..
    No implementation date means the item was added to the BOM manually wihtout an ECO.
    The date it is added will be the defaulted effective from date..

  • CHARM-crmd_order-Decison Date & Implementation Date

    Dear All,
    When we create a change request using crmd_order, we have fields like Decision date & Implementation Date. Whats the purpose of this in charm ? Even after completion of that ticket also, these fields were blank. How can i make these fields to pick the dates automatically.
    regds,
    CB

    Hello Kallumana
    1 - 'Whats the purpose of this in charm ?'
    The purpose of those 2 fields is only for reporting. So you can know approximatelly how long it takes for delivery team to implementa Change and how long does it take to the CAB (Change Advisory Board) to decide whether or not to authorize the change
    2 - How can i make these fields to pick the dates automatically.
    Those fields have to be normally field manually. You have two options to make sure those fields won't stay blank when closing ticket
    a - forcing actors to fill those fields. you can do that thanks to badi : SOCM_CHECK_CONDITION available in SPRO under Change Request Management Node
    b - setting up  automatic fill of those fields when reaching appropriate status in workflow thanks to badi: SOCM_PROCESS_ACTION available in SPRO as well under node Change Request Management
    Hope this helps,
    Regards
    Khalil

  • ChaRM : Update decision date and implementation date in Change request doc.

    Hi,
    I've created change request document from support message document.Then change document was created when i authorize the change request document.
    When  Change request document is created, decision date and implementation date is empty.
    1.How can i configure the decision date to be automatically capture when change manager have authorize the change request?
    2.How can i configure implementation date to be automatically capture when change document have been confirmed?
    regards,
    Biah

    Hi,
    Go to the transaction code MASS  and enter the OBJECT  TYPE as BUS2032 and enter
    It will lead you to the next screen where you can find the  Table and Field TABS
    Select the  SALES ORDER HEADER DATA  and choose the fields data and choose the fields PRICING DATE and BILLING DATE  and execute
    In the subsequent screen you can see the selection screen where you can enter all the Sales documents for which you want to change
    Key in all the documents and execute
    Now change the date as per your requirement and check the effect
    regards,
    santosh

  • Recommended pattern for data concurrency

    we have this web-based project where several users will be accessing the same data. they could be viewing, editing, deleting this data, (etc) possibly at the same time.
    what is the best design pattern that solves this problem?

    Patterns concept hardly help you on this. Any concurrency issue is specific to business logic implementations of DAO.

  • Data Concurrency and Consistency ( SCN , DATA block)

    Hi guys, i am getting very very very confused about how oracle implement consistency / multiversioning with regards to SCN in a data block and transaction list in the data block..
    I will list out what i know so you guys can gauge me on where i am..
    When a SELECT statement is issued, SCN for the select query is determined. Then Blocks with higher SCN are rebuilt from the RBS.
    Q1) The SCN in the block implied here - is it different from the SCNs in the transaction list of the block ? where is this SCN store ? where is the transaction list store ? how is the SCN of the block related with the SCNs in the transaction list of the block ?
    Q2) can someone tell me what happen to the BLOCK SCN and the transaction list
    of the BLOCK when a transaction start to update to a row in the block occurs.
    Q3) If the BLOCK SCN reflects the latest change made to the block and If the SCN of the block is higher then the SCN of the SELECT query, it means that the block has change since the start of the SELECT query, but it DOESNT mean that the row (data) that the SELECT query requires has changed.
    Therefore why cant ORACLE just check to see whether the row has changed and if it has, rebuilt a block from the RBS ?
    Q4) when ORACLE compares the BLOCK SCN, does it only SCAN for the BLOCK SCN or does it also SEARCH through the TRANSACTION LIST ? or it does both ? and why ?
    Q5) is transaction SCN same as Transaction ID ? which is store in the RBS , the transaction SCN or ID ?
    Q6) in short i am confuse with the relationship between BLOCK SCN, transaction list SCN, their location, their usage and relationship of the BLOCK SCN and transaction list when doing a SELECT, their link with RBS..
    any gurus clear to give me a clearer view of what is actually happening ?

    Hi Aman
    Hmm agreed.So when commit is issued , what happens at that time?Simply put:
    - The SCN for the transaction is determined.
    - The transaction is marked as committed in the undo header (the commit SCN is also stored in the undo header).
    - If fast cleanout takes place, the commit SCN is also stored in the ITL. If not, the ITL (i.e. the modified data blocks) are not modified.
    So at commit, Oracle will replace the begin scn in the ITL with this scn
    and this will tell that the block is finally committed is it?The ITL does not contain the begin SCN. The undo header (specifically the transaction table) contains it.
    I lost here.In the ITL , the scn is transaction SCN or commit scn?As I just wrote, the ITL contains (if the cleanout occured) the commit SCN.
    This sounds like high RBA information?What is RBA?
    Commit SCNThis is the SCN associated with a committed transaction.
    Begin SCNThis is the SCN at which a transaction started.
    Transaction SCNAs I wrote, IMO, this is the same as the commit SCN.
    Also please explain that what exactly the ITL stores?If you print an ITL slot, you see the following information:
    BBED> print ktbbhitl[0]
    struct ktbbhitl[0], 24 bytes     @44
          struct ktbitxid, 8 bytes    @44
             ub2 kxidusn              @44       0x0009
             ub2 kxidslt              @46       0x002e
             ub4 kxidsqn              @48       0x0000fe77
          struct ktbituba, 8 bytes    @52
             ub4 kubadba              @52       0x00800249
             ub2 kubaseq              @56       0x3ed6
             ub1 kubarec              @58       0x4e
          ub2 ktbitflg                @60       0x2045 (KTBFUPB)
          union _ktbitun, 2 bytes     @62
             b2 _ktbitfsc             @62       0
             ub2 _ktbitwrp            @62       0x0000
          ub4 ktbitbas                @64       0x06f4c2a3- ktbitxid --> XID, the transaction holding the ITL slot
    - ktbituba --> UBA, used to locate the undo information
    - ktbitflg --> flags (active, committed, cleaned out, ...)
    - _ktbitfsc --> free space generated by this transaction in this block
    - _ktbitwrp+ktbitbas --> commit SCN
    HTH
    Chris

  • Help in implementing date logic calculation

    Hello,
    We need to implement below logic in our Webi report:
    Report Logic: Any Purchase_Order whose delivery (Promised Date) is pending next in 15 days and also any pending deliveries which has not happened beyond 15 days.
    Please suggest how the above logic can be implimented at the report level or at the Universe level.
    I have tried with below object at the universe level but it is not giving correct results.
    case when (sysdate - DWH_SSS_PO_LINE_LOC_DETAILS.PROMISED_DATE>=15) or (DWH_SSS_PO_LINE_LOC_DETAILS.PROMISED_DATE-sysdate<15 ) and DWH_SSS_PO_LINE_LOC_DETAILS.QUANTITY_RECEIVED=0 then 'Y'  else 'N' end
    It is BOXI3.1 SP7 on Oracle 11g db.
    Thank you.
    Regards,
    Kaustubh Ghate

    Hi Kaustubh,
    You could use DaysBetween function in WebI.
    So the formula would be  like the following:-
    If (DaysBetween(Currdate;Promise date)<=15) then Purchase Order
    And for the second one:-
    Pending Deliveries Where (DaysBetween(Promise date;Currdate)<15)
    Let me know if the above works.
    Regards,
    Manpreet

  • Implementing Data Search for Custom Objects

    Can any one have some information on implementing search criteria for custom objects.
    I am looking to modify the drop down values and search criteria based on custom data model.

    Hello Rajesh,
    The following configuration activity might resolve your query.
    Transaction: mdgimg.
    General Settings> UI Modelling> Define Field Properties for UI. Select your custom data model and go to "Hide Field Names."
    For the fields of the entity type, you don't want to come up in the search UI, check on "No selection".
    "No Selection" : These wouldn't come up as search Criteria. "No Results List": These won't come up in final result list.
    Best regards,
    Shephalika.

Maybe you are looking for