12. Database Mirroring How it works Mirror Principal Witness Log Data Data Log Mirror is always redoing – it remains current Application SQL Server SQL Server 2 2 4 5 1 3 >2 >3 Commit
13.
14.
15.
16.
17.
18.
19.
20.
21.
22. Database Snapshots Snapshot On a Mirror Mirror Principal Reporting Clients Database Mirroring Snapshot1 at 1PM Witness Snapshot2 at 2PM
23.
24.
25.
26.
27.
28.
29.
30. Isolation Level Comparison Possible Anomalies Detected and rolled back No “Lost Update”! No Yes No No No No Update Conflict Optimistic No No No Snapshot Pessimistic No No No Serializable Pessimistic Yes No No Repeatable Read Pessimistic Optimistic Yes Yes Yes Yes No No Read Committed 1 Locking 2 Snapshot Yes Yes Yes Read Uncommitted Concurrency Control Phantoms Non-Repeatable Read Dirty Read Isolation Levels