0% found this document useful (0 votes)
15 views1 page

Dba Notes1

The document discusses transactions in databases. A transaction is a single logical unit that accesses and modifies database contents using read/write operations. To maintain consistency before and after transactions, databases follow ACID properties - Atomicity, Consistency, Isolation, and Durability.

Uploaded by

Ganesh B Bhosale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Dba Notes1

The document discusses transactions in databases. A transaction is a single logical unit that accesses and modifies database contents using read/write operations. To maintain consistency before and after transactions, databases follow ACID properties - Atomicity, Consistency, Isolation, and Durability.

Uploaded by

Ganesh B Bhosale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Transactions in DB

A Transaction is a single Logical Unit


This unit will access and modify the contents of DB
Transactions access data using read/write operations

In order to maintain consistency in a DB, before and after the transaction,


certain properties are followed.
These are called as ACID Properties

A - Automicity
- Either the entire transaction takes place at once or does'nt happen at all
Transactions do not occur partially
Each Transaction is considered as one unit and either runs to completion or is
not executed at all.
It involves foll. 2 operations :
Abort
Commit
- It is also known as All or Nothing rule

C - Consistency
- means that integrity constraints must be maintained so that the database is
consistent
before and after the transaction.
It also refers to correctness of database

I - Isolation
- This property ensures that multiple transactions can occur concurrently without
leading to
the inconsistency of DB State
- Transactions occur independantly without any interference
- Changes occuring in particular transaction will not be visible to any other
transaction
until that particular change in that transaction is written to memory or has
been committed

- This property ensuures that the execution of transactions concurrently will


result in state that is
equivalent to a state achieved these were executed serially in some order

D - Durability
- This property ensures that once the transaction has completed execution,
the updates and modifications to the database are stored in and written to disk
and
they persist even if a system failure occurs
- These updates now become permanent and are stored in non-volatile memory.
- the effects of the transaction , are never lost

Procedure to test Model System Database


1. create a test2 database (user database)
2. update Model database (create on test table in model database)
3. Create a new database - test3 (user database)
4. Check the Newly created DB (test3)
You will find that whatever in Model is replaceted in test3 DB

You might also like