Upload
kiet
View
67
Download
0
Tags:
Embed Size (px)
DESCRIPTION
SQL Server High Availability. Roy Ernest Database Administrator Pinnacle Sports Worldwide [email protected]. Contents. What is High Availability (HA) What is Disaster Recovery (DR) What are the options of HA Database Mirroring Cons of database mirroring. What is HA. - PowerPoint PPT Presentation
Citation preview
Roy Ernest
Database AdministratorPinnacle Sports Worldwide
SQL Server High Availability
ContentsWhat is High Availability (HA)What is Disaster Recovery (DR)What are the options of HADatabase MirroringCons of database mirroring
Jan 27th, 2011 2Curaçao SQL Server User Group
What is HAHigh availability is the percentage of Uptime
of your applications. HA percentage is defined by your SLA.There are different methods to achieve this.
Jan 27th 2011 3Curaçao SQL Server User Group
Jan 27th, 2011 Curaçao SQL Server User Group 4
What is DR Disaster recovery is the method by which you can minimize the impact of a disaster. Two types of disasters are
1. Physical2. Logical
How can we recover from a disaster?
What are the options available for HA?
Database Clustering.Log Shipping. Replication. Database Mirroring.
Jan 27th, 2011 5Curaçao SQL Server User Group
Database MirroringWhat is Database mirroring?Pros of Database mirroring.Things to watch out for.
ReplicationAdding file group
Jan 27th, 2011 6Curaçao SQL Server User Group
How to setup Database mirroring?Make sure that the DB is in FULL Mode.Take a back up, transaction log back upRestore back up and T-Log to mirror with
NORECOVERYUse GUI from the Primary to set up mirror.
Jan 27th, 2011 7Curaçao SQL Server User Group
Primaryuse mastergoBackup database AdventureWorks to disk ='E:\
ADW.Bak' with init,CompressiongoBackup log AdventureWorks to disk ='E:\
ADW.trn' with init,Compressiongo
Jan 27th, 2011 8Curaçao SQL Server User Group
Secondary. In the Master Database executerestore database AdventureWorks from disk
='E:\ADW.Bak' with norecovery, replace,move 'AdventureWorks_Data' to 'E:\Denali\
Data\AdventureWorks_data.mdf',move 'AdventureWorks_log' to 'C:\Denali\Log\
AdventureWorks_log.ldf', stats = 10go
Jan 27th, 2011 9Curaçao SQL Server User Group
Secondary. In the Master Database executerestore log AdventureWorks from disk ='E:\
ADW.trn' with norecovery, replace,move 'AdventureWorks_Data' to 'E:\Denali\Data\AdventureWorks_data.mdf',
move 'AdventureWorks_log' to 'C:\Denali\Log\AdventureWorks_log.ldf', stats = 10
go
Jan 27th, 2011 10Curaçao SQL Server User Group
Jan 27th, 2011 11Curaçao SQL Server User Group
Jan 27th, 2011 12Curaçao SQL Server User Group
Jan 27th, 2011 13Curaçao SQL Server User Group
Jan 27th, 2011 14Curaçao SQL Server User Group
Jan 27th, 2011 15Curaçao SQL Server User Group
Jan 27th, 2011 16Curaçao SQL Server User Group
Jan 27th, 2011 17Curaçao SQL Server User Group
Jan 27th, 2011 18Curaçao SQL Server User Group
Jan 27th, 2011 19Curaçao SQL Server User Group
Jan 27th, 2011 20Curaçao SQL Server User Group
Jan 27th, 2011 21Curaçao SQL Server User Group
Jan 27th, 2011 22Curaçao SQL Server User Group
CONCLUSION
Jan 27th, 2011 23Curaçao SQL Server User Group
DANKI!Jan 27th, 2011 24Curaçao SQL Server User Group