본문 바로가기
Study Note/SQL Developer license

Transaction

by jhleeatl 2024. 4. 22.

Transaction

 

"transaction" refers to a concept representing a series of database operations.

 

Transactions ensure the properties of atomicity, consistency, isolation, and durability (ACID) in the database, which are essential for managing data reliably and securely.

Explanation of each ACID property:

 


1. Atomicity: 

All operations within a transaction must be treated as an indivisible unit, meaning they either all succeed or all fail. If any operation fails, the transaction should be rolled back to its initial state.

 

 


2. Consistency: 

The database must remain in a consistent state before and after the execution of a transaction. This ensures that the integrity constraints of the database are maintained throughout the transaction.

 

 

3. Isolation: 

Transactions should be executed in such a way that they are isolated from one another, meaning the operations of one transaction do not affect the operations of other concurrent transactions. Isolation prevents interference and maintains data integrity.

 


4. Durability: 

Once a transaction is committed and successfully completed, its changes should be permanently stored in the database, even in the event of system failures or crashes. This guarantees that the data remains intact and consistent over time.

 


Transactions are crucial in data analysis for securely managing data operations and conducting necessary analytical tasks while ensuring data integrity and reliability.

'Study Note > SQL Developer license' 카테고리의 다른 글

DML, TCL, DDL, DLC  (0) 2024.05.07
Normalization & Denormalization  (0) 2024.04.22
Waterfall Model & Agile Model  (0) 2024.04.17
Importance of data modeling  (0) 2024.04.17
Modeling  (0) 2024.04.09