Module 07. Log Shipping

Similar documents
This article Includes:

Administering and Managing Log Shipping

Restore Scenarios What to keep in mind. Pedro A. Lopes PFE

Configure SQL database mirroring

6231A - Maintaining a Microsoft SQL Server 2008 Database

Availability Guide for Deploying SQL Server on VMware vsphere. August 2009

Explain how to prepare the hardware and other resources necessary to install SQL Server. Install SQL Server. Manage and configure SQL Server.

Backups and Maintenance

Maintaining a Microsoft SQL Server 2008 Database

Administering a Microsoft SQL Server 2000 Database

Scheduling Tansaction Log Restores on a Standby SQL Server

Protecting SQL Server Databases Software Pursuits, Inc.

KEYWORDS InteractX, database, SQL Server, SQL Server Express, backup, maintenance.

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Database Maintenance Guide

Administering a Microsoft SQL Server 2000 Database

Moving the TRITON Reporting Databases

EZManage SQL Pro. Quick guide for installation and implementation

Author: Ryan J Adams. Overview. Policy Based Management. Terminology

MIRRORING: START TO FINISH. Ryan Adams Blog - Twitter

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

Course Syllabus. At Course Completion

SQL Server AlwaysOn (HADRON)

Course Syllabus. Maintaining a Microsoft SQL Server 2005 Database. At Course Completion

Administering Microsoft SQL Server Databases

Supporting MS SQL Server Failover Using Database Mirroring

$99.95 per user. SQL Server 2005 Database Administration CourseId: 152 Skill level: Run Time: 30+ hours (158 videos)

Course. Overview. Length: 5 Day(s) Published: English. IT Professionals. Level: Type: Method: Delivery. Enroll now (CAL)

Implementing a Microsoft SQL Server 2005 Database

PCSchool SQL Backup Tech Tip. SQL Backup Tech Tip. Created in version /9

MCTS Microsoft SQL Server 2005 Implementation & Maintenance

Administering a Microsoft SQL Server 2000 Database

Backup and Restore with 3 rd Party Applications

Getting to Know the SQL Server Management Studio

SQL Server Training Course Content

Course 20462C: Administering Microsoft SQL Server Databases

DB2 9 for LUW Advanced Database Recovery CL492; 4 days, Instructor-led

Implementing Microsoft SQL Server 2008 Exercise Guide. Database by Design

Computer Visions Course Outline

SQL Server Database Administrator s Guide

HPOM 8.1 High Availability Utilizing Microsoft SQL Server Log Shipping

Administering Microsoft SQL Server Databases

Manage Your Shop with Policy Based Management & Central Management Server

Deploy App Orchestration 2.6 for High Availability and Disaster Recovery

CA ARCserve and CA XOsoft r12.5 Best Practices for protecting Microsoft SQL Server

Database Administrator Certificate Capstone Project Evaluation Checklist

Using Delphix Server with Microsoft SQL Server (BETA)

SQL Server 2008 Designing, Optimizing, and Maintaining a Database Session 1

Exam : Transition Your MCTS on SQL Server 2008 to MCSA: SQL Server 2012, Part 2. Title : The safer, easier way to help you pass any IT exams.

SQL Server Mirroring. Introduction. Setting up the databases for Mirroring

Microsoft SharePoint 2010 on VMware Availability and Recovery Options. Microsoft SharePoint 2010 on VMware Availability and Recovery Options

Technical Notes. EMC NetWorker Performing Backup and Recovery of SharePoint Server by using NetWorker Module for Microsoft SQL VDI Solution

MS-55115: Planning, Deploying and Managing Microsoft Project Server 2013

Antelope Enterprise. Electronic Documents Management System and Workflow Engine

A Tutorial on SQL Server CMPT 354 Fall 2007

Database Backup and Restore Mechanism. Presented by : Mary Meladath

Using SQL Database Mirroring to Improve Citrix XenApp Server Farm Disaster Recovery Capabilities

Administering Microsoft SQL Server Databases

ITSM Tools Operation Continuity Plan Example

High Availability Options for Kronos Workforce Central Suite on SQL Server

SQL Server for Database Administrators Course Syllabus

Administering Microsoft SQL Server Databases

MCAPS 3000 DISASTER RECOVERY GUIDE

Protecting Microsoft SQL Server with Asigra Cloud Backup

Course 55115: Planning, Deploying and Managing Microsoft Project Server 2013

Backing Up CNG SAFE Version 6.0

If a database is using the Simple Recovery Model, only full and differential backups of the database can be taken.

$99.95 per user. SQL Server 2008/R2 Database Administration CourseId: 157 Skill level: Run Time: 47+ hours (272 videos)

Module 14: Scalability and High Availability

Planning, Deploying and Managing Microsoft Project Server 2013

ADMINISTERING MICROSOFT SQL SERVER DATABASES

White Paper. EMC REPLICATION MANAGER AND MICROSOFT SQL SERVER A Detailed Review

Administering Microsoft SQL Server Databases

Exam Number/Code : Exam Name: Name: PRO:MS SQL Serv. 08,Design,Optimize, and Maintain DB Admin Solu. Version : Demo.

Recover a CounterPoint Database

Backup and Restore Back to Basics with SQL LiteSpeed

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases 20462C; 5 days

Microsoft SQL Database Administrator Certification

MOC 20462C: Administering Microsoft SQL Server Databases

How to protect, restore and recover SQL 2005 and SQL 2008 Databases

Appendix A Core Concepts in SQL Server High Availability and Replication

EMC APPSYNC AND MICROSOFT SQL SERVER A DETAILED REVIEW

How to Copy A SQL Database SQL Server Express (Making a History Company)

Administering Microsoft SQL Server 2012 Databases

If you have questions or need assistance, contact PCS Technical Services using the contact information on page 10.

Microsoft Administering Microsoft SQL Server Databases

SQL Server AlwaysOn. Michal Tinthofer 11. Praha What to avoid and how to optimize, deploy and operate.

How to Perform a Manual High Availability Failover

6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

SQM. Maintaining Microsoft SQL for Broadcast Engineers. Training Course Outline

Course: Administering Microsoft SQL Server Databases Overview

Moving the Web Security Log Database

Beginning SQL Server Administration. Apress. Rob Walters Grant Fritchey

High Availability Essentials

Contents. SnapComms Data Protection Recommendations

Industry White Paper. Ensuring system availability in RSView Supervisory Edition applications

MS SQL Server 2014 New Features and Database Administration

Transcription:

Module 07 Log Shipping

Agenda Log Shipping Overview SQL Server Log Shipping Log Shipping Failover 2

Agenda Log Shipping Overview SQL Server Log Shipping Log Shipping Failover 3

Log Shipping Overview Definition Purpose Log Shipping Operations Log Shipping Mechanisms Considerations Transaction Log Chain

Definition Log shipping is an automated method of maintaining a warm standby server Based on SQL Server's log backup and restore architecture It is relatively low-tech and inexpensive: Available in all SQL Server Editions except Express and SQL Everywhere (Mobile) Log Shipping can be custom coded in T-SQL

Purpose Log shipping aims to automate the maintenance of a warm standby server It 'ships' (copies and restores) a production server's transaction logs to a standby server The standby is usually a second database server that is ready to take the place of the production server if it fails. The shipped-to server is often called a 'warm' standby If the standby server's copy of the production database is kept current within minutes

Log Shipping Basics Primary DB (recovered) Full Backup Secondary DB Secondary DB (unrecovered) TL Backup TL Backup End

Log Shipping Operations Initialize a secondary server database from a backup With STANDBY or NORECOVERY Start a series of transaction log backups to disk Copy the disk files to the secondary server Restore the log files to the secondary database in sequence With STANDBY or NORECOVERY

Considerations You can ship from one primary to many secondary databases By default failover is manual only You can add custom code for a controlled failover You can set up alerts for detecting backup, copy or load failures

Transaction Log Chain Log shipping depends on maintaining a continuous log sequence a transaction log chain Transactions are numbered with LSNs (Log Sequence Numbers) A freshly restored database has a maximum LSN in its log The very next backup must begin its LSN at that or an earlier value Each log backup file contains a discrete set of ascending LSNs The next log backup begins right after the maximum value of the previous log backup When restoring a series of transaction log backup files: The transaction log sequence of LSNs must remain unbroken Don t break the chain of log backup files

Agenda Log Shipping Overview SQL Server Log Shipping Log Shipping Failover 11

Basic Features of SQL Server Log Shipping Uses tables and stored procedures in the msdb database Each server s msdb contains a complete set Invokes the executable sqllogship.exe for some operations Provides GUI support for setup and monitoring Supports an optional monitor server

Requirements Must have any edition of SQL Server except Express and Everywhere Ensure that the primary database to be log shipped is in the FULL or BULK-LOGGED recovery model The SIMPLE recovery model does not permit transaction log backups, so it is not compatible with log shipping Ensure that all servers have the same serverlevel collations Especially if they are meant as standby servers

Planning Identify the participants Primary database and server Secondary databases and servers Optional monitor server Create a file share to hold the transaction log backup files Preferably on the primary server locally Optionally on a shared location Decide on a transaction log backup schedule The secondary will be average twice the backup interval out of date Create a folder on each secondary server for copies of log backup files

Initializing the Secondary Manual Initialization Take a full database backup of the primary database to disk Restore that backup to the secondary server(s) without recovery Automatic Initialization Use the Management Studio interface. For larger systems, you should use a manual method of initialization. May require transport to a remote site May require that backups occur within a certain time interval

Enabling Log Shipping From Management Studio Use the Properties dialog of the primary database to initialize log shipping Optionally use the dialogs to initialize the secondary database from a database backup

Testing Log Shipping Use Windows Explorer to observe flow of transaction log files Make changes to the primary database and ensure they propagate to the secondary databases Requires restoring using STANDBY to query

Monitoring Log Shipping The log shipping monitor server is a third location that can monitor multiple log shipping pairs Use the Log Shipping Status Report in Management Studio for graphical viewing

Agenda Log Shipping Overview SQL Server Log Shipping Log Shipping Failover 19

Log Shipping Failover Types of Failover Bringing the Secondary Database Online Swapping Roles

Types of Failover Uncontrolled A sudden loss of the primary database or server requires that the secondary database come into service Controlled Both servers are intact but you wish to change the direction of log shipping.

Bringing the Secondary Database Online If the primary server becomes unavailable Disable or remove the log shipping jobs on the secondary server Recover the secondary database After recovery, you must manually ensure that Logins and permissions are synchronized Required jobs and support objects in other databases are in place The application can connect to the new server

Swapping Roles Stop all transactions on the primary database or wait for them to complete Disable the transaction log backup job on the primary Wait for all files to be copied and loaded on the secondary Take one last transaction log backup of the primary database Without recovery, leaving it unrecovered Not the same as the 'tail of the log' Apply that last log backup to the secondary database With recovery, so that it is now ready for activity Establish log shipping in the opposite direction

Review Log Shipping Overview SQL Server Log Shipping Log Shipping Failover 24

Question rdyess@solidq.com

Module 7 Demo Configuring and Failing Over Log Shipping