Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
p. 1
What We’re Going to Cover
p. 2
What We’re Going to Cover
p. 3
High Availability
p. 4
High Availability
p. 5
High Availability
p. 6
High Availability
p. 7
High Availability
p. 8
High Availability
p. 9
High Availability
p. 10
In the next video
p. 11
Chapter 10: High Availability
1
p. 1
What We’re Going to Cover
p. 2
Log Shipping Best Practices
p. 3
Log Shipping Best Practices
p. 4
Log Shipping Best Practices
p. 5
Log Shipping Best Practices
p. 6
Log Shipping Best Practices
p. 7
Log Shipping Best Practices
p. 8
Log Shipping Best Practices
p. 9
Log Shipping Best Practices
p. 10
Chapter 10: High Availability
1
p. 1
What We’re Going to Cover
p. 2
Database Mirroring Best
Practices
p. 3
Database Mirroring Best
Practices
p. 4
Database Mirroring Best
Practices
p. 5
Database Mirroring Best
Practices
p. 6
Database Mirroring Best
Practices
p. 7
Database Mirroring Best
Practices
p. 8
Database Mirroring Best
Practices
p. 9
Database Mirroring Best
Practices
p. 10
Chapter 10: High Availability
1
p. 1
What We’re Going to Cover
Overview
p. 2
SQL Clustering Best Practices
p. 3
SQL Clustering Best Practices
p. 4
SQL Clustering Best Practices
p. 5
SQL Clustering Best Practices
p. 6
SQL Clustering Best Practices
p. 7
SQL Clustering Best Practices
p. 8
Chapter 10: High Availability
1
p. 1
What We’re Going to Cover
p. 2
SQL Server Replication
p. 3
SQL Server Replication
• Basic terms:
– Publisher: the source database
– Publication: the tables, views, and stored
procedures that the publisher is publishing
– Subscriber: the database receiving the
changes
– Subscription: how the subscriber receives
the data
– Distributor: the server responsible for
delivering the publication to the subscriber
p. 4
SQL Server Replication
p. 5
SQL Server Replication
p. 6
SQL Server Replication
p. 7
Snapshot Replication
• Snapshot replication:
– Publisher generates a snapshot - a point-in-time
copy of the publication
– Distribution then replaces copy of subscribers’
data with the snapshot
• Typically one-way replication (data entered only at
publisher)
– Analogy: Newspaper industry
p. 8
Snapshot Replication
p. 9
In the next video…
p. 10
Chapter 10: High Availability
1
p. 1
What We’re Going to Cover
Overview
p. 2
Merge Replication
• Merge replication:
– Basic premise: Anyone can change the data
– Transactions are replicated
• Unlike Snapshot replication which replicates entire
snapshot
– Changes are synchronized between all servers
p. 3
Merge Replication
• Merge replication:
– Setup flow:
1. Create the publication and generate the snapshot
2. Distribute snapshot to subscribers
– At this point, Publisher and Subscribers have same data
3. Someone changes the data (could be Pub or Sub)
4. Merge Agent handles merging the data so that, in the
end, everyone has the same data
p. 4
Merge Replication
p. 5
Merge Replication
p. 6
Merge Replication
p. 7
Transactional Replication
• Transactional replication:
– Transactions are replicated between servers
– Transactional can:
• Be one-way: only the Publisher can replicate changes
• By multi-way: changes can occur at any site
– Transactional may or may not have conflict
detection
• Depends on topology
• Rule of thumb: “Last in wins” unless you configure
differently
p. 8
Transactional Replication
p. 9
P2P Transactional Replication
p. 10
P2P Transactional Replication
p. 11
P2P Transactional Replication
p. 12
Let’s demo!
p. 13