Database images and log transmission work together to achieve high availability and disaster recovery

Source: Internet
Author: User
The database has now become the cornerstone of the enterprise, so it is necessary to ensure the high availability of the database. At the same time, it is also necessary to prevent unexpected incidents from causing problems in the entire data center (such as addresses and floods ). Therefore, data center high availability and disaster recovery must be considered at the same time. Using SQLServer's database mirroring and log shipping functions can help us complete

The database has now become the cornerstone of the enterprise, so it is necessary to ensure the high availability of the database. At the same time, it is also necessary to prevent unexpected incidents from causing problems in the entire data center (such as addresses and floods ). Therefore, data center high availability and disaster recovery must be considered at the same time. Using the database mirroring and log shipping functions of SQL Server can help us complete

The database has now become the cornerstone of the enterprise, so it is necessary to ensure the high availability of the database. At the same time, it is also necessary to prevent unexpected incidents from causing problems in the entire data center (such as addresses and floods ). Therefore, data center high availability and disaster recovery must be considered at the same time.

Using the database mirroring and log shipping functions of SQL Server can help us achieve the above objectives.

Scenario: Data Center A has two database servers: SQL2K8 and R2, and data center B has SQL28 (different from region A, to prevent unexpected unavailability of the entire data center ), the database to be configured is AuditDb.

The configuration is as follows:

1. Perform full backup and log backup for AuditDb of SQL2K8.

2. Restore the backup created in 1 to R2 and SQL28 (restorewith norecovery ).

3. Right-click AuditDb in Management studio and select the image created from SQL2K8 AuditDb (select monitoring server ).

4. After the image is configured, select create Log shipping to SQL28 AuditDb (select monitoring server) in the properties ).

5. After the above steps are completed, high availability and disaster recovery can be achieved.

When the monitoring server detects a problem with SQL2K8, it will automatically Failover to R2, the application can automatically access R2, reducing the Down time (the application DBConnection needs to do the configuration: http://technet.microsoft.com/en-us/library/ms175484.aspx ). When a problem occurs in the entire data center, we can still change the server of data center B to available (Logshipping may cause some data loss Depending on the backup and restoration settings ).

The good news is that you can use Always On in SQL Server 2012 to implement the above functions without combining the two functions.

In fact, the combination of cluster, database image, and log transmission can produce a variety of combined solutions, which can basically achieve zero data loss and high availability of 99.999%. (Solution: A data center cluster + B data cluster image, A data cluster image + B data cluster log transmission, A data cluster + B Data Center log transmission ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.