Bài giảng Hệ quản trị cơ sở dữ liệu: Chương 2 - Huỳnh Học

Chương 2 - Sao lưu và phục hồi dữ liệu. Những nội dung chính được trình bày trong chương này gồm có: Giao tác, mục đích của recovery, các trường hợp lỗi, mô hình recovery, backup. . | Chương 2 Sao lưu và phục hồi dữ liệu Huỳnh Học Email: huynhhoc@ 10/30/2015 3:29 AM © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 1 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. A transaction is an action, or a series of actions, carried out by a single user or an application program, which reads or updates the contents of a database 3 Slide 19- 4 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. To preserve transaction properties (Atomicity, Consistency, Isolation and Durability). Example: If the system crashes before a fund transfer transaction completes | Chương 2 Sao lưu và phục hồi dữ liệu Huỳnh Học Email: huynhhoc@ 10/30/2015 3:29 AM © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 1 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. A transaction is an action, or a series of actions, carried out by a single user or an application program, which reads or updates the contents of a database 3 Slide 19- 4 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. To preserve transaction properties (Atomicity, Consistency, Isolation and Durability). Example: 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. 4 A database may become inconsistent because of a transaction failure (abort) database system failure (possibly caused by OS crash) media crash (disk-resident data is corrupted) The recovery system ensures the database contains exactly those updates produced by committed transactions . atomicity and durability, despite failures Slide 19- 5 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. System failure: System may fail because of addressing error, application error, operating system fault, RAM failure, etc. Media failure: Disk head crash, power disruption, etc. 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 1. Bài giảng “Kiến trúc và cài đặt DBMS, Nguyễn Phi Loan, Khoa CNTT - Trường Đại học CN

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.