
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

CSEP 545 Transaction Processing for E-Commerce 2/29/
Assignment 8 1
We replicate database DB1 (assuming full replication, rather than partial replication). a) Assume DB1 is a read-only database.
A database is replicated on two servers, server A and server B. Each transaction executes on one server using two phase locking and propagates its updates within the transaction boundary to the other server. Transactions commit using two phase commit.
Does this replication protocol provide one-copy-serializability? If “yes”, provide an argument, and if “no”, provide a history.
Assume a database is replicated on two servers. Transactions run serially at both servers. Updates are propagated by executing each transaction on both servers. Suppose the system executes the following transaction program: T = { read x; read y; write z = x + y; write w = time.now()} Where time.now() is a database function that returns the current time.
What could go wrong using this approach? Suggest solutions. Does your answer change if T is executed multiple times on each server?