Thiết kế quản trị Cơ sở dữ liệu - Notes 12 (HUST) GV. Vũ Tuyết Trinh
- ページ数
- 11
- 形式
- サイズ
- 240 KB
- Trường
- Đại học Bách khoa Hà Nội
- 閲覧数
- 0
- コメント
- 0
- Lượt tải
- 0
プレビューを生成中...
Tài liệu giảng dạy về Crash Recovery trong quản trị cơ sở dữ liệu, bao gồm các khái niệm về transaction log, checkpoint, và hai kỹ thuật recovery chính là Undo-logging và Redo-logging với các quy tắc và ví dụ minh họa.
- ドキュメント名
- Thiết kế quản trị Cơ sở dữ liệu - Notes 12 (HUST) GV. Vũ Tuyết Trinh
- 学校 / コース
- Đại học Bách khoa Hà Nội · Cơ sở dữ liệu
- 著者(ドキュメント内)
- Vu Tuyet Trinh
- 内容
- Tài liệu giới thiệu về phục hồi sau sự cố trong cơ sở dữ liệu, giải thích các loại lỗi, và đi sâu vào hai phương pháp Undo-logging và Redo-logging cùng với các khái niệm liên quan như Transaction Log và Checkpoint.
- 目次
- このドキュメントに明確な目次はありません。
- ページ数
- 11 ページ
- アップロード者
- lienhejb
説明
Trích nội dung tài liệu
Crash Recovery Vu Tuyet Trinh trinhvt@it-hut.edu.vn Department of Information Systems, Faculty of Information Technology Hanoi University of Technology Transaction collection of action that preserve consistency Consistent DB T Consistent DB’ with assumption IF THEN T starts with consistent state + T executes in isolation T leaves consistent state fb.com/groups/ 1 How can constraints be violated? Transaction bug DBMS bug Hardware failure e.g., disk crash Data sharing e.g., T1 and T2 in parallel Failures Events Desired Undesired Expected Unexpected processor CPU memory disk M D fb.com/groups/ 2 Recovery Maintaining the consistency of DB by ROLLBACK to the last consistency state. Ensuring 2 properties Atomic Durability Using LOG Transaction Log A sequence of log record keeping trace of actions executed by DBMS <start T> Log the beginning of the transaction execution <commit T> transaction is already finished <abort T> Transaction is calcel <T, X, v, w> Transaction makes an update actio, before update X=v, after update x = w fb.com/groups/ 3 Transaction Log Handled in main memory and put to external memory (disk) when possible A = 8 16 B = 8 16 Actions Data Log Log Disk Memory Checkpoint Definition: Objective moment where intermediate results and a log record are saved to disk. being initiated at specified intervals minimize the amount of time and effort wasted when restart the process can be restarted from the latest checkpoint rather than from the beginning. Log record <checkpoint> or <ckpt> fb.com/groups/ 4 Undo-logging Step Action t Mem A Read(A,t) t:=t*2 Write(A,t) 8 8 16 16 Mem B Disk A Disk B 8 8 8 8 8 8 8 8 8 1 <start T> 5 Read(B,t) 8 16 16 8 6 t:=t*2 16 16 8 8 8 7 16 16 16 8 8 8 Write(B,t) Flush log 9 Output(A) 16 16 16 16 8 10 Output(B) 16 16 16 16 16
よくある質問
このドキュメントは無料ですか?
はい。「Thiết kế quản trị Cơ sở dữ liệu - Notes 12 (HUST) GV. Vũ Tuyết Trinh」は無料です。ログインして「ダウンロード」をクリックするだけで、元のファイルを取得できます。
このドキュメントは何ページありますか?
このドキュメントは 11 ページあります(Cơ sở dữ liệu コース用)。ダウンロードする前にオンラインでプレビューできます。
ダウンロードする前にプレビューできますか?
はい。このページにあるオンラインリーダーでドキュメントをプレビューし、その後ダウンロードするかどうかを決めることができます。
Thiết kế quản trị Cơ sở dữ liệu - Notes 12 (HUST) GV. Vũ Tuyết Trinh
プレビューを生成中...
Trích nội dung tài liệu
Crash Recovery Vu Tuyet Trinh trinhvt@it-hut.edu.vn Department of Information Systems, Faculty of Information Technology Hanoi University of Technology Transaction collection of action that preserve consistency Consistent DB T Consistent DB’ with assumption IF THEN T starts with consistent state + T executes in isolation T leaves consistent state fb.com/groups/ 1 How can constraints be violated? Transaction bug DBMS bug Hardware failure e.g., disk crash Data sharing e.g., T1 and T2 in parallel Failures Events Desired Undesired Expected Unexpected processor CPU memory disk M D fb.com/groups/ 2 Recovery Maintaining the consistency of DB by ROLLBACK to the last consistency state. Ensuring 2 properties Atomic Durability Using LOG Transaction Log A sequence of log record keeping trace of actions executed by DBMS <start T> Log the beginning of the transaction execution <commit T> transaction is already finished <abort T> Transaction is calcel <T, X, v, w> Transaction makes an update actio, before update X=v, after update x = w fb.com/groups/ 3 Transaction Log Handled in main memory and put to external memory (disk) when possible A = 8 16 B = 8 16 Actions Data Log Log Disk Memory Checkpoint Definition: Objective moment where intermediate results and a log record are saved to disk. being initiated at specified intervals minimize the amount of time and effort wasted when restart the process can be restarted from the latest checkpoint rather than from the beginning. Log record <checkpoint> or <ckpt> fb.com/groups/ 4 Undo-logging Step Action t Mem A Read(A,t) t:=t*2 Write(A,t) 8 8 16 16 Mem B Disk A Disk B 8 8 8 8 8 8 8 8 8 1 <start T> 5 Read(B,t) 8 16 16 8 6 t:=t*2 16 16 8 8 8 7 16 16 16 8 8 8 Write(B,t) Flush log 9 Output(A) 16 16 16 16 8 10 Output(B) 16 16 16 16 16
- ドキュメント名
- Thiết kế quản trị Cơ sở dữ liệu - Notes 12 (HUST) GV. Vũ Tuyết Trinh
- 学校 / コース
- Đại học Bách khoa Hà Nội · Cơ sở dữ liệu
- 著者(ドキュメント内)
- Vu Tuyet Trinh
- 内容
- Tài liệu giới thiệu về phục hồi sau sự cố trong cơ sở dữ liệu, giải thích các loại lỗi, và đi sâu vào hai phương pháp Undo-logging và Redo-logging cùng với các khái niệm liên quan như Transaction Log và Checkpoint.
- 目次
- このドキュメントに明確な目次はありません。
- ページ数
- 11 ページ
- アップロード者
- lienhejb
コメント (0)
まだコメントはありません。最初のコメントを書きましょう!
Thiết kế quản trị Cơ sở dữ liệu - Notes 4 (HUST) GV. Vũ Tuyết Trinh
Slide Cơ sở dữ liệu - GV Nguyễn Hồng Phương
Thiết kế quản trị Cơ sở dữ liệu - Notes 3 (HUST) GV. Vũ Tuyết Trinh
Thiết kế quản trị Cơ sở dữ liệu - Notes 2 (HUST) GV. Vũ Tuyết Trinh
Thiết kế quản trị Cơ sở dữ liệu - Notes 11 (HUST) GV. Vũ Tuyết Trinh
K5 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K2 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K3 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K4 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)
K1 Bộ đề luyện thi Trạng Nguyên Tiếng Việt (NXB DHQG)

コメント (0)
まだコメントはありません。最初のコメントを書きましょう!