It is one of the techniques to create a stand by server. Introduced in SQL 2000,enhanced in 2005. It is a High Availability as well as Disaster recovery.

Slides:



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

Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
Oracle Data Guard Ensuring Disaster Recovery for Enterprise Data
Module 7 Restoring SQL Server 2008 R2 Databases. Module Overview Understanding the Restore Process Restoring Databases Working with Point-in-time Recovery.
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
June 23rd, 2009Inflectra Proprietary InformationPage: 1 SpiraTest/Plan/Team Deployment Considerations How to deploy for high-availability and strategies.
SQL Server Data Protection and High Availability Anil Desai.
Microsoft SQL Server Administration for SAP Database Backup and Restore.
Module 12: Backup and Recovery. Overview Backup and recovery methods available in Oracle and SQL Server 2008 Types of failure Types of recovery Formulating.
Module 5 Understanding SQL Server 2008 R2 Recovery Models.
Implementing High Availability
Module 8 Implementing Backup and Recovery. Module Overview Planning Backup and Recovery Backing Up Exchange Server 2010 Restoring Exchange Server 2010.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
1 Introducing Windows Backup There are different methods for starting Windows 2000 Backup. Requirements for running Windows 2000 Backup All users can back.
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
High-Availability Methods Lesson 25. Skills Matrix.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Chapter 2: Designing Physical Storage MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
© ViSolve.com All rights reserved. Privacy Statement April Oracle Disaster Recovery Implementation A Non-Technical Overview.
DATABASE MIRRORING  Mirroring is mainly implemented for increasing the database availability.  Is configured on a Database level.  Mainly involves two.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
Architecture Rajesh. Components of Database Engine.
Rajib Kundu Agenda Definitions Failover Cluster Database Snapshots Log shipping Database Mirroring.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Module 13 Implementing Business Continuity. Module Overview Protecting and Recovering Content Working with Backup and Restore for Disaster Recovery Implementing.
Configuring Data Protection Chapter 12 powered by dj.
1 Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 15: Reliability and Security in Database Servers Instructor’s.
Speaker Name 00/00/2013. Solution Requirements.
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
High Availability in DB2 Nishant Sinha
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
Backup and Recovery - II - Checkpoint - Transaction log – active portion - Database Recovery.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
1 Chapter Overview Using Standby Servers Using Failover Clustering.
Praveen Srivatsa Director| AstrhaSoft Consulting blogs.asthrasoft.com/praveens |
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.
Backing Up and Restoring Databases Advanced Database Dr. AlaaEddin Almabhouh.
Unit 10 ITT TECHNICAL INSTITUTE NT1330 Client-Server Networking II Date: 2/24/2016 Instructor: Williams Obinkyereh.
Windows Server Failover Clustering (WSFC) with SQL Server.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
AlwaysOn In SQL Server 2012 Fadi Abdulwahab – SharePoint Administrator - 4/2013
SQL Database Management
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.
Database Administration
Navigating the options for Data Redundancy
Always on HA SQL Server Always ON feature is the new comprehensive high availability and disaster recovery solution which increases application availability.
Contained DB? Did it do something wrong?
AlwaysOn Availability Groups 101
Unit 10 NT1330 Client-Server Networking II Date: 8/16/2016
SpiraTest/Plan/Team Deployment Considerations
AlwaysOn Availability Groups
High Availability/Disaster Recovery Solution
Disaster Recovery Done Dirt Cheap Founder Curnutt Data Solutions
Backup & Recovery.
Ch 10. Maintaining and Automating SQL Server
Designing Database Solutions for SQL Server
Presentation transcript:

It is one of the techniques to create a stand by server. Introduced in SQL 2000,enhanced in It is a High Availability as well as Disaster recovery solution. Basic idea The idea is to backup & restore the database and transaction logs from Primary server to Secondary server.

Log shipping allows you to automatically send transaction log backups from a primary database on a primary server instance to one or more secondary databases on separate secondary server instances. The transaction log backups are applied to each of the secondary databases individually. An optional third server instance, known as the monitor server, records the history and status of backup and restore operations and, optionally, raises alerts if these operations fail to occur as scheduled.

3 instances to configure Log shipping 1)Primary 2)Secondary/Standby 3)Monitor Log Shipping Jobs 1)Backup Job (Name-Log Shipping Backup)- created on the primary server instance. It performs the backup operation, logs history to the local server and the monitor server, and deletes old backup files and history information. By default, this job will run every 15 minutes, but the interval is customizable.

2)Copy Job (name-Log Shipping Copy)-created on each secondary server instance. This job copies the backup files from the primary server to a configurable destination on the secondary server and logs history on the secondary server and the monitor server. 3)Restore Job(Name-Log Shipping Restore)-created on the secondary server instance. This job restores the copied backup files to the secondary databases. 4)Alert Job (Name-Log Shipping Alert)-If a monitor server is used, an alert job is created on the monitor server instance

1)Backup the t-Log at the primary server instance 2)Copy the T-log file to the Secondary server Instance 3)Restore the log backup on the secondary server Instance.

1)Both source and target instances of log shipping must be running SQL Server 2005 or 2008 Enterprise Edition, Workgroup Edition or Standard Edition 2)Account(s) running SQL Server service on source and destination instance must have access to the network folder where you will store transaction log backup files. 3)Computers hosting primary and standby SQL Servers must be connected to a network. 4)SQL Server Agent service must be running on both source and destination servers. Log shipping is implemented as a collection of jobs. If SQL Server Agent service isn't running, none of the jobs will execute. Log shipping must be setup at the database level. The database must use either full or bulk logged recovery model. Simple recovery model truncates transaction log during each checkpoint and does not support transaction log backups. Therefore databases that use simple recovery model cannot participate in log shipping 5)It is a good idea to ensure that the Standby server has the same Hardware Configuration as the Primary Server

6. The servers involved in log shipping should have the same case sensitivity settings. * Read/Write permission required --->For SQL service account of Primary for the tran log backup to be successful * Read/Write permission required --->For SQL Agent account of Secondary for the copy job to be successful * Read/Write permission required --->For SQL Service Account of Secondary for the restore job to be successful

Imp Points:1)Standby recovery mode: partial availabilty of database. It completes analysis, Redo but undo files are saved in TUF Format. 2) The log can be shipped to multiple secondary server instances. In such cases, operations Copy and Restore jobs are duplicated for each secondary server instance. 3) A log shipping configuration does not automatically fail over from the primary server to the secondary server. If the primary database becomes unavailable, any of the secondary databases can be brought online manually 4) You can use a secondary database for reporting purposes. 5)Transaction log shipping status: Right click the servername of primary- reports-standard reports-transaction log shipping status.

Manual Failover. 2 Scenarios 1)Machine Fails (Instance unavailable)-There would not be any new backups,so there is nothing to copy. Disable the copy Job. Disable the restore job. Go to Alert Monitor. Check which is the last trn file that was restored. If in the Copy Folder you have any.trn file that has not been restored yet, then restore this file with recovery. 2) Database corrupted (Instance Available): Disable Back up job. Take tail backup in the primary server. Move it to a network folder. Disable copy & restore Jobs. Restore manually.

backup log AdventureWorksLT to disk ='D:\SqlBack\adtail.trn‘ How to restore tailback up. restore database AdventureWorksLT from disk = 'D:\SqlBack\adtail.trn' with recovery How to remove Logshipping DatabaseName-rightclick-properties-uncheck the enable option.All Jobs get deleted Automatically.