



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!




Announcements Welcome back! – we're getting to the end here. Courses in risk of being cancelled! Register for classes ASAP. Chapter 9 This chapter is about database administration. This is really important for multi-user databases. Responsibility of DBA: facilitate development and use of the DB. Need to balance conflicting goals:
For DB restoration For archived data – what was the database structure when you saved the data? Concurrency Control In most DBs, multiple users are active at the same time. In a large DB, could be 10s of thousands of simultaneous users (Amazon, Orbitz, …). Need to ensure that the user's don’t interfere with each other.
A: Lock row A: Read Row from Table A: Subtract 1 B: Lock Row – can’t because it is already locked, so wait A: Write result A: Release Lock B: Place Lock for B B: Read Row from table B: Subtract 1 B: Write result B: Release lock This is an example of a record lock, because it locks a single record (or row) of a table. Different DBMSs have different locking policies: