Question

In: Computer Science

Describe the types of problem that can possibly occur in a multi-user environment when concurrent access...

  1. Describe the types of problem that can possibly occur in a multi-user environment when concurrent access to the database is allowed.                                               

Solutions

Expert Solution

Solution:

In a multi user database environment, there are many users who wants to access the data at the same time.

In order allow the users to access the data from database at the same time, the system allows data concurrency.

Data concurrency allows multiple number of users to access the data at the same time from database.

Consider a relational database where there are many transactions present in the database.

A transaction can be understood as set of operations that should be performed at a time. A transaction should be performed completely or left untouched.

when multiple transactions are accessed by multiple users at the same where there are some dependencies in the data, the concurrency has some problems associated with it.

Problems:

The following are some of the problems of concurrency mechanisms in database.

  • Lost Update and dirty write
  • Dirty Read
  • Phantom read problem
  • Incorrect Retrievals
  • Access to uncommit data

Explanation:

Lost Update and dirty write:

When two applications use the same data from a record from database, the same data is used by two applications and it calculates new values for one of the columns.

The calculated values are updated in database.

These two write operations to database are performed by different applications.

This leads to incorrect write of data to database. This is called as Dirty write.

Consider transactions T1 and T2. These uses data A from database.

T1 performs calculations on A and before it updates to database, T2 accesses it and performs its own opertions on old value of A.

Now when T1 and T2 write back the value of A, it leads to dirty write and lost update problem

Dirty Read:

The Dirty read problem occurs generally when the application reads the data from database that is being modified by some other application and is uncommitted.

This read operation is called Dirty Read operation.

Phantom read:

The phantom read is the situation when different applications access the same data and one application deletes the data from database and the other application can not read data because it is deleted by other one.

This is called as phantom read problem

Incorrect Retrievals:

Consider the application that performs the operation of summerization on database.

Another application accesses the same data and keeps modifying it.

Due to this concurrent access to data, the retrieval of data summerization results are incorrect.

Access to uncommit data:

This is similar to dirty read operation.

When two applications access same data, when one application is using a uncommitted data then the changes that this application makes are invalid.

The same data might be updated by other application and might lead to inconsistency.

These are the various problems of concurrency in databases.


Related Solutions

Describe a problem that may occur where it would be better to use Access to solve,...
Describe a problem that may occur where it would be better to use Access to solve, rather than Excel. Your initial answer must be a 2 to 3 paragraph response to the discussion question.  
4. What are the types of time lags that can occur when implementing fiscal policy? When...
4. What are the types of time lags that can occur when implementing fiscal policy? When Congress recently kept delaying the passing of the Coronavirus stimulus package, what specific type of time lag was occurring and why?
Describe types of rater errors that can occur during performance review conversations?
Describe types of rater errors that can occur during performance review conversations?
Why does a multi-user database environment give us a special interest in transaction management and concurrency...
Why does a multi-user database environment give us a special interest in transaction management and concurrency control? Begin by exploring what a transaction is, what its components are, and why it must be managed carefully even in a single‑user database environment. Then explain why a multi‑user database environment makes transaction management even more critical.
Consider a multi-user system running a database server, with a role-based access control (RBAC) system. One...
Consider a multi-user system running a database server, with a role-based access control (RBAC) system. One role in this system is Database Developer, for those responsible for creating and populating new databases and database applications. A second role is Database Administrator, responsible for managing the configuration of the database server and database user accounts. Make two lists, one for each of these two roles, with names of permissions that might be assigned to each role. Be as specific as possible....
Describe two types of computational errors that can occur in financial calculations and discuss (150 to...
Describe two types of computational errors that can occur in financial calculations and discuss (150 to 180 words) strategies to avoid and detect errors.
Summarize the different types of hematomas that can occur in the brain. Describe epidural hematomas, subdural...
Summarize the different types of hematomas that can occur in the brain. Describe epidural hematomas, subdural hematomas, and traumatic intracerebral hematomas.
Explore two types of change likely to occur in the healthcare environment in the next several...
Explore two types of change likely to occur in the healthcare environment in the next several years? Evaluate the four processes that are involved in environmental analysis? Which one is most important to the change you described above? What did you conclude from this evaluation?
What is the problem than can occur when using the NPV and IRR to evaluate mutually...
What is the problem than can occur when using the NPV and IRR to evaluate mutually exclusive projects.   What are the problems associated with using the payback statistic to evaluate capital budgeting projects?   Describe the problems associated with using the IRR statistic to evaluate capital budgeting projects.
What are the common heuristics that can be used to schedule resources in a multi-project environment?
What are the common heuristics that can be used to schedule resources in a multi-project environment?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT