Download presentation
Presentation is loading. Please wait.
1
Introduction to transactional replication
Troy Gallant
2
Troy Gallant DBA, International software development company, Jacksonville, FL Previously developer and business analyst Twitter: “GratefulDBA” Facebook, LinkedIn
4
What is Replication? Replication is the process of sharing information between servers to ensure that data is consistent and reliable between systems.
5
Magazine Industry Metaphor
A magazine publisher produces one or more publications A publication contains articles The publisher either distributes the magazine directly or uses a distributor Subscribers receive publications to which they have subscribed
6
Why Replicate? Fault tolerance / Disaster Recovery
Application requirements Performance gains Data distribution
7
Fault Tolerance / Disaster Recovery
Local or regional Solutions Clustering Log Shipping Mirroring Replication
8
Application Requirements
Some applications require data consolidation Point of Sale applications (POS) Sales Force applications (SFA)
9
Performance Gains Offload for reporting
Completely different index structures Load distribution 1000 users using 1 server or… 100 users using 10 servers? “Worker nodes” for batch processing
10
Data Distribution Distribute to various environments Staging
Development Warehouse
12
Alternatives to Replication
} Distributed Transactions over Linked Servers Triggers DTS / SSIS Transaction Level } Article/Table Level
13
Alternatives to Replication - 2
} Backup/Restore Log Shipping SQL Server Mirroring Clustering Software Data Mirroring Hardware Data Mirroring } Database Level Server/Disk Array Level
14
Types of SQL Server Replication
Snapshot Transactional Merge
15
Snapshot Replication PUBLISHER SUBSCRIBER
16
Transactional Replication
PUBLISHER SUBSCRIBER
17
Merge Replication PUBLISHER SUBSCRIBER
18
What can we replicate? Full or subsets of tables Partitioned tables
Stored procedure schema Views / Indexed Views UDT’s Functions Full-text indexes Schema objects (triggers, constraints, etc.) DDL
20
TR Capabilities - SQL Server 2000
Subscriber only MSDE 2000 Personal Fully supported Developer Standard Enterprise
21
TR Capabilities - SQL Server 2005
Subscriber only Express Express w/ Adv Services Fully Supported Workgroup* Standard Developer Enterprise
22
TR Capabilities - SQL Server 2008
Subscriber only Express Advanced Express Tools Express Web Fully supported Workgroup* Standard Enterprise
24
Transactional Replication Topology
PUBLISHER & DISTRIBUTOR SUBSCRIBER
25
Transactional Replication Topology
PUBLISHER DISTRIBUTOR SUBSCRIBER
26
Transactional Replication Topology
DISTRIBUTOR SUBSCRIBER PUBLISHERS
27
Transactional Replication Topology
DISTRIBUTOR PUBLISHERS SUBSCRIBERS
28
Transactional Replication Topology
SUBSCRIBER PUBLISHER & DISTRIBUTOR PUBLISHER & DISTRIBUTOR
29
Trans. Replication Agents
Snapshot Log Reader Distribution
30
Push Subscription AGENT DISTRIBUTOR SUBSCRIBER
31
Pull Subscription AGENT DISTRIBUTOR SUBSCRIBER
32
Implementation Considerations
Define sever roles What needs to be replicated? Agents Agent profile settings Security Identity columns Collation Triggers / Constraints TEXT & IMAGE data
33
Physical Implementation
Define/configure the distributor Define/configure the publications Define the subscriptions Push from distributor Pull from subscriber
34
Monitoring Replication
Replication Monitor Agents active Validate throughput Changing settings Perfmon Stored procs Sp_help_agent_profile Sp_help_agent_parameter
36
Questions? http://www.troygallant.com Twitter: “GratefulDBA”
Facebook, LinkedIn
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.