FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.

Slides:



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

1EMC CONFIDENTIAL—INTERNAL USE ONLY Overview of SQL Server 2012 High Availability and Disaster Recovery (HADR) Wei Fan Technical Partner Management – Microsoft.
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.
Understand Database Backups and Restore Database Administration Fundamentals LESSON 5.2.
SQL Server Data Protection and High Availability Anil Desai.
Keith Burns Microsoft UK Mission Critical Database.
Virtual techdays INDIA │ September 2011 High Availability - A Story from Past to Future Balmukund Lakhani │ Technical Lead – SQL Support, Microsoft.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
5. SQL Restore tasks Objectives –Learn howto recover databases from disaster Contents –View database and transaction log backup files –Perform a complete.
Database Backup and Recovery
Backing Up and Restoring Databases Lesson 16. Skills Matrix.
Module 5 Understanding SQL Server 2008 R2 Recovery Models.
Backup and Recovery (2) Oracle 10g CAP364 1 Hebah ElGibreen.
Backup and Recovery Part 1.
Oracle9i Database Administrator: Implementation and Administration
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
National Manager Database Services
Modification is sent by application to SQL Server Modification is sent by application to SQL Server 1 Data pages are located in, or.
Oracle backup and recovery strategy
Chapter 2 Administrating DB Engine. Database Engine  The Database Engine is the core service for storing, processing, and securing data.  It provides.
20 Copyright © 2004, Oracle. All rights reserved. Database Recovery.
Building Highly Available Systems with SQL Server™ 2005 Vineet Gupta Evangelist – Data and Integration Microsoft Corp.
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
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 11: Designing a Data Recovery Solution for a Database MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study.
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.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
DATABASE MIRRORING  Mirroring is mainly implemented for increasing the database availability.  Is configured on a Database level.  Mainly involves two.
Rajib Kundu Agenda Definitions Failover Cluster Database Snapshots Log shipping Database Mirroring.
Module 6 Backup of SQL Server 2008 R2 Databases. Module Overview Backing up Databases and Transaction Logs Managing Database Backups Working with Backup.
1 Data Guard. 2 Data Guard Reasons for Deployment  Site Failures  Power failure  Air conditioning failure  Flooding  Fire  Storm damage  Hurricane.
MS SQL by: Bryan Bankhead CIS 407. General Concepts  Backing up and Restoring databases and transaction logs is a way that SQL Server provides protection.
Module 13 Implementing Business Continuity. Module Overview Protecting and Recovering Content Working with Backup and Restore for Disaster Recovery Implementing.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
High Availability in DB2 Nishant Sinha
Backing Up and Restoring Databases by Using the SQL Server 2000.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
Data Disaster Recovery Planning Greg Fibiger 1/7/2016.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
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.
Digging Out From Corruption Eddie Wuerch, MCM - Principal, Database Performance - Salesforce Marketing Cloud Data protection and loss recovery with SQL.
Backing Up and Restoring Databases Advanced Database Dr. AlaaEddin Almabhouh.
William Durkin A Gourmet Menu of SQL Server High Availability Options.
AlwaysOn In SQL Server 2012 Fadi Abdulwahab – SharePoint Administrator - 4/2013
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 recovery contd…
SQL Backups for Beginners by Mark Gordon
Curacao SQL Saturday June 11, 2016
Navigating the options for Data Redundancy
AlwaysOn Mirroring, Clustering
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Always on HA SQL Server Always ON feature is the new comprehensive high availability and disaster recovery solution which increases application availability.
SQL Server High Availability Amit Vaid.
Oracle9i Database Administrator: Implementation and Administration
Active Secondary: Enabling Backup On Secondary
AlwaysOn Availability Groups
Transaction Log Internals and Performance David M Maxwell
Performing Database Recovery
Distributed Availability Groups
Chapter 5 The Redo Log Files.
Ch 10. Maintaining and Automating SQL Server
Designing Database Solutions for SQL Server
Presentation transcript:

FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1

FlareCo Ltd Database Mirroring. What is it? Is a mixture of replication and log shipping It moves database transactions from one SQL Server database to another SQL Server database on a different instance of SQL Server. This mirrored copy is a standby copy and can not be accessed directly; it is used only for a failover situation Slide 2 Database Mirroring

FlareCo Ltd Database Mirroring: How does it work? At least 2 instances of SQL Server Primary server is the "principal" – This is the LIVE database Secondary server is the "mirror.“ – This is the STANDBY As transactions are written to the principal database they are also sent and written to the mirrored database. Slide 3 Database Mirroring

FlareCo Ltd Three modes of operation High Availability: – synchronizes transaction writes on both servers and enables automated failover. – Needs a witness server to act as arbiter. High Protection: – synchronizes transaction writes on both servers, but failover is manual. High Performance: – Doesn’t care if the writes are synchronized on both servers, so is faster. – assumes that everything is going to complete successfully on the mirror. Slide 4 Database Mirroring

FlareCo Ltd Relative merits Automatic failover to a secondary copy of your data is the real benefit of Database Mirroring. – So most implementation will probably use the High Availability mode. The other options still offer a built-in process for failing over, but require manual intervention Slide 5 Database Mirroring

FlareCo Ltd The process Without Mirroring: When a user makes a change to a database: – Change is stored in the Log Buffer – Log Buffer is written to the Transaction Log This is called Hardening – Changes that have been written to the Transaction Log are Flushed (written) to the database Slide 6 Database Mirroring

FlareCo Ltd The process With Mirroring: When a user makes a change to a database: – SQL Server stores the change in the database’s log file – Log buffer is written to the transaction log AND principal server copies log buffer to the mirror server – Mirror server hardens the transaction log – Changes are then flushed to the principal server’s database – Changes in the transaction log on the mirror server are replayed against the mirror database, making it a copy of the principal Slide 7 Database Mirroring

FlareCo Ltd Slide 8

FlareCo Ltd First we shall produce a copy on the mirror server by backing up the sales database from the principal machine Then we shall set up the mirror environment Slide 9 Database Mirroring

FlareCo Ltd The backup Slide 10 Database Mirroring

FlareCo Ltd Backup the Database File Slide 11 Note name and directory for backup Database Mirroring

FlareCo Ltd Backup the Transaction Log Slide 12 Database Mirroring

FlareCo Ltd Restore the backup Slide 13 Database Mirroring

FlareCo Ltd Slide 14 Database Mirroring

FlareCo Ltd Slide 15 Database Mirroring

FlareCo Ltd Slide 16 Database Mirroring

FlareCo Ltd Set up the mirroring Slide 17 Database Mirroring

FlareCo Ltd Click on Configure Security Slide 18 Database Mirroring

FlareCo Ltd Slide 19 Database Mirroring

FlareCo Ltd Slide 20 Database Mirroring

FlareCo Ltd Leave accounts clear Slide 21 Database Mirroring

FlareCo Ltd Slide 22 Database Mirroring

FlareCo Ltd Slide 23 Database Mirroring

FlareCo Ltd Don’t start Mirroring Slide 24 Database Mirroring

FlareCo Ltd Slide 25

FlareCo Ltd A note about recovery models full recovery, simple recovery and bulk-logged recovery. The recovery models determine how much data loss is acceptable in case of a failure and what types of backup and restore functions are allowed. Slide 26 Log Shipping

FlareCo Ltd Simple The simple recovery model allows you to recover data only to the most recent full database or differential backup. Transaction log backups are not available because the contents of the transaction log are truncated each time a checkpoint is issued for the database. Slide 27 Log Shipping

FlareCo Ltd Full The full recovery model uses database backups and transaction log backups to provide complete protection against failure. Along with being able to restore a full or differential backup, you can recover the database to the point of failure or to a specific point in time. All operations, including bulk operations such as SELECT INTO, CREATE INDEX and bulk- loading data, are fully logged and recoverable. Slide 28 Log Shipping

FlareCo Ltd Bulk Logged Bulk-Logged The bulk-logged recovery model provides protection against failure combined with the best performance. SELECT INTO, bulk-load operations, CREATE INDEX as well as text and image operations are not logged Under the bulk-logged recovery model, a damaged data file can result in having to redo work manually based on the operations that are not fully logged Slide 29 Log Shipping

FlareCo Ltd Use Simple when – Your data is not critical. – Losing all transactions since the last full or differential backup is not an issue. – Data is derived from other data sources and is easily recreated. – Data is static and does not change often. – Space is limited to log transactions. (This may be a short-term reason, but not a good long-term reason.) Slide 30 Log Shipping

FlareCo Ltd Bulk Logged when – Data is critical, but logging large data loads bogs down the system. – Most bulk operations are done off hours and do not interfere with normal transaction processing. – You need to be able to recover to a point in time. Slide 31 Log Shipping

FlareCo Ltd Full when – Data is critical and no data can be lost. – You always need the ability to do a point-in-time recovery. – Bulk-logged activities are intermixed with normal transaction processing. – You are using replication and need the ability to resynchronize all databases involved in replication to a specific point in time. Slide 32 Log Shipping

FlareCo Ltd Log Shipping Copies transactions from a Primary Server to one or more Secondary Servers. Slide 33 Log Shipping

FlareCo Ltd Server roles in Log Shipping Primary – The production server All log shipping takes place on this machine Secondary – Holds the standby copy of the database Initialise by restoring a backup from the primary – Use NORECOVERY or STANDBY option – STANDBY allows users read-only access to the database while backups are restored Monitor – Tracks log shipping details Slide 34 Log Shipping

FlareCo Ltd Jobs Four jobs are involved in Log Shipping Backup – Runs on primary server every 2 mins by default Copy – Runs on each secondary server just after the backup completes Restore – Restores on the secondary servers Alert – Optional – runs on the monitor server – Raises alerts on primary and secondary servers Slide 35 Log Shipping

FlareCo Ltd Mirroring vs Log Shipping MirroringLog Shipping Database log buffer is copied from one server to another and then replayed Transaction log backups are sent to one or more secondary servers and then restored on each secondary server One copy of original databaseMultiple copies on multiple servers Provides immediate restoreDelayed restore – Allows you to avoid logical errors Slide 36 Log Shipping

FlareCo Ltd Slide 37

FlareCo Ltd Change the Recovery model to FULL Backup the AdventureWorks database from the principal and restore it on the secondary server Ship the logs to the second instance Slide 38 Log Shipping

FlareCo Ltd Changing the Recovery Model Slide 39 Log Shipping

FlareCo Ltd Backup the database Slide 40 Log Shipping

FlareCo Ltd Backup the Transaction Log Slide 41 Log Shipping

FlareCo Ltd Restore the database to the secondary server Slide 42 Log Shipping

FlareCo Ltd Configure Log Shipping Slide 43 Log Shipping

FlareCo Ltd Slide 44 Log Shipping

FlareCo Ltd Slide 45 Log Shipping

FlareCo Ltd Slide 46 Log Shipping

FlareCo Ltd Slide 47 Log Shipping

FlareCo Ltd Click OK to configure the log shipping Slide 48 Log Shipping

FlareCo Ltd Test the shipping Slide 49 Log Shipping

FlareCo Ltd Slide 50 Wait 5 minutes and then check to see that your record has been shipped t o the secondary database Log Shipping

FlareCo Ltd Slide 51