Huỳnh Học Email: huynhhoc@gmail.com
Chương 2 Sao lưu và phục hồi dữ liệu
NỘI DUNG
1. Giao tác
2. Mục đích của Recovery
3. Các trường hợp lỗi
4. Mô hình Recovery
5. Backup
Transaction
Transaction (giao tác): là một hành động, hoặc một loạt các hành động, thực hiện bởi người dung hoặc chương trình ứng dụng để đọc hoặc cập nhật nội dung của database.
Mục đích của phục hồi dữ liệu
To bring the database into the last consistent state, which existed prior to the failure.
transaction
preserve
properties and
Isolation
Consistency,
To (Atomicity, Durability).
Example:
Slide 19 4
If the system crashes before a fund transfer transaction completes its execution, then either one or both accounts may have incorrect value. Thus, the database must be restored to the state before the transaction modified any of the accounts.
Các trường hợp lỗi
The database may become unavailable for use due to
• Transaction failure: Transactions may fail because of incorrect input, deadlock, incorrect synchronization.
addressing
of
• System failure: System may fail error, because application error, operating system fault, RAM failure, etc.
• Media failure: Disk head crash,
power disruption, etc.
Slide 19 5
Transaction log
Mô hình Recovery
Mô hình Recovery
Mô hình Recovery
Các mô hình Recovery
Các mô hình Recovery
Các mô hình Recovery
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Backup
Tài liệu tham khảo