Question

Database Integration (Concurrent Transaction Execution) Any help would be appreciated please! Can you explain three common...

Database Integration (Concurrent Transaction Execution) Any help would be appreciated please!

  • Can you explain three common problems with concurrent transaction execution and how concurrency control can be used to avoid them?
  • Describe an example that illustrates either:
  • A problem with concurrent transaction execution and its effects on the operational performance of the system
  • The effectiveness of concurrency control
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Concurrent Transaction Execution

Multiple transaction happens simultaneously over a shared database. It allow multiple transaction to update the same data concurrently.

Problems

1. Temperory update problem or dirty read problem

If two transaction accessing the same database, before the first transaction complete its update, the second transaction trying to access the updated value from first tranasaction,then the problem occurs. In other words, when one transaction updates a table row and then cancels the update with ROLLBACK, the second tramsactopn access the temporarily updated before it is changed back to it's original value. This reslt is database inconsistency.

2. The lost update problem

The lost update problem occurs when 2 concurrent transactions try to read and update the same data. Consider 2 transaction viewing same stock amount as 12. First transaction sold 3 items and second transaction sold 2 items. But first transaction updated the stock as 9 and second transaction updated the stock as 10. This happens because of concurrent execution of same data on a database. This also will lead to data inconsistency.

3. The incorrent summary problem

This occurs when one transaction performs an aggreagate function on a number of records and other transaction updating values of some of these records. Example of such problem is what happens in stock related data when the stock returns while taking the overall stock details.

Concurrency control protocols

Lock-based

To perform a transaction on data, it needs a lock.

1. Shared lock - The transaction with this lock can only read and can't update the data.

2. Exclusive lock - Transaction with this lock can both read and write, but multiple trasaction can't do it

Time-stamp

A timestamp is a unique identifier used in DBMS to identify a transaction. Timestamp values are assigned in the order in which the transactions are submitted to the system, so a timestamp can be thought of as the transaction start time by using system time or logical counter. Concurrency control techniques based on timestamp ordering do not use locks; hence, deadlocks cannot occur.

The algorithm confirms the sequence for each item accessed and  does not break the sequencing .

Validation based

In this technique, no checking is done while the transaction is been executed. Database is not updated until all transactions are executed. All updates are applied to local copies of data items kept for transaction. At the end of transaction execution, validation phase ,checks whether any of transaction updates violate serializty. If there is no violation of serializability the transaction is ted; or else, the transaction is updated in the database.

All these method provide congestion control, database consistency and integirty to the data stored in database.

Add a comment
Know the answer?
Add Answer to:
Database Integration (Concurrent Transaction Execution) Any help would be appreciated please! Can you explain three common...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • If you can help with any of the following questions it would be much appreciated !!!...

    If you can help with any of the following questions it would be much appreciated !!! Describe the Federal Reserve in terms of power and accountability. Describe the organization of the Fed and how members are chosen, Who appoints them? What can they do? What powers does the Fed have and to whom are they accountable? Explain how the main tools of monetary policy are conducted.

  • Hello, I need help with the following Computer Orginization problems. Any help you can provide is...

    Hello, I need help with the following Computer Orginization problems. Any help you can provide is greatly appreciated! If a system's instruction set consists of a 5-bit Opcode, what is the maximum number of output signal lines required for the control unit? Select one: 0 а. 4 0 - b. 32 о с 16 o oo A "subtract" statement is an example of a(n) instruction Select one: O a. input/output O b. Boolean logic O c. arithmetic d. transfer of...

  • I need help with the following problems, any help you can provide is deeply appreciated! CSC...

    I need help with the following problems, any help you can provide is deeply appreciated! CSC 404 Exam 1 Question I continued - 9. The syntax rules for most languages ignore spaces. An exception is which tises indents and therefore spaces to form the indents) to group statements (a) FORTRAN (6) Pascal (e) Python (d) Lip (e) C++ 10. Identifiers, constants and operators are typical examples of (a) tokens. (b) leafons. (c) signifiers. (d) lexicons. (e) parsicles. 0) non-terminals. 11....

  • This is about database system. Thank you. Question A1 You are given with three Oracle tables,...

    This is about database system. Thank you. Question A1 You are given with three Oracle tables, namely, Program, Channel and Booking, as shown in Tables 1 to 3. PROGRAM_ID PROGRAM_NAME DURATION 2012022 Dragon Dance 2014063 Haunted House 2016005 CID 2017172 Kung Fu Master 2018322 Family Affair 2019006 Hong Kong Sites 2019113 2019 Singing Contest 25 58 45 28 68 120 75 Table 1: Program CHANNEL_NO CHANNEL_NAME TVR-1 Rediffusion Channel 1 TV-P Television Pearl Channel TV-G Television Gold Channel Table 2:...

  • For this course project, you will use various database management and programming techniques to design and...

    For this course project, you will use various database management and programming techniques to design and develop an online sales and distribution system for a fictitious organization. There are two phases—you will complete the first phase this week and the second phase in W5 Assignment 2. Rationale The focus of the project is to develop your database programming skills. This project will help you get a fair idea of the sales and distribution system in any organization that has a...

  • Rationale The focus of the project is to develop your database programming skills. This project will...

    Rationale The focus of the project is to develop your database programming skills. This project will help you get a fair idea of the sales and distribution system in any organization that has a chain of Carrying and Forwarding Agents (CFAs) or super stockists and stockists. You will be able to implement database programming concepts of ADO.NET in VB.NET and ASP.NET to create a real-life, web-based database application. (VB stands for Visual Basic.) Scenario Smooth Pen, Inc., a pen manufacturing...

  • This is about Health Science DRUG WORKSHEET Name Class time 1) A(n) drug is any substance...

    This is about Health Science DRUG WORKSHEET Name Class time 1) A(n) drug is any substance other than food that affects the structure or function of the body through its/chemical action 2) What term is used to refer to a substance that causes changes in brain chemistry and alters consciousness, perception, mood, and thought? Check up 3) Drugs that do not need a physician's prescription and can be purchased easily by consumers are often referred to by the acronym 4)...

  • Need help with this project please! Please name the compiler and software used, would really appr...

    Need help with this project please! Please name the compiler and software used, would really appreciate that information. Don't bother doing the report section on this assignment either. Me and my group will handle it. This is a group project. Group size should be exactly 2 (unless approved earlier by the instructor). Only ne mi imi ma Design a security architecture for a smart electric metering infrastructure. Smart electric meters have embedded hardware for cellular connectivity, and are able to...

  • Please need serious and professional help! Hello! I am working on an "object oriented analysis and...

    Please need serious and professional help! Hello! I am working on an "object oriented analysis and design" Project. I would really need your sincere help in creating a vision document for this project. The Things That I require in the "vision document" is: 1. Product Overview [This section provides a high level view of the product capabilities, interfaces to other applications, and system configurations. This section usually consists of three subsections, as follows: •          Product perspective •          Product functions •         ...

  • Can you please help me to find Possible test questions? Course Here.com Test #4 " Autonomic...

    Can you please help me to find Possible test questions? Course Here.com Test #4 " Autonomic Nervous System Overview of the Autonomic Nervous System (ANSH Maior Functions: maintain optimal muscle in order to maintain homeostatic state within the body Aalso is inv performance of visceral organs, glands, smooth muscle, and cardiac not under conscious control: regulates heart rate, blood pressure, MOST "effectors" (organs & tissues regulated) are visceral- r function, and secretions emperaturs smooth musele contraction, glandula most are not...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT