Module 1: Exploring Replication. Overview Understanding SQL Server Replication Setting Up Replication Understanding Agents in Replication Securing Replication.

Slides:



Advertisements
Similar presentations
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Advertisements

Module 5: Performing Administrative Tasks. Overview Configuration Tasks Routine SQL Server Administrative Tasks Automating Routine Maintenance Tasks Creating.
© 2011 Autodesk Go Big or Go Home! Part 1 – Large Scale Autodesk Vault Deployments Irvin Hayes Jr. Technical Product Manager.
11 CONFIGURING AND MANAGING SHARED FOLDER SECURITY Chapter 8.
Module 20 Troubleshooting Common SQL Server 2008 R2 Administrative Issues.
SQL Server Replication
Moving data using replication Anthony Brown
6.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 1: Introduction to Windows Server 2003.
Hands-On Microsoft Windows Server 2003 Administration Chapter 3 Administering Active Directory.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 1: Introduction to Windows Server 2003.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 10: Server Administration.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
Passage Three Introduction to Microsoft SQL Server 2000.
1 Chapter Overview Transferring and Transforming Data Introducing Microsoft Data Transformation Services (DTS) Transferring and Transforming Data with.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication.
Module 13 Automating SQL Server 2008 R2 Management.
Overview What is SQL Server? Creating databases Administration Security Backup.
SQL Server Replication
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory, Enhanced Chapter 7: Active Directory Replication.
SQL Server Replication By Karthick P.K Technical Lead, Microsoft SQL Server.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring, Managing, and Troubleshooting Resource Access.
9 Chapter Nine Extracting and Transforming Data with SQL Server 2000.
1 Group Account Administration Introduction to Groups Planning a Group Strategy Creating Groups Understanding Default Groups Groups for Administrators.
Module 4: Implementing Transactional Replication.
Module 7: Implementing Sites to Manage Active Directory Replication.
Module 4: Planning, Optimizing, and Troubleshooting DHCP
Security David Frommer Principal Architect Business Intelligence Microsoft Partner of the Year 2005 & 2007.
Module 2: Creating Efficient Replication Solutions.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 1: Introduction to Windows Server 2003.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
Module 14 Configuring Security for SQL Server Agent.
Overview – Chapter 11 SQL 710 Overview of Replication
Module 6: Implementing SQL Server Replication in an Enterprise Environment.
1 Chapter Overview Introducing Replication Planning for Replication Implementing Replication Monitoring and Administering Replication.
Planning Server Deployments Lesson 20. Skills Matrix.
Module 11: Introducing Replication. Overview Introduction to Distributed Data Introduction to SQL Server Replication SQL Server Replication Agents SQL.
Module 11: Read-Only Domain Controllers. Overview Describe the Read-Only Domain Controllers role Use Read-Only Domain Controllers.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
Chapter 15: Achieving High Availability Through Replication.
Chapter 12: Designing a Data- Archiving Solution MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
Module 6: Deploying and Managing Software by Using Group Policy.
 Replication is the process of copying database information  Replication is used for:  Backing up your database  Migrating to a new server  Mirroring.
SQL Server 2005 Implementation and Maintenance Chapter 12: Achieving High Availability Through Replication.
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
Module 4 Planning for Group Policy. Module Overview Planning Group Policy Application Planning Group Policy Processing Planning the Management of Group.
1 Chapter Overview Managing Object and Container Permissions Locating and Moving Active Directory Objects Delegating Control Troubleshooting Active Directory.
Module 5: Implementing Merge Replication. Overview Understanding Merge Replication Architecture Implementing Conflict Resolution Planning and Deploying.
Module 4: Managing Access to Resources. Overview Overview of Managing Access to Resources Managing Access to Shared Folders Managing Access to Files and.
Features Of SQL Server 2000: 1. Internet Integration: SQL Server 2000 works with other products to form a stable and secure data store for internet and.
Ch 12. Replication. Replication Place copies of data to a different location Use: Reduce locking conflict when multiple sites want to work on same set.
Module 4: Managing Access to Resources. Overview Overview of Managing Access to Resources Managing Access to Shared Folders Managing Access to Files and.
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
Creating Simple and Parallel Data Loads With DTS.
Module 5: Managing Content. Overview Publishing Content Executing Reports Creating Cached Instances Creating Snapshots and Report History Creating Subscriptions.
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
SQL Server Replication HILARY COTTER SQL SERVER MVP
SQL Database Management
Managing, Storing, and Executing DTS Packages
SQL Replication for RCSQL 4.5
Transactional Replication Deep Dive
Distributed Database Management Systems
Glasgow, SQL Server Meetup
Introduction to transactional replication
Module 4: Managing Access to Resources
Global Catalog and Flexible Single Master Operations (FSMO) Roles
Introduction to Replication
Automating SQL Server Management
Presentation transcript:

Module 1: Exploring Replication

Overview Understanding SQL Server Replication Setting Up Replication Understanding Agents in Replication Securing Replication

Lesson: Understanding SQL Server Replication Business Problems That Require Replication The Publisher-Subscriber Metaphor (Articles and Publications; Subscriptions) Autonomy and Latency Contrasting Replication with Other Data Distribution Methods Course Scenario: The Needs of Northwind Traders

Business Problems That Require Replication Multiple users or locations need copies of the same data Remote users at distant locations Mobile disconnected users Need to improve local performance Physically separate data based on usage Improve response time by data aggregation Distribute database processing across multiple servers Scale out read-only data Partition data based on business unit needs

Multimedia: Microsoft SQL Server Replication This animation reviews the concepts behind SQL Server replication. Snapshot replication Transactional replication Merge replication

The Publisher-Subscriber MetaphorPublisherPublisher Maintains source databases Makes data available for replication DistributorDistributor Receives data changes Stores metadata, history, and receives and stores changes May forward changes to Subscribers Holds copy of dataSubscriberSubscriber

Publications and Articles Articles All tables or parts of tables Views Stored procedures User-defined functions Publications One or more articles Basis of subscription One or more per database SubscriptionSubscription Publication Articles

Publication B Publication A Subscriptions Push subscription Pull subscription

Autonomy and Latency Snapshot replication Transactional replication Updatable snapshot replication Updatable transactional replication Lower autonomy Lower latency Lower autonomy Lower latency Higher autonomy Higher latency Higher autonomy Higher latency Merge replication Distributed transactions

Contrasting Replication with Other Data Distribution MethodsMethodMethod Replication Distributed transactions Distributed queries Back up and restore AutonomyAutonomy Variable Low High Data Transformation Services (DTS) Special use only LatencyLatency Variable, depending on type Low High Special use only

Course Scenario: The Needs of Northwind Traders Distribute their product catalog to regional centers Mobile disconnected sales force must take orders Sales information is reported to headquarters

Lesson: Setting Up Replication Preparing SQL Server for Replication Locating the Distribution Database What Is Snapshot Replication? What Is Transactional Replication? What Is Merge Replication? Guidelines for Choosing a Replication Type Creating Subscriptions by Using SQL Server Enterprise Manager Scripting

Preparing SQL Server for Replication Limit domain permissions to prevent unauthorized access. Configure the SQL Server Service account Need not be run under local or domain administrator account Configure the SQL Server Agent account Need not be run under local or domain administrator account Must have access to each SQL Server involved in replication Assign additional permissions Create a file system share on the Distributor

Practice: Create a Shared Folder for Replication Snapshots Create a shared folder for the replication snapshots

Locating the Distribution Database localDistributorlocalDistributor Subscribers Publisher/ Distributor remoteDistributorremoteDistributor Subscribers Distributor Publisher

Practice: Locating the Distribution Database Select and register a replication partner Install replication, locating the replication database

What Is Snapshot Replication? Distributes data as it appears at a moment in time Does not monitor for updates to the data Takes longer to propagate data modifications A point in time snapshot image

What Is Transactional Replication? Permits immediate replication of data modifications Uses the following steps: Initial snapshot propagation Data modified at Publisher Individual transactions captured Transactions propagated to Subscribers

What Is Merge Replication? Allows sites to work autonomously Merges the updates between sites when they are connected

Guidelines for Choosing a Replication Type Snapshot replication Data does not change often New data need not be immediately distributed Transactional replication Data modifications propagated in seconds Transactions applied completely or not at all Merge replication Multiple Subscribers need to update at various times Site autonomy is critical

Creating Subscriptions By Using SQL Server Enterprise Manager Scripting Replication supports Transact-SQL scripting Use SQL Server Enterprise Manager scripting menus

Lesson: Understanding Agents in Replication Replication Agents SQL Server Agent Scheduling Replication with SQL Server Agent Agent Profiles

Replication Agents SnapshotSnapshot Snapshot Agent Distribution Agent TransactionalTransactional Snapshot Agent Distribution Agent Log Reader Agent Queue Reader Agent MergeMerge Snapshot Agent Merge Agent

SQL Server Agent Starting Agents Scheduled jobs Command line ActiveX controls sqlinitx.dll sqldistx.dll sqlmergx.dll

Scheduling Replication with SQL Server Agent Continuous Least latency Suitable for well-connected Subscribers with available network bandwidth Scheduled Any frequency Suitable for synchronizing data during off-peak hours On-demand Administrator or application explicitly invokes Suitable for mobile disconnected users

Agent Profiles

Lesson: Securing Replication The Role of Agents in Securing Replication Troubleshooting Security Context Issues Securing Replication By Using SQL Server Roles Gaining Access to a Publication Securing the distributor_admin Login

The Role of Agents in Securing Replication SQL Server Agent account provides the security context for running jobs Replication is a series of jobs Initial security context is job owner account Job runs under SQL Server Agent account Managing validation failure SQL Server Service security context User-based security for Windows 9 x

Troubleshooting Security Context Issues Finding information about security context issues SQL Server Agent error log Windows event log Recognizing security context issues Replication Agent does not start Error 8198 Resolving security context issues Change the owner of the replication job Use another login

Securing Replication by Using SQL Server Roles sysadmin can: Enable, modify, or drop a Distributor, Publisher, or Subscriber Enable a database for replication Configure an agent profile Monitor a replication agent sysadmin or db_owner can: Create, drop, modify, or grant access to a publication Create, or delete a subscription Enable snapshots for File Transfer Protocol downloading using the Internet. Initiate cleanup of the distribution database Schedule jobs ( db_owner of the msdb database)

Gaining Access to a Publication

Securing the distributor_admin Login Distributor_admin is a special-purpose login Set a password for the distributor_admin account Change password with: sp_changedistributor_password Distributor tab of the Publisher and Distributor Properties in SQL Server Enterprise Manager

Review Understanding SQL Server Replication Setting Up Replication Understanding Agents in Replication Securing Replication