Wednesday, 3 April 2019
Tuesday, 2 April 2019
QUESTION BANK ADBMS(3340701)
QUESTION BANK ADBMS(3340701)
- Write a short note on :Functional Dependencies.
- List and explain armstrong's axiom rule.
- What is decomposition?Explain Lossy and Lossless join decomposition with example.
- Write algorithm to find redundant functional dependency.
- What is normalization? Give advantages of it.
- Give example and explain 1NF.
- Give example and explain 2NF.
- Give example and explain 3NF.
- Explain ACID properties of transaction.
- Define Transaction.Draw and explain state transition diagram.
- What is concurrency control?State and explain various problems of concurrency control.
- What is deadlock?Explain deadlock detection and prevention technique.
- Explain time-stamp method for concurrency control.
- Explain optimistic method for concurrency control.
- Differentiate commit/rollback.
- Explain grant and revoke commands with example.
- What is lock?Explain levels of lock.
- What is view?Give advantages and types of view.
- Give syntax to create and drop view.
- Explain unique index with example.
- What is sequence?Explain how to create and destroy sequence with example.
- Differentiate SQL v/s PL/SQL.
- Draw and explain generic PL/SQL block.
- Explain for statement with example.
- Describe explicit cursor.Explain various steps to manage explicit cursor.
- What is parameterized cursor?Explain with suitable example.
- List out any four predefined exceptions.Explain DUP_VAL_ON_INDEX exception.
- Explain user defined exception with example.
- Differentiate procedure/function.
- Define package.Write steps to create package in PL/SQL.
- What is trigger.Give advantages and types of trigger.
- Give advantages of using function in PL/SQL.
Levels of Consistency in DBMS
Degree 0
A degree 0 transaction does not overwrite the dirty data of other transactions. In terms of locking protocols, degree 0 requires obtaining a (possibly short) exclusive lock on any data the transaction writes. Degree 0 consistent transactions are unrecoverable since they commit outputs before the end of the transaction.
A degree 0 consistent transaction always obtains an exclusive lock before writing.
Degree 1
Degree 1 consistency does not overwrite the dirty data of other transactions also do not commit any writes before the end of the transaction. This requires setting a long (held until the end of the transaction) exclusive lock on any data it writes.Thus transaction T does not make any of its update visible before it commits.
Degree 2
In addition to the requirements for degree 1 consistency, it does not read the dirty data of other transactions. To achieve this it sets a (possibly short) share lock on any data it reads.
Degree 3
A degree 2 consistent transaction may read two different (both committed) values if it reads the same entity twice. A degree 3 consistent transaction takes long exclusive locks on any data it writes, and long share locks on any data it reads.
Subscribe to:
Posts (Atom)