SE305 Database System Technology

Slides:



Advertisements
Similar presentations
Lecture plan Transaction processing Concurrency control
Advertisements

Transaction Program unit that accesses the database
Transactions - Concurrent access & System failures - Properties of Transactions - Isolation Levels 4/13/2015Databases21.
Concurrency Control WXES 2103 Database. Content Concurrency Problems Concurrency Control Concurrency Control Approaches.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Transaction Management Overview Chapter 16.
1 Lecture 11: Transactions: Concurrency. 2 Overview Transactions Concurrency Control Locking Transactions in SQL.
Transactions Chapter 6.1 V3.1 Napier University Dr Gordon Russell.
1 Integrity Ioan Despi Transactions: transaction concept, transaction state implementation of atomicity and durability concurrent executions serializability,
TRANSACTION PROCESSING SYSTEM ROHIT KHOKHER. TRANSACTION RECOVERY TRANSACTION RECOVERY TRANSACTION STATES SERIALIZABILITY CONFLICT SERIALIZABILITY VIEW.
Em Spatiotemporal Database Laboratory Pusan National University File Processing : Transaction Management 2004, Spring Pusan National University Ki-Joune.
CMPT 401 Summer 2007 Dr. Alexandra Fedorova Lecture X: Transactions.
CMPT Dr. Alexandra Fedorova Lecture X: Transactions.
Concurrency Control and Recovery In real life: users access the database concurrently, and systems crash. Concurrent access to the database also improves.
Transaction Management and Concurrency Control
Transaction Management
1 Transaction Management Database recovery Concurrency control.
Database Management Systems I Alex Coman, Winter 2006
1 Introduction to Transaction Processing (1)
9 Chapter 9 Transaction Management and Concurrency Control Hachim Haddouti.
Transactions and Recovery
Chapter 17 Introduction to Transaction Processing Concepts and Theory Copyright © 2004 Pearson Education, Inc.
Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke1 Transaction Management Overview Chapter 18.
1 Database Systems CS204 Lecture 21 Transaction Processing I Asma Ahmad FAST-NU April 7, 2011.
Transactions Sylvia Huang CS 157B. Transaction A transaction is a unit of program execution that accesses and possibly updates various data items. A transaction.
Chapterb19 Transaction Management Transaction: An action, or series of actions, carried out by a single user or application program, which reads or updates.
TRANSACTIONS. Objectives Transaction Concept Transaction State Concurrent Executions Serializability Recoverability Implementation of Isolation Transaction.
Transaction Processing Concepts. 1. Introduction To transaction Processing 1.1 Single User VS Multi User Systems One criteria to classify Database is.
Transaction Lectured by, Jesmin Akhter, Assistant professor, IIT, JU.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 15: Transactions.
Database Systems/COMP4910/Spring05/Melikyan1 Transaction Management Overview Unit 2 Chapter 16.
©Silberschatz, Korth and Sudarshan15.1Database System Concepts Chapter 15: Transactions Transaction Concept Transaction State Implementation of Atomicity.
Chapter 15: Transactions Loc Hoang CS 157B. Definition n A transaction is a discrete unit of work that must be completely processed or not processed at.
Chapter 10 Recovery System. ACID Properties  Atomicity. Either all operations of the transaction are properly reflected in the database or none are.
15.1 Transaction Concept A transaction is a unit of program execution that accesses and possibly updates various data items. E.g. transaction to transfer.
©Silberschatz, Korth and Sudarshan14.1Database System Concepts - 6 th Edition Chapter 14: Transactions Transaction Concept Transaction State Concurrent.
Transaction Management Transparencies. ©Pearson Education 2009 Chapter 14 - Objectives Function and importance of transactions. Properties of transactions.
Transactions.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 14: Transactions.
1 Advanced Database Concepts Transaction Management and Concurrency Control.
Timestamp-based Concurrency Control
Lec 8 Introduction to Transaction Processing Concepts and Theory Copyright © 2004 Pearson Education, Inc.
MULTIUSER DATABASES : Concurrency and Transaction Management.
Transactions.
Database System Implementation CSE 507
Database System Implementation CSE 507
Transactions and Concurrency Control
Chapter 14: Transactions
Transaction Management Overview
Database Management System
Part- A Transaction Management
Transactions.
Transaction Management Overview
ACID PROPERTIES.
Transactions Properties.
Transaction Properties
Transactions.
Transactions B.Ramamurthy Ch.13 11/22/2018 B.Ramamurthy.
Transaction Management Overview
Transactions Sylvia Huang CS 157B.
Chapter 10 Transaction Management and Concurrency Control
Concurrency Control WXES 2103 Database.
Recovery System.
Transaction management
Lec 9: Introduction to Transaction Processing Concepts and Theory
Transaction Management Overview
C. Faloutsos Transactions
UNIT -IV Transaction.
Transaction Management Overview
Presentation transcript:

SE305 Database System Technology Quiz-5

1. Consider the following transaction involving two bank accounts x and y. read(x); x := x – 50; write(x); read(y); y := y + 50; write(y) The constraint that the sum of the accounts x and y should remain constant is that of a) Atomicity b) Consistency c) Isolation d) Durability 2. Which of the following statement is Not correct? a) An ideal hash function is uniform and random. b) The performance of dynamic hashing will degrade as the file grows. c) Bucket overflow can occur because of insufficient buckets or skew in distribution of records. d) Extendable hashing involves an additional level of indirection to find desired record.

3. This procedure of testing the preservation of one dependency takes A) Linear time B) Quadratic time C) Cubic Time D) Polynomial Time 4. In case of any shut down during transaction before commit which of the following statement is done automatically? a) View b) Commit c) Rollback d) Flashback

5. Transaction processing is associated with everything below except? a) Conforming a action or triggering a response b) Producing detail summary or exception report c) Recording a business activity d) Maintaining a data 6. Which of the following scenarios may lead to an irrecoverable error in a database system ? a) A transaction writes a data item after it is read by an uncommitted transaction b) A transaction reads a data item after it is read by an uncommitted transaction c) A transaction reads a data item after it is written by a committed transaction d) A transaction reads a data item after it is written by an uncommitted transaction

7. Which one of the following is NOT a part of the ACID properties of database transactions? a) Atomicity b) Consistency c) Isolation d) Deadlock-freedom 8. Which one of the following is NOT a part of transaction state of database transactions? a) Active b) Partially committed c) Failed d) Rolled back

9.Consider the following transactions with data items P and Q initialized to zero: T1: read (P) ; read (Q) ; if P = 0 then Q : = Q + 1 ; write (Q) ; T2: read (Q) ; read (P) ; if Q = 0 then P : = P + 1 ; write (P) ; Any non-serial interleaving of T1 and T2 for concurrent execution leads to a) A serializable schedule b) A schedule that is not conflict serializable c) A conflict serializable schedule d) A schedule for which a precedence graph cannot be drawn

a) We must redo log record 6 to set B to 10500 10.Consider the following log sequence of two transactions on a bank account, with initial balance 12000, that transfer 2000 to a mortgage payment and then apply a 5% interest. 1. T1 start 2. T1 B old=12000 new=10000 3. T1 M old=0 new=2000 4. T1 commit 5. T2 start 6. T2 B old=10000 new=10500 7. T2 commit Suppose the database system cra shes just before log record 7 is written. When the system is restarted, which one statement is true of the recovery procedure? a) We must redo log record 6 to set B to 10500 b) We must undo log record 6 to set B to 10000 and then redo log records 2 and 3. c) We need not redo log records 2 and 3 because transaction T1 hascommitted. d) We can apply redo and undo operations in arbitrary order because they are idempotent