SQL Replication for RCSQL Reporting

Slides:



Advertisements
Similar presentations
Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
Advertisements

SQL Server Replication
Installation and Deployment in Microsoft Dynamics CRM 4.0
Unauthorized Reproduction Prohibited SkyPoint Alarm Integration Add-On Using OnGuard Alarms to create events in SkyPoint Also called ‘SkyPoint V0’ CR4400.
Moving data using replication Anthony Brown
Keith Burns Microsoft UK Mission Critical Database.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Hands-On Microsoft Windows Server 2003 Administration Chapter 6 Managing Printers, Publishing, Auditing, and Desk Resources.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 7 Configuring File Services in Windows Server 2008.
vPower Еще возможности 26 СПОСОБО В из 1 копии.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring, Managing, and Troubleshooting Resource Access.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Tutorial 11 Installing, Updating, and Configuring Software
Chapter 2: Designing Physical Storage MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
Copyright© 2003 Avaya Inc. All rights reserved PUBVT Loading and Implementation instructions for the Pre-upgrade, Backup Verification Tool.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Module 2: Creating Efficient Replication Solutions.
SQL2005 Cluster Build. IP Request Request 6 IP Addresses – One for EACH SQL virtual server (2) – One for the cluster – One for Distributed Transaction.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
Guide to MCSE , Enhanced 1 Activity 12-1: Backing Up Files and Folders Using the Backup Utility Objective: To explore the use of Windows Server 2003.
Module 1: Exploring Replication. Overview Understanding SQL Server Replication Setting Up Replication Understanding Agents in Replication Securing Replication.
1 Chapter Overview Introducing Replication Planning for Replication Implementing Replication Monitoring and Administering Replication.
Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
Chapter 12: Designing a Data- Archiving Solution MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
 Replication is the process of copying database information  Replication is used for:  Backing up your database  Migrating to a new server  Mirroring.
Introduction to Windows 10 Windsor Senior Computer Users Group October 12, 2015.
BSG Group - Dau Anh Trong1 Introduction about MS SQL Server 2005.
Managing Applications, Services, Folders, and Libraries Lesson 4.
IT1001 – Personal Computer Hardware & system Operations Week7- Introduction to backup & restore tools Introduction to user account with access rights.
SQL SERVER 2008 Installation Guide A Step by Step Guide Prepared by Hassan Tariq.
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.
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
1 Chapter Overview Using Standby Servers Using Failover Clustering.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
Your current Moodle 1.9 Minimum Requirements Ability to do a TEST RUN! Upgrading Moodle to Version 2 By Ramzan Jabbar Doncaster College for the Deaf By.
Using Grsync with Ubuntu Presented by Dave Mawdsley, DACS Member, Linux SIG August 20, 2008 (making rsync easy with a memory key or a server)
ProgressBook Suite Maintenance
Installing Windows 7 Lesson 2.
Backups for Azure SQL Databases and SQL Server instances running on Azure Virtual Machines Session on backup to Azure feature (manual and managed) in SQL.
DBMS Programs MS SQL Server & MySQL
beas group AG Beas sql guide Martin Heigl CTO
SmartCenter for Pointsec - MI
Installation The Intercompany Integration Solution for SAP Business One Version 2.0 for SAP Business One 9.1 Welcome to the course on the installation.
Module 9: Preparing to Administer a Server
SQL Server and Network Study Setup, Troubleshooting & Training
Guide to Linux Installation and Administration, 2e
SQL Replication for RCSQL 4.5
Transactional Replication Deep Dive
Glasgow, SQL Server Meetup
Navigating the options for Data Redundancy
Disaster Recovery Where to Begin
Title: IT Best Practices with RescueNet
AlwaysOn Availability Groups 101
Installation The Intercompany Integration Solution for SAP Business One Version 2.0 for SAP Business One 9.1 Welcome to the course on the installation.
Transactional Replication A Deeper Dive Drew Furgiuele, Senior DBA IGS
Help! My Replication Has Fallen and We Can't Get it Replicating again
AlwaysOn Availability Groups
Jerald Overstreet, GISP Server Portal SQL Manager Admin
Have you seen this screen?
Performing Database Recovery
CIS MS Windows Operating System
Module 9: Preparing to Administer a Server
Presentation transcript:

SQL Replication for RCSQL Reporting Todd Endicott

Agenda Pro’s and Con’s Pre-Req’s Service Account Setup Replication from backup

Pro’s and Con’s No downtime for end users Less system intensive during setup Sometimes easier to fix VLDB’s Must completely remove and add back in for system upgrades Not DR capable

Pre-Req’s Secondary SQL server Hard Drive space (Virtual Drive recommended) (External?) Replication components installed Service Accounts (Likely bounce of SQL services) Permissions, permissions, permissions

Service Account Windows Service Account (example - ZOLLREPL)

Service Account Must change “Log On” account for SQL and SQL Agent

Service Account Must restart SQL and SQL Agent service for the new Login’s to take effect.

Service Account Repeat steps on “Replicated” SQL server Know where your data will live (Permissions and storage availability are critical to replication performance) Recommend not using the default SQL paths just because of long path name (Example – E:\ZOLLREPL vs. E:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\REPL

Setup Replication The order of the steps is critical to success!! How do we set it up? What happens if things go wrong? Common mistakes/issues How to remove replication

Setup Distribution Database Setup “Distribution” database (Where do I put it? How large will it be? Other considerations?)

Setup Distribution Database Components not installed?

Setup Distribution Database Add necessary components to existing instance.

Setup Distribution Database

Setup Distribution Database

Setup Distribution Database (Several screenshots were skipped in showing this step. Defaults are fine on missing screens) Close the installation and re-launch SQL Management studio Don’t forget to install components on secondary server

Setup Distribution Database

Setup Distribution Database

Setup Distribution Database WARNING!!! (Probably don’t want to do this)

Setup Distribution Database Still wrong!!!

Setup Distribution Database Correct path and permissions

Setup Distribution Database MDF and LDF location

Setup Distribution Database

Setup Distribution Database

Setup Distribution Database

Setup Distribution Database

Distribution Database Where do I find it?

Setup Publication

Setup Publication Start Publication Wizard

Setup Publication Choose RCSQL database

Setup Publication Choose replication type (Transactional publication)

Setup Publication

Setup Publication Some tables WON’T replicate (Missing Primary Keys)

Setup Publication Remove “RescueNet Central Reporting Log” from replicated articles

Setup Publication

Setup Publication

Setup Publication THIS IS DIFFERENT!!!!!

Setup Publication Setup Service Account

Setup Publication

Setup Publication Will automatically use service account for log reader

Setup Publication

Setup Publication Name your publication

Setup Publication Your Article amount may differ

RCSQL Publication

RCSQL Publication Must set subscription to be able to be initialized from a backup. (Publisher properties)

RCSQL Publication Now that Publication is built Run full backup of RCSQL in production (Can be compressed) Where backup is located will be VERY IMPORTANT!! Restore backup to secondary SQL server Give DBO rights to RCSQL on both servers to service account Wait for restore to complete Possibly move BAK file back to production server (Virtual Drive vs. File Copy)

RCSQL Publication Should now have RCSQL on Production server and replicated server Make sure you can access tables on restored databases before proceeding Make sure replicated copy of RCSQL matches in size to the production copy.

Setup Subscription NO GUI? PUSH OR PULL? Check Permissions (Folders and Databases) Subscription Script

Setup Subscription /*At the publisher, run the following command */ USE [RCSQL] GO EXEC sp_addsubscription @publication = 'RCSQL Pub to DSS', @subscriber = 'ITSREPL', @destination_db = RCSQL, @subscription_type ='Push', @sync_type = 'initialize with backup', @article = 'all', @update_mode = 'read only', @subscriber_type = 0, @backupdevicetype ='disk', @backupdevicename = '\\ITSSQL\zollrepl\rcsql.bak' Change backup device name to UNC path.....

Setup Subscription

Setup Subscription

Validate Subscription Where do I find it? Push vs Pull

Validate Subscription

Validate Subscription

Validate Subscription What are the errors?

Validate Subscription Check all tabs for possible errors

Validate Subscription Job Activity Monitor (Note the red X’s)

Validate Subscription Job Activity Monitor (Note the red X)

Validate Subscription After checking permissions, notices I did not add DBO access for service account on production server. (All red X’s are gone)

Validate Subscription A “HAPPY” replication monitor

Validate Subscription Check “Undistributed Commands” tab

What Next? Make change in “RescueNet” Admin to utilize the DSS server Test reports against “Replicated” side and “Production”, validate results When satisfied, move all report functions to the replicated server (Custom reports will need to be manually pointed at report server) If Archiving, Archive first then replicate. Archive server and replication server can be the same server.

Q & A