SlideShare uma empresa Scribd logo
1 de 36
Database Mirroring




                     1
Preparation
• Minimum of two SQL servers
• Principal database/Mirror database
• “Witness” server (used for automatic
  failover)
• Will be done using SQL Server 2005 SP2




                                           2
Types of mirroring
• High availability:
   – Synchronized writes on principal and mirror
   – Automated failover
   – Requires witness server
• High Protection:
   – Synchronized writes on principal and mirror
   – Manual failover
   – No witness server required
• High performance:
   – Not synchronized (assumed writes will be completed on both
     principal and mirror)
   – Forced failover only
   – Witness not required
                                                                  3
Implementation
• Will be using high availability method
• Requires at least three separate instances of SQL Server 2005 SP1
  (Principal, Mirror, Witness)
• Ensure BlackBerry services on all machines are stopped
• Ensure the login credentials for all the SQL servers are the same
• Run the errors.sql script on all SQL servers before proceeding (the
  errors.sql script can be found in the BES installation folder). You can
  also get rid of the final line in the script (the USE database line) as it
  may produce errors. -this is now an obsolete step. Running
  errors.sql is no longer required for DB mirroring.
• It does not matter which servers you use for which purpose (i.e. M1
  can be principal, M2 can be mirror and M3 can be witness for DB1
  while M3 can be principal, M1 can be mirror and M2 can be witness
  for DB2.)



                                                                           4
Implementation contd…
• Login to the SQL Server where your DB
  exists
• Right-click->Properties->Options page
• Select “Full” option under recovery model




                                              5
6
Implementation contd…
• Backup the database
  – Right-click->Tasks->Backup
  – Ensure the backup type is “Full”
  – On the options screen select “Overwrite all
    existing backup sets” to ensure you are not
    appending the backup set to an existing set
  – Optionally you can also check “Verify backup
    when finished” or “Perform checksum before
    writing to media” for verification of data
                                                   7
8
9
Implementation contd…
• Backup the transaction log
   – Right-click->Tasks->Backup
   – Ensure the backup type is “Transaction log”. When restoring on
     the mirrored server, it may complain that no transaction log was
     found and may fail the database restoration on the mirrored
     server so this step is performed as a precaution
   – On the options screen ensure that “Append to the existing
     backup set” is checked. This will add the transaction log to your
     previous full backup of the database so you only require to copy
     the one .bak file to the mirrored server
   – Optionally you can also check “Verify backup when finished” or
     “Perform checksum before writing to media” for verification of
     data


                                                                     10
11
12
Implementation contd…
• Copy the backups to another SQL Server
• Requires access to the SQL Server itself
  (through remote desktop or VMware
  console). What you want to do is copy the
  backed up file you created in the previous
  steps to the SQL server where you want
  the database to be mirrored
• Where you place the backup files on the
  second SQL Server does not matter
                                           13
Implementation contd…
• Restore the database on second SQL
  Server
  – Login to the SQL Server where your DB was
    copied to
  – Right-click on Database folder->Restore
    backup
  – Type the same name as the original database
    on the first SQL Server in the “To database”
    field
                                               14
15
Implementation contd…
• Select “From device” and click the “…”
  button
• Click the add button and find the backup
  file of the database
  – Select the backed up database that you
    copied from the principal SQL server




                                             16
17
Implementation contd…
• The two backups will appear in the
  window
• Checkmark both backups




                                       18
19
Implementation contd…
• Select the options page
• At the bottom under “Recovery state”
  select the second option (RESTORE
  WITH NORECOVERY)




                                         20
21
Implementation contd…
• Your database should
  now be listed in the
  database folder on the
  second SQL server and it
  should be in the
  “Restoring…” state
• *Note*: The “Restoring…”
  state is indefinite for the
  mirrored database. You
  will not be able to access
  a database while it is in
  the restoring state.
                                22
Setting up the mirroring
• Login to the first SQL Server:
  – Select the Principal database
  – Right-click->Properties
  – Select the “Mirroring page”
  – Click on “Configure security”




                                    23
24
25
Setting up the mirroring contd…
• On the Principal, Mirror and Witness
  Server Instance screens, settings may be
  grayed out due to the endpoint being
  setup already for use. If this is the case
  just select the appropriate server to
  connect to and use the default settings. If
  the endpoint has not been created yet,
  you can create a new endpoint that will be
  used for all database mirroring.
                                            26
27
Setting up the mirroring contd…
• If creating a new endpoint, use the default
  port of 5022 and enter any name for the
  endpoint. Use the same name on the
  following servers for consistency although
  using different names does not affect the
  mirroring in any way.



                                            28
Setting up the mirroring contd…
• When selecting the Mirror and Witness
  Server Instances, you may be required to
  connect to these servers using some form
  of authentication before you are able to
  continue. For consistency use the same
  logins for all servers.



                                         29
30
Setting up the mirroring contd…
• The next screen you may encounter will
  ask for service accounts. This screen is to
  grant CONNECT permissions for the
  accounts that are running the SQL
  services on each machine. Generally all
  the SQL Server should be run on the
  same account so you can just leave the
  fields blank.

                                            31
32
• Click finish and
  the database
  mirroring should
  be setup
  successfully.




                     33
34
Setting up the mirroring contd…
• Ensure the settings are correct in the
  Mirroring window
• Synchronous operating mode should be
  selected
• Click on start mirroring
• Status should show the database is now
  mirrored correctly

                                           35
Setting up the mirroring contd…
• Your databases
  should now be in the
  following states
• Upon failover, the
  mirror database will
  become principal and
  the principal database
  will become the mirror
  (similar in function to a
  high availability BES
  with the
  active/standby states)
                              36

Mais conteúdo relacionado

Mais procurados

PowerShell for Practical Purple Teaming
PowerShell for Practical Purple TeamingPowerShell for Practical Purple Teaming
PowerShell for Practical Purple TeamingNikhil Mittal
 
Những nguyên tắc cơ bản xây dựng hệ thống an toàn thông tin trong doanh nghiệp
Những nguyên tắc cơ bản xây dựng hệ thống an toàn thông tin trong doanh nghiệpNhững nguyên tắc cơ bản xây dựng hệ thống an toàn thông tin trong doanh nghiệp
Những nguyên tắc cơ bản xây dựng hệ thống an toàn thông tin trong doanh nghiệpCIO Vietnam
 
Tổng quan về an toàn và bảo mật thông tin
Tổng quan về an toàn và bảo mật thông tinTổng quan về an toàn và bảo mật thông tin
Tổng quan về an toàn và bảo mật thông tinNguyen Thi Lan Phuong
 
ITLC HN 14 - Bizweb Microservices Architecture
ITLC HN 14  - Bizweb Microservices ArchitectureITLC HN 14  - Bizweb Microservices Architecture
ITLC HN 14 - Bizweb Microservices ArchitectureIT Expert Club
 
CNIT 152 12 Investigating Windows Systems (Part 1 of 3)
CNIT 152 12 Investigating Windows Systems (Part 1 of 3)CNIT 152 12 Investigating Windows Systems (Part 1 of 3)
CNIT 152 12 Investigating Windows Systems (Part 1 of 3)Sam Bowne
 
Data mining - Luật kết hợp và ứng dụng
Data mining - Luật kết hợp và ứng dụngData mining - Luật kết hợp và ứng dụng
Data mining - Luật kết hợp và ứng dụngPhien Le
 
Bypass_AV-EDR.pdf
Bypass_AV-EDR.pdfBypass_AV-EDR.pdf
Bypass_AV-EDR.pdfFarouk2nd
 
Xậy dựng hệ thống webserver trên linux
Xậy dựng hệ thống webserver trên linux Xậy dựng hệ thống webserver trên linux
Xậy dựng hệ thống webserver trên linux Hoàng Nguyễn
 
Khái quát Kerberos
Khái quát Kerberos Khái quát Kerberos
Khái quát Kerberos Quang Vu
 
Báo cáo tiểu luận hệ thống tên miền dns - học viện bưu chính viễn thông
Báo cáo tiểu luận   hệ thống tên miền dns - học viện bưu chính viễn thôngBáo cáo tiểu luận   hệ thống tên miền dns - học viện bưu chính viễn thông
Báo cáo tiểu luận hệ thống tên miền dns - học viện bưu chính viễn thônghttps://www.facebook.com/garmentspace
 
3. Security Engineering
3. Security Engineering3. Security Engineering
3. Security EngineeringSam Bowne
 
Understanding the Event Log
Understanding the Event LogUnderstanding the Event Log
Understanding the Event Logchuckbt
 
Hệ thống quản lý và phân tích log tập trung elk stack
Hệ thống quản lý và phân tích log tập trung elk stackHệ thống quản lý và phân tích log tập trung elk stack
Hệ thống quản lý và phân tích log tập trung elk stacklaonap166
 
DeathNote of Microsoft Windows Kernel
DeathNote of Microsoft Windows KernelDeathNote of Microsoft Windows Kernel
DeathNote of Microsoft Windows KernelPeter Hlavaty
 
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrh
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrhTransparent firewall filtering bridge - pf sense 2.0.2 by william tarrh
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrhHichem Chehida
 

Mais procurados (20)

PowerShell for Practical Purple Teaming
PowerShell for Practical Purple TeamingPowerShell for Practical Purple Teaming
PowerShell for Practical Purple Teaming
 
Những nguyên tắc cơ bản xây dựng hệ thống an toàn thông tin trong doanh nghiệp
Những nguyên tắc cơ bản xây dựng hệ thống an toàn thông tin trong doanh nghiệpNhững nguyên tắc cơ bản xây dựng hệ thống an toàn thông tin trong doanh nghiệp
Những nguyên tắc cơ bản xây dựng hệ thống an toàn thông tin trong doanh nghiệp
 
Tổng quan về an toàn và bảo mật thông tin
Tổng quan về an toàn và bảo mật thông tinTổng quan về an toàn và bảo mật thông tin
Tổng quan về an toàn và bảo mật thông tin
 
Registry forensics
Registry forensicsRegistry forensics
Registry forensics
 
Disk forensics
Disk forensicsDisk forensics
Disk forensics
 
ITLC HN 14 - Bizweb Microservices Architecture
ITLC HN 14  - Bizweb Microservices ArchitectureITLC HN 14  - Bizweb Microservices Architecture
ITLC HN 14 - Bizweb Microservices Architecture
 
CNIT 152 12 Investigating Windows Systems (Part 1 of 3)
CNIT 152 12 Investigating Windows Systems (Part 1 of 3)CNIT 152 12 Investigating Windows Systems (Part 1 of 3)
CNIT 152 12 Investigating Windows Systems (Part 1 of 3)
 
Data mining - Luật kết hợp và ứng dụng
Data mining - Luật kết hợp và ứng dụngData mining - Luật kết hợp và ứng dụng
Data mining - Luật kết hợp và ứng dụng
 
Bypass_AV-EDR.pdf
Bypass_AV-EDR.pdfBypass_AV-EDR.pdf
Bypass_AV-EDR.pdf
 
Xậy dựng hệ thống webserver trên linux
Xậy dựng hệ thống webserver trên linux Xậy dựng hệ thống webserver trên linux
Xậy dựng hệ thống webserver trên linux
 
Khái quát Kerberos
Khái quát Kerberos Khái quát Kerberos
Khái quát Kerberos
 
Báo cáo tiểu luận hệ thống tên miền dns - học viện bưu chính viễn thông
Báo cáo tiểu luận   hệ thống tên miền dns - học viện bưu chính viễn thôngBáo cáo tiểu luận   hệ thống tên miền dns - học viện bưu chính viễn thông
Báo cáo tiểu luận hệ thống tên miền dns - học viện bưu chính viễn thông
 
3. Security Engineering
3. Security Engineering3. Security Engineering
3. Security Engineering
 
Understanding the Event Log
Understanding the Event LogUnderstanding the Event Log
Understanding the Event Log
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
 
Hệ thống quản lý và phân tích log tập trung elk stack
Hệ thống quản lý và phân tích log tập trung elk stackHệ thống quản lý và phân tích log tập trung elk stack
Hệ thống quản lý và phân tích log tập trung elk stack
 
Chuong 1. cnpm
Chuong 1. cnpmChuong 1. cnpm
Chuong 1. cnpm
 
DeathNote of Microsoft Windows Kernel
DeathNote of Microsoft Windows KernelDeathNote of Microsoft Windows Kernel
DeathNote of Microsoft Windows Kernel
 
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrh
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrhTransparent firewall filtering bridge - pf sense 2.0.2 by william tarrh
Transparent firewall filtering bridge - pf sense 2.0.2 by william tarrh
 
Đề tài: Hệ thống giám sát mạng dựa trên phần mềm Zabbix, 9đ
Đề tài: Hệ thống giám sát mạng dựa trên phần mềm Zabbix, 9đĐề tài: Hệ thống giám sát mạng dựa trên phần mềm Zabbix, 9đ
Đề tài: Hệ thống giám sát mạng dựa trên phần mềm Zabbix, 9đ
 

Destaque

9767410 - Index
9767410 - Index9767410 - Index
9767410 - IndexK Singh
 
Linux Sürücü Geliştirme (Linux Device Driver Development)
Linux Sürücü Geliştirme (Linux Device Driver Development)Linux Sürücü Geliştirme (Linux Device Driver Development)
Linux Sürücü Geliştirme (Linux Device Driver Development)kyasar
 
Automating Analysis and Exploitation of Embedded Device Firmware
Automating Analysis and Exploitation of Embedded Device FirmwareAutomating Analysis and Exploitation of Embedded Device Firmware
Automating Analysis and Exploitation of Embedded Device FirmwareMalachi Jones
 
Design Of A Usb Device Driver (Overview)
Design Of A Usb Device Driver (Overview)Design Of A Usb Device Driver (Overview)
Design Of A Usb Device Driver (Overview)allankliu
 
BeagleBone Black Using Python
BeagleBone Black Using PythonBeagleBone Black Using Python
BeagleBone Black Using PythonSai Viswanath
 
An Overview Study on USB OTG Device ISP1761
An Overview Study on USB OTG Device ISP1761An Overview Study on USB OTG Device ISP1761
An Overview Study on USB OTG Device ISP1761Premier Farnell
 
Android device driver structure introduction
Android device driver structure introductionAndroid device driver structure introduction
Android device driver structure introductionWilliam Liang
 
Introduction to embedded linux device driver and firmware
Introduction to embedded linux device driver and firmwareIntroduction to embedded linux device driver and firmware
Introduction to embedded linux device driver and firmwaredefinecareer
 
Introduction to char device driver
Introduction to char device driverIntroduction to char device driver
Introduction to char device driverVandana Salve
 
Device Drivers
Device DriversDevice Drivers
Device DriversSuhas S R
 

Destaque (19)

SQL Database Mirroring setup
SQL Database Mirroring setupSQL Database Mirroring setup
SQL Database Mirroring setup
 
9767410 - Index
9767410 - Index9767410 - Index
9767410 - Index
 
Usb 72213 76207
Usb 72213 76207Usb 72213 76207
Usb 72213 76207
 
Intro
IntroIntro
Intro
 
Linux Sürücü Geliştirme (Linux Device Driver Development)
Linux Sürücü Geliştirme (Linux Device Driver Development)Linux Sürücü Geliştirme (Linux Device Driver Development)
Linux Sürücü Geliştirme (Linux Device Driver Development)
 
Automating Analysis and Exploitation of Embedded Device Firmware
Automating Analysis and Exploitation of Embedded Device FirmwareAutomating Analysis and Exploitation of Embedded Device Firmware
Automating Analysis and Exploitation of Embedded Device Firmware
 
Design Of A Usb Device Driver (Overview)
Design Of A Usb Device Driver (Overview)Design Of A Usb Device Driver (Overview)
Design Of A Usb Device Driver (Overview)
 
BeagleBone Black Using Python
BeagleBone Black Using PythonBeagleBone Black Using Python
BeagleBone Black Using Python
 
An Overview Study on USB OTG Device ISP1761
An Overview Study on USB OTG Device ISP1761An Overview Study on USB OTG Device ISP1761
An Overview Study on USB OTG Device ISP1761
 
Android device driver structure introduction
Android device driver structure introductionAndroid device driver structure introduction
Android device driver structure introduction
 
Usb Overview
Usb OverviewUsb Overview
Usb Overview
 
Introduction to embedded linux device driver and firmware
Introduction to embedded linux device driver and firmwareIntroduction to embedded linux device driver and firmware
Introduction to embedded linux device driver and firmware
 
Introduction to char device driver
Introduction to char device driverIntroduction to char device driver
Introduction to char device driver
 
Device Drivers
Device DriversDevice Drivers
Device Drivers
 
Embedded C
Embedded CEmbedded C
Embedded C
 
Linux device drivers
Linux device drivers Linux device drivers
Linux device drivers
 
PCI Drivers
PCI DriversPCI Drivers
PCI Drivers
 
USB Drivers
USB DriversUSB Drivers
USB Drivers
 
Device Drivers
Device DriversDevice Drivers
Device Drivers
 

Semelhante a Database mirroring setup

Microsoft SQL Server Database Administration.pptx
Microsoft SQL Server Database Administration.pptxMicrosoft SQL Server Database Administration.pptx
Microsoft SQL Server Database Administration.pptxsamtakke1
 
Sql disaster recovery
Sql disaster recoverySql disaster recovery
Sql disaster recoverySqlperfomance
 
Geek Sync | Field Medic’s Guide to Database Mirroring
Geek Sync | Field Medic’s Guide to Database MirroringGeek Sync | Field Medic’s Guide to Database Mirroring
Geek Sync | Field Medic’s Guide to Database MirroringIDERA Software
 
Sql server logshipping
Sql server logshippingSql server logshipping
Sql server logshippingZeba Ansari
 
Performance Tuning for Pirates!
Performance Tuning for Pirates!Performance Tuning for Pirates!
Performance Tuning for Pirates!John Sterrett
 
Database Mirror for the exceptional DBA – David Izahk
Database Mirror for the exceptional DBA – David IzahkDatabase Mirror for the exceptional DBA – David Izahk
Database Mirror for the exceptional DBA – David Izahksqlserver.co.il
 
Lesson 1 configuring
Lesson 1   configuringLesson 1   configuring
Lesson 1 configuringRam Kedem
 
SQL Server 2014 Hybrid Cloud Features
SQL Server 2014 Hybrid Cloud FeaturesSQL Server 2014 Hybrid Cloud Features
SQL Server 2014 Hybrid Cloud FeaturesGuillermo Caicedo
 
Sql server mirroring
Sql server mirroringSql server mirroring
Sql server mirroringsateesh7114
 
Blue Green Sitecore Deployments on Azure
Blue Green Sitecore Deployments on AzureBlue Green Sitecore Deployments on Azure
Blue Green Sitecore Deployments on AzureRob Habraken
 
Sa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSharon James
 
Sql server 2019 New Features by Yevhen Nedaskivskyi
Sql server 2019 New Features by Yevhen NedaskivskyiSql server 2019 New Features by Yevhen Nedaskivskyi
Sql server 2019 New Features by Yevhen NedaskivskyiAlex Tumanoff
 
Moving Windows Applications to the Cloud
Moving Windows Applications to the CloudMoving Windows Applications to the Cloud
Moving Windows Applications to the CloudRightScale
 
6212883126866262792 performance testing_cloud
6212883126866262792 performance testing_cloud6212883126866262792 performance testing_cloud
6212883126866262792 performance testing_cloudLocuto Riorama
 
Scylla Summit 2016: Compose on Containing the Database
Scylla Summit 2016: Compose on Containing the DatabaseScylla Summit 2016: Compose on Containing the Database
Scylla Summit 2016: Compose on Containing the DatabaseScyllaDB
 
SQL Server 2000 Installation Rollout Backout Plan
SQL Server 2000 Installation Rollout Backout PlanSQL Server 2000 Installation Rollout Backout Plan
SQL Server 2000 Installation Rollout Backout Plan► Supreme Mandal ◄
 
MySQL Backup and Security Best Practices
MySQL Backup and Security Best PracticesMySQL Backup and Security Best Practices
MySQL Backup and Security Best PracticesLenz Grimmer
 
Mirroring in SQL Server 2012 R2
Mirroring in SQL Server 2012 R2Mirroring in SQL Server 2012 R2
Mirroring in SQL Server 2012 R2Mahesh Dahal
 

Semelhante a Database mirroring setup (20)

Microsoft SQL Server Database Administration.pptx
Microsoft SQL Server Database Administration.pptxMicrosoft SQL Server Database Administration.pptx
Microsoft SQL Server Database Administration.pptx
 
Sql disaster recovery
Sql disaster recoverySql disaster recovery
Sql disaster recovery
 
Geek Sync | Field Medic’s Guide to Database Mirroring
Geek Sync | Field Medic’s Guide to Database MirroringGeek Sync | Field Medic’s Guide to Database Mirroring
Geek Sync | Field Medic’s Guide to Database Mirroring
 
MSSQL SERVER
MSSQL SERVERMSSQL SERVER
MSSQL SERVER
 
Sql server logshipping
Sql server logshippingSql server logshipping
Sql server logshipping
 
Performance Tuning for Pirates!
Performance Tuning for Pirates!Performance Tuning for Pirates!
Performance Tuning for Pirates!
 
Database Mirror for the exceptional DBA – David Izahk
Database Mirror for the exceptional DBA – David IzahkDatabase Mirror for the exceptional DBA – David Izahk
Database Mirror for the exceptional DBA – David Izahk
 
Lesson 1 configuring
Lesson 1   configuringLesson 1   configuring
Lesson 1 configuring
 
SQL Server 2014 Hybrid Cloud Features
SQL Server 2014 Hybrid Cloud FeaturesSQL Server 2014 Hybrid Cloud Features
SQL Server 2014 Hybrid Cloud Features
 
Sql server mirroring
Sql server mirroringSql server mirroring
Sql server mirroring
 
Blue Green Sitecore Deployments on Azure
Blue Green Sitecore Deployments on AzureBlue Green Sitecore Deployments on Azure
Blue Green Sitecore Deployments on Azure
 
Sa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administrators
 
Sql server 2019 New Features by Yevhen Nedaskivskyi
Sql server 2019 New Features by Yevhen NedaskivskyiSql server 2019 New Features by Yevhen Nedaskivskyi
Sql server 2019 New Features by Yevhen Nedaskivskyi
 
A to z for sql azure databases
A to z for sql azure databasesA to z for sql azure databases
A to z for sql azure databases
 
Moving Windows Applications to the Cloud
Moving Windows Applications to the CloudMoving Windows Applications to the Cloud
Moving Windows Applications to the Cloud
 
6212883126866262792 performance testing_cloud
6212883126866262792 performance testing_cloud6212883126866262792 performance testing_cloud
6212883126866262792 performance testing_cloud
 
Scylla Summit 2016: Compose on Containing the Database
Scylla Summit 2016: Compose on Containing the DatabaseScylla Summit 2016: Compose on Containing the Database
Scylla Summit 2016: Compose on Containing the Database
 
SQL Server 2000 Installation Rollout Backout Plan
SQL Server 2000 Installation Rollout Backout PlanSQL Server 2000 Installation Rollout Backout Plan
SQL Server 2000 Installation Rollout Backout Plan
 
MySQL Backup and Security Best Practices
MySQL Backup and Security Best PracticesMySQL Backup and Security Best Practices
MySQL Backup and Security Best Practices
 
Mirroring in SQL Server 2012 R2
Mirroring in SQL Server 2012 R2Mirroring in SQL Server 2012 R2
Mirroring in SQL Server 2012 R2
 

Mais de K Singh

Ten Commandments of BYOD
Ten Commandments of BYODTen Commandments of BYOD
Ten Commandments of BYODK Singh
 
Securing mobile devices_in_the_business_environment
Securing mobile devices_in_the_business_environmentSecuring mobile devices_in_the_business_environment
Securing mobile devices_in_the_business_environmentK Singh
 
Gapps connector guide_for _bes
Gapps connector guide_for _besGapps connector guide_for _bes
Gapps connector guide_for _besK Singh
 
Byod four steps to enabling your network michael greco
Byod four steps to enabling your network michael grecoByod four steps to enabling your network michael greco
Byod four steps to enabling your network michael grecoK Singh
 
Exchange active sync for developers
Exchange active sync for developersExchange active sync for developers
Exchange active sync for developersK Singh
 
Exchange Active Sync Troubleshooting
Exchange Active Sync TroubleshootingExchange Active Sync Troubleshooting
Exchange Active Sync TroubleshootingK Singh
 
Exchange 2010 e_book
Exchange 2010 e_bookExchange 2010 e_book
Exchange 2010 e_bookK Singh
 

Mais de K Singh (7)

Ten Commandments of BYOD
Ten Commandments of BYODTen Commandments of BYOD
Ten Commandments of BYOD
 
Securing mobile devices_in_the_business_environment
Securing mobile devices_in_the_business_environmentSecuring mobile devices_in_the_business_environment
Securing mobile devices_in_the_business_environment
 
Gapps connector guide_for _bes
Gapps connector guide_for _besGapps connector guide_for _bes
Gapps connector guide_for _bes
 
Byod four steps to enabling your network michael greco
Byod four steps to enabling your network michael grecoByod four steps to enabling your network michael greco
Byod four steps to enabling your network michael greco
 
Exchange active sync for developers
Exchange active sync for developersExchange active sync for developers
Exchange active sync for developers
 
Exchange Active Sync Troubleshooting
Exchange Active Sync TroubleshootingExchange Active Sync Troubleshooting
Exchange Active Sync Troubleshooting
 
Exchange 2010 e_book
Exchange 2010 e_bookExchange 2010 e_book
Exchange 2010 e_book
 

Último

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Último (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Database mirroring setup

  • 2. Preparation • Minimum of two SQL servers • Principal database/Mirror database • “Witness” server (used for automatic failover) • Will be done using SQL Server 2005 SP2 2
  • 3. Types of mirroring • High availability: – Synchronized writes on principal and mirror – Automated failover – Requires witness server • High Protection: – Synchronized writes on principal and mirror – Manual failover – No witness server required • High performance: – Not synchronized (assumed writes will be completed on both principal and mirror) – Forced failover only – Witness not required 3
  • 4. Implementation • Will be using high availability method • Requires at least three separate instances of SQL Server 2005 SP1 (Principal, Mirror, Witness) • Ensure BlackBerry services on all machines are stopped • Ensure the login credentials for all the SQL servers are the same • Run the errors.sql script on all SQL servers before proceeding (the errors.sql script can be found in the BES installation folder). You can also get rid of the final line in the script (the USE database line) as it may produce errors. -this is now an obsolete step. Running errors.sql is no longer required for DB mirroring. • It does not matter which servers you use for which purpose (i.e. M1 can be principal, M2 can be mirror and M3 can be witness for DB1 while M3 can be principal, M1 can be mirror and M2 can be witness for DB2.) 4
  • 5. Implementation contd… • Login to the SQL Server where your DB exists • Right-click->Properties->Options page • Select “Full” option under recovery model 5
  • 6. 6
  • 7. Implementation contd… • Backup the database – Right-click->Tasks->Backup – Ensure the backup type is “Full” – On the options screen select “Overwrite all existing backup sets” to ensure you are not appending the backup set to an existing set – Optionally you can also check “Verify backup when finished” or “Perform checksum before writing to media” for verification of data 7
  • 8. 8
  • 9. 9
  • 10. Implementation contd… • Backup the transaction log – Right-click->Tasks->Backup – Ensure the backup type is “Transaction log”. When restoring on the mirrored server, it may complain that no transaction log was found and may fail the database restoration on the mirrored server so this step is performed as a precaution – On the options screen ensure that “Append to the existing backup set” is checked. This will add the transaction log to your previous full backup of the database so you only require to copy the one .bak file to the mirrored server – Optionally you can also check “Verify backup when finished” or “Perform checksum before writing to media” for verification of data 10
  • 11. 11
  • 12. 12
  • 13. Implementation contd… • Copy the backups to another SQL Server • Requires access to the SQL Server itself (through remote desktop or VMware console). What you want to do is copy the backed up file you created in the previous steps to the SQL server where you want the database to be mirrored • Where you place the backup files on the second SQL Server does not matter 13
  • 14. Implementation contd… • Restore the database on second SQL Server – Login to the SQL Server where your DB was copied to – Right-click on Database folder->Restore backup – Type the same name as the original database on the first SQL Server in the “To database” field 14
  • 15. 15
  • 16. Implementation contd… • Select “From device” and click the “…” button • Click the add button and find the backup file of the database – Select the backed up database that you copied from the principal SQL server 16
  • 17. 17
  • 18. Implementation contd… • The two backups will appear in the window • Checkmark both backups 18
  • 19. 19
  • 20. Implementation contd… • Select the options page • At the bottom under “Recovery state” select the second option (RESTORE WITH NORECOVERY) 20
  • 21. 21
  • 22. Implementation contd… • Your database should now be listed in the database folder on the second SQL server and it should be in the “Restoring…” state • *Note*: The “Restoring…” state is indefinite for the mirrored database. You will not be able to access a database while it is in the restoring state. 22
  • 23. Setting up the mirroring • Login to the first SQL Server: – Select the Principal database – Right-click->Properties – Select the “Mirroring page” – Click on “Configure security” 23
  • 24. 24
  • 25. 25
  • 26. Setting up the mirroring contd… • On the Principal, Mirror and Witness Server Instance screens, settings may be grayed out due to the endpoint being setup already for use. If this is the case just select the appropriate server to connect to and use the default settings. If the endpoint has not been created yet, you can create a new endpoint that will be used for all database mirroring. 26
  • 27. 27
  • 28. Setting up the mirroring contd… • If creating a new endpoint, use the default port of 5022 and enter any name for the endpoint. Use the same name on the following servers for consistency although using different names does not affect the mirroring in any way. 28
  • 29. Setting up the mirroring contd… • When selecting the Mirror and Witness Server Instances, you may be required to connect to these servers using some form of authentication before you are able to continue. For consistency use the same logins for all servers. 29
  • 30. 30
  • 31. Setting up the mirroring contd… • The next screen you may encounter will ask for service accounts. This screen is to grant CONNECT permissions for the accounts that are running the SQL services on each machine. Generally all the SQL Server should be run on the same account so you can just leave the fields blank. 31
  • 32. 32
  • 33. • Click finish and the database mirroring should be setup successfully. 33
  • 34. 34
  • 35. Setting up the mirroring contd… • Ensure the settings are correct in the Mirroring window • Synchronous operating mode should be selected • Click on start mirroring • Status should show the database is now mirrored correctly 35
  • 36. Setting up the mirroring contd… • Your databases should now be in the following states • Upon failover, the mirror database will become principal and the principal database will become the mirror (similar in function to a high availability BES with the active/standby states) 36