HA/Disaster and Recovery Solution Mirroring Review & Log Shipping



Similar documents
Database Mirroring: High Availability (HA) and Disaster Recovery (DR) Technology

Only for Data Group Students Do not share with outsiders and do not use for commercial purposes.

Install and Configure SQL Server Database Software Interview Questions and Answers

Migrate a Database to Microsoft SQL Server Database

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

This article Includes:

Configure SQL database mirroring

Virtualization and Cloud Computing

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

Module 07. Log Shipping

SQL Server Training Course Content

Supporting MS SQL Server Failover Using Database Mirroring

Administering and Managing Log Shipping

Implementing Microsoft SQL Server 2008 Exercise Guide. Database by Design

How to Perform a Manual High Availability Failover

GoGrid Implement.com Configuring a SQL Server 2012 AlwaysOn Cluster

MTA Course: Windows Operating System Fundamentals Topic: Understand backup and recovery methods File name: 10753_WindowsOS_SA_6.

Sophos for Microsoft SharePoint startup guide

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

Appendix A Core Concepts in SQL Server High Availability and Replication

Installation Instruction STATISTICA Enterprise Small Business

McAfee Endpoint Encryption Hot Backup Implementation

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

Database Backup and Restore Instructions. Version 6.5. Instructions

MIRRORING: START TO FINISH. Ryan Adams Blog - Twitter

Deploy App Orchestration 2.6 for High Availability and Disaster Recovery

Backups and Maintenance

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

JAMF Software Server Installation Guide for Linux. Version 8.6

11. Configuring the Database Archiving Mode.

Configuring High Availability for VMware vcenter in RMS Distributed Setup

Here you can see an example of the command results:

Upgrading Good Mobile Messaging and Good Mobile Control Servers

efolder White Paper: Dedicated File Backup vs. File Sync Backup: 5 Questions MSPs Should Ask to Determine the Best Backup Solution for Their Clients

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

Administering a Microsoft SQL Server 2000 Database

SQL Server for Database Administrators Course Syllabus

High Availability for Internet Information Server Using Double-Take 4.x

SafeCom G2 Enterprise Disaster Recovery Manual

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

Metalogix SharePoint Backup. Advanced Installation Guide. Publication Date: August 24, 2015

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

High Availability for VMware GSX Server

High Availability & Disaster Recovery Development Project. Concepts, Design and Implementation

JAMF Software Server Installation Guide for Windows. Version 8.6

Database Maintenance Guide

ONLINE BACKUP MANAGER MS EXCHANGE MAIL LEVEL BACKUP

Backup Exec Private Cloud Services. Planning and Deployment Guide

Microsoft SQL Server Installation Guide

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

SQL Server 2012/2014 AlwaysOn Availability Group

Contents. SnapComms Data Protection Recommendations

RDS Online Backup Suite v5.1 Brick-Level Exchange Backup

Sanovi DRM for Oracle Database

How to Configure Microsoft System Operation Manager to Monitor Active Directory, Group Policy and Exchange Changes Using NetWrix Active Directory

Backup and Restore with 3 rd Party Applications

Microsoft SQL Server Installation Guide

Rentavault Online Backup. MS Exchange Mail Level Backup

Administering a Microsoft SQL Server 2000 Database

Technical Notes TECHNICAL NOTES. Release number 8.2 Service Pack REV 01. January, 2015

QUANTIFY INSTALLATION GUIDE

Database Mirroring & Snapshots SQL Server 2008

High Availability for Oracle 10g Using Double-Take

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

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

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

Microsoft SQL Database Administrator Certification

Preface Introduction... 1 High Availability... 2 Users... 4 Other Resources... 5 Conventions... 5

SQL Server Database Administrator s Guide

Oracle Data Guard for High Availability and Disaster Recovery

Databoks Remote Backup. MS Exchange Mail Level Backup

Disaster Recovery Planning BlackBerry Enterprise Server v4.0 for IBM Lotus Domino

HP PolyServe Software upgrade guide

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

Manage Licenses and Updates

Cloning Utility for Rockwell Automation Industrial Computers

Installation Instruction STATISTICA Enterprise Server

Installing and Configuring a. SQL Server 2012 Failover Cluster

EISOO AnyBackup 5.1. Detailed Features

Integrating Data Protection Manager with StorTrends itx

DISASTER RECOVERY WITH AWS

Solcon Online Backup. MS Exchange Mail Level Backup

Extending Your Availability Group for Disaster Recovery

Getting Started with Attunity CloudBeam for Azure SQL Data Warehouse BYOL

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

How To Backup SCCM 2012 R2 Server

Integrating Trend Micro OfficeScan 10 EventTracker v7.x

High Availability for Oracle 8 Using Double-Take

Cloud Attached Storage

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

High Availability for Microsoft SQL Server 7.0 Using Double-Take

Health Monitor. Setup and Configuration

Swiss Safe Storage Online Backup MS Exchange Mail Level Backup

Polycom CMA System Upgrade Guide

Disaster Recovery Solution Achieved by EXPRESSCLUSTER

Support Document: Microsoft SQL Server - LiveVault 7.6X

6231A - Maintaining a Microsoft SQL Server 2008 Database

Transcription:

Written by Zakir Hossain, Chief, Data/Report/Apps OPS - Worldwide (Oracle/SQL Server/MySQL) USAID, US Dept. of State CEO, Data Group CS Graduate (OSU), OCP, OCA, MCDBA, MCITP-DBA, Security+, Oracle RAC-Admin, Oracle Backup/Recovery-Admin, Oracle Performance/Monitoring-Admin, Oracle App Server-Admin, System Admin (Windows/RedHat), ITIL V3, SCJP (Sun Certified Java Programmer) Special Note You are not allowed sharing notes, questions/answers with discontinued students and outsiders. If anybody needs to get notes, questions & answers, they need to contact directly with Zakir Hossain..::: NOTE :::.. Altering, printing, and sharing with any training institute/individual or commercial/business use without written permission is 100% prohibited. It is a Federal Copy Right Violation of Intelligence Product. Violators will be prosecuted with the fullest Extent of Federal Law. 1/16

Review: Mirroring Log Shipping Compare Mirroring and Log Shipping Decision Making: Mirroring VS Log Shipping Review: Mirroring: 1. Requirements: a. Servers: Min 2 and for synchronized 3 b. Same version: Except Express Edition c. 32 bit vs 64 bit: Issue?? No issue since storage format is same (Ending is same) d. Service Account: Same service account e. DB Name: Must be same f. Port numbers must be allowed from firewall g. Full Recovery Model for Principal DB 2. Numbers of Servers and Role: a. Roles i. Principal Server Contains source database ii. Mirror Server Contains target database iii. Witness Server forms quorum, monitor the servers 3. Advantages/Disadvantages 4. Operational Mode a. Synchronized: i. High Safety with Automatic Failover ii. High Safety with Manual Failover b. Asynchronized: 5. Failover Process: a. Maintenance: Windows upgrade/sp, HD i. b. Disaster 2/16

6. Steps to configure: a. Check and ensure Full Recovery Model for Principal DB b. Backup Full and Tran c. Copy backup to Mirror Server d. Restore on Server with same name using NORECOVER Mode e. Configure Mirroring 7. Software Update (From 2005 to 2008) 8. Apply SP 9. Endpoint: 10. Port numbers: 5021/22/23 11. Security Log Shipping: - Available since 2000 Log Shipping: Automated process to move Log records from one server to another sever and restore them automatically - DB name secondary could be same or could have any name - Could have multiple copies of principal db on multiple servers - 32 bit and 64 does not matter - 3 Jobs are required besides Alert job: o Backup job: LSBackup_DB_Name: Primary Server Example: LSBackup_CTS o Copy job: LSCopy_Primary_Instance\Secondary_Instance_DB_Name: Secondary Server Example: LSCopy_DGCLUSTERLAB01\DG_INST212_CTS o Restore Job: LSRestore_ Primary_Instance\Secondary_Instance_DB_Name: Secondary Server 3/16

Example: LSRestore_DGCLUSTERLAB01\DG_INST212_CTS o Alert Job: LSAlert_Instance_Name: Primary Server Example: LSAlert_DG_INST210 o Alert Job: LSAlert_Instance_Name: Secondary Server Example: LSAlert_DG_INST212 - Can combine 2005 and 2008 or above. However, older version must be principal - Monitoring Jobs (Alert): o Consider No monitoring Server: 2 Alerts jobs 1 on Principal and 1 Secondary as mentioned above o Consider monitoring Server exist: 1 alert job will be created on Monitor server o Can alert based on configuration Email, text, paging, net send Requirements - Servers: 2 Required, 3 (Monitoring Server) Optional - Version: all except Express - DB Recovery - Full - DB Name does not have to be same - Agent must be running - Accounts: o Must need to have write on backup directory o Copy job account Read permission on backup directory and write permission on Copy Directory o Restore job account Need Read permission on Copy Directory Lab/Project: Log Shipping Doc and Configuration 1. Primary Machine Name: DGCLUSTERLAB01 4/16

2. Primary DB Instance Name: DGCLUSTERLAB01\DG_INST210 3. Primary DB Name: CTS 4. Secondary Server Name: DGCLUSTERLAB01 5. Secondary Instance Name: DGCLUSTERLAB01\DG_INST212 6. Secondary DB Name: CTS 7. Monitoring Server: No Monitoring Server (Best Practice) 8. Account Name: dba 9. Directories: a. Primary Server: LogShipping\Backup\CTS SeverA G:\LogShipping\Backup\CTS Network Path: \\SeverA \ CTS b. Secondary Server: H:\LogShipping\Copy\DB_Name c. 10. Configure Log Shipping 11. Step 5/16

a. Verify Recovery Model set to full b. Tack backup Full and TL c. Copy back file to Secondary Server (Copy) d. Restore the DB using Backup using mode: NORECOVERY (LIKE MIRRORING) OR- Cannot access to db STANDBY Can access to ready only (Cannot modify or insert new 6/16

records in the DB) HA/Disaster and Recovery Solution e. Now configure Log Shipping: 7/16

f. Right click on DB > Properties >Enable as Primary 8/16

g. Configure Primary Server: HA/Disaster and Recovery Solution 9/16

h. Secondary Server Configuration Tab1: Tab 2: 10/16

11/16

Tab 3: 12/16

i. Click OK 13/16

12. Validation/Verification of LS: a. Verify Jobs created or not b. Verify directories for backup and copy job c. Verify transactions d. Examples of transactions: i. Create table ii. Insert records iii. Update iv. Delete 13. Write some programs Job Name: LSBackup_CTS Primary LSAlert_DGCLUSTERLAB01\DG_INST210 Primary LSCopy_DGCLUSTERLAB01\DG_INST212_CTS Secondary LSRestore_DGCLUSTERLAB01\DG_INST212_CTS Secondary 14/16

LSAlert_DGCLUSTERLAB01\DG_INST212 - Secondary Failover Process: Disaster 1. Copy backup files not copied to secondary 2. Find last file restored 3. Restore file not restored in sequence 4. Recover the DB using following command: Restore database CTS WITH RECOVERY 5. Disable jobs Failover Process: Maintenance 1. Copy backup files not copied to secondary 2. Find last file restored 3. Restore file not restored in sequence 4. If server and DB available a. Take another TL using Job & Copy/Restore b. Tale Log backup & Copy/Restore c. Recovery the DB using following command: Restore database CTS WITH RECOVERY 5. Disable jobs 15/16

How to Remove Log Shipping: HA/Disaster and Recovery Solution 16/16