Thiết kế quản trị Cơ sở dữ liệu - Notes 11 (HUST) GV. Vũ Tuyết Trinh
- ページ数
- 11
- 形式
- サイズ
- 275 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ề Concurrency trong quản trị cơ sở dữ liệu, bao gồm các khái niệm Transaction, ACID Properties, Concurrency Control, Locking mechanism và 2-Phase Locking. Tài liệu cung cấp các ví dụ minh họa chi tiết về các vấn đề đồng thời xảy ra khi nhiều giao dịch truy cập cơ sở dữ liệu cùng một lúc.
- ドキュメント名
- Thiết kế quản trị Cơ sở dữ liệu - Notes 11 (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 trình bày về quản lý đồng thời trong CSDL, giải thích các thuộc tính ACID, các khái niệm về giao dịch, lập lịch, tính khả nối tuần tự và cơ chế khóa 2 pha để đảm bảo tính toàn vẹn dữ liệu khi có nhiều giao dịch truy cập cùng lúc.
- 目次
- このドキュメントに明確な目次はありません。
- ページ数
- 11 ページ
- アップロード者
- lienhejb
説明
Trích nội dung tài liệu
Concurrency Vu Tuyet Trinh trinhvt@it-hut.edu.vn Department of Information Systems, Faculty of Information Technology Hanoi University of Technology Example 500USD Account A Account B read(A) If A > 500 then B:=B+500 A:=A-500 Crash What happen ??? 2 fb.com/groups/ 1 Transaction A sequence of read and write operations on data items that logically functions as one unit of work Assuring data integrity and correction ACID Properties Concurrency Control Atomicity Consistency Isolation Durability Recovery 3 Automicity guarantee that either all of the tasks of a transaction are performed or none of them are Example T: Read(A,t1); If t1 > 500 { Read(B,t2); t2:=t2+500; Write(B,t2); t1:=t1-500; Write(A,t1); } crash 4 fb.com/groups/ 2 Consistency ensures that the DB remains in a consistent state before the start of the transaction and after the transaction is over Example A+B = C T: Read(A,t1); If t1 > 500 { Read(B,t2); t2:=t2+500; Write(B,t2); t1:=t1-500; Write(A,t1); } A+B = C 5 Isolation ability of the application to make operations in a transaction appear isolated from all other operations. Example A= 5000, B= 3000 T: Read(A,t1); If t1 > 500 { Read(B,t2); t2:=t2+500; Write(B,t2); t1:=t1-500; Write(A,t1); } T’: A+B (= 5000+3500) (A+B = 4500+3500) 6 fb.com/groups/ 3 Durability guarantee that once the user has been notified of success, the transaction will persist, and not be undone Ví dụ: A= 5000, B= 3000 T: Read(A,t1); If t1 > 500 { Read(B,t2); t2:=t2+500; Write(B,t2); t1:=t1-500; Write(A,t1); } crash 7 A= 4500, B=3500 Transaction States 8 fb.com/groups/ 4 Transaction Management Interfaces Begin Trans Commit () Abort() Savepoint Save() Rollback (savepoint) (savepoint = 0 ==> Abort) 9 Concurrency Control Objective: ensures that database transactions are performed concurrently without the concurrency violating
よくある質問
このドキュメントは無料ですか?
はい。「Thiết kế quản trị Cơ sở dữ liệu - Notes 11 (HUST) GV. Vũ Tuyết Trinh」は無料です。ログインして「ダウンロード」をクリックするだけで、元のファイルを取得できます。
このドキュメントは何ページありますか?
このドキュメントは 11 ページあります(Cơ sở dữ liệu コース用)。ダウンロードする前にオンラインでプレビューできます。
ダウンロードする前にプレビューできますか?
はい。このページにあるオンラインリーダーでドキュメントをプレビューし、その後ダウンロードするかどうかを決めることができます。
Thiết kế quản trị Cơ sở dữ liệu - Notes 11 (HUST) GV. Vũ Tuyết Trinh
プレビューを生成中...
Trích nội dung tài liệu
Concurrency Vu Tuyet Trinh trinhvt@it-hut.edu.vn Department of Information Systems, Faculty of Information Technology Hanoi University of Technology Example 500USD Account A Account B read(A) If A > 500 then B:=B+500 A:=A-500 Crash What happen ??? 2 fb.com/groups/ 1 Transaction A sequence of read and write operations on data items that logically functions as one unit of work Assuring data integrity and correction ACID Properties Concurrency Control Atomicity Consistency Isolation Durability Recovery 3 Automicity guarantee that either all of the tasks of a transaction are performed or none of them are Example T: Read(A,t1); If t1 > 500 { Read(B,t2); t2:=t2+500; Write(B,t2); t1:=t1-500; Write(A,t1); } crash 4 fb.com/groups/ 2 Consistency ensures that the DB remains in a consistent state before the start of the transaction and after the transaction is over Example A+B = C T: Read(A,t1); If t1 > 500 { Read(B,t2); t2:=t2+500; Write(B,t2); t1:=t1-500; Write(A,t1); } A+B = C 5 Isolation ability of the application to make operations in a transaction appear isolated from all other operations. Example A= 5000, B= 3000 T: Read(A,t1); If t1 > 500 { Read(B,t2); t2:=t2+500; Write(B,t2); t1:=t1-500; Write(A,t1); } T’: A+B (= 5000+3500) (A+B = 4500+3500) 6 fb.com/groups/ 3 Durability guarantee that once the user has been notified of success, the transaction will persist, and not be undone Ví dụ: A= 5000, B= 3000 T: Read(A,t1); If t1 > 500 { Read(B,t2); t2:=t2+500; Write(B,t2); t1:=t1-500; Write(A,t1); } crash 7 A= 4500, B=3500 Transaction States 8 fb.com/groups/ 4 Transaction Management Interfaces Begin Trans Commit () Abort() Savepoint Save() Rollback (savepoint) (savepoint = 0 ==> Abort) 9 Concurrency Control Objective: ensures that database transactions are performed concurrently without the concurrency violating
- ドキュメント名
- Thiết kế quản trị Cơ sở dữ liệu - Notes 11 (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 trình bày về quản lý đồng thời trong CSDL, giải thích các thuộc tính ACID, các khái niệm về giao dịch, lập lịch, tính khả nối tuần tự và cơ chế khóa 2 pha để đảm bảo tính toàn vẹn dữ liệu khi có nhiều giao dịch truy cập cùng lúc.
- 目次
- このドキュメントに明確な目次はありません。
- ページ数
- 11 ページ
- アップロード者
- lienhejb
コメント (0)
まだコメントはありません。最初のコメントを書きましょう!
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 12 (HUST) GV. Vũ Tuyết Trinh
Thiết kế quản trị Cơ sở dữ liệu - Notes 4 (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)
まだコメントはありません。最初のコメントを書きましょう!