Disaster Recovery plan is our business continuity plan. Disaster recovery is a process that we can use to help recover information systems and data, if a disaster occurs. The planning includes the selection of a strategy to help recover valuable data. The selection of the appropriate disaster recovery strategy depends on your business requirements. Suppose there is a database system storing financial application data, an organization whole business is running on some applications and data is stored in database. The database system machine is placed in the same organization, if tomorrow database machine crashed it can create issues like loss of all data, business records. Will the organization be able to continue business? So if there will be solid Disaster Recovery plan for the organization data then the organization's business will not stop and it can continue. In disaster recovery what, backup mechanism is configured on some other machine to keep the same piece of information what on current database machine. If the current database machine crashes, data can be recovered from backup machine. Key Questions to Customer: The first step in testing the disaster recovery plan is to ask customer some poignant questions and respond in simple terms, maybe even 1 word answers.
The selection of the appropriate disaster recovery strategy depends on customer business requirements. Disaster recovery in SQL Server Microsoft SQL Server database system provides multiple ways to configure disaster recovery.
Failover clustering Microsoft SQL Server failover clustering is designed to failover automatically if a hardware failure or a software failure occurs. You can use SQL Server failover clustering to create a failover cluster for a single instance of SQL Server 2000 or for multiple instances of SQL Server 2000. Failover clustering allows a database system to automatically switch the processing of an instance of SQL Server from a failed server to a working server. Therefore, failover clustering is helpful if an operating system failure occurs or if you perform a planned upgrade of the database system resources. Also, failover clustering increases server availability with no downtime. Because failover clustering is designed for high server availability with almost no server downtime, the clustered nodes should be geographically close to each other. Failover clustering may not be useful if a disk array failure occurs. Advantage
Disadvantages
Database mirroring Database mirroring is a primarily software solution for increasing database availability. We can only implement mirroring on a per-database basis. Mirroring can only works with databases that use the full recovery model. The simple and bulk-logged recovery models do not support database mirroring. Therefore, all bulk operations are always fully logged. Database mirroring works with any supported database compatibility level. Advantages
Disadvantages
Peer-to-peer transactional replication Peer-to-peer transactional replication is designed for applications that might read or might modify the data in any database that participates in replication. Additionally, if any servers that host the databases are unavailable, you can modify the application to route traffic to the remaining servers. The remaining servers contain identical copies of the data. Advantages
Disadvantages
Log shipping Log shipping uses a standby server that is not used during regular operations. A standby server is useful to help recover data if a disaster occurs. We can only use log shipping at the database level. We cannot use it at the instance level. When a standby server is restoring transaction logs, the database is in exclusive mode and it is unusable. For Applications such as decision support servers that require continuous processing on a database server, log shipping is not an appropriate option. The latency on the standby server is based on how frequently the transaction log backups are taken at the primary server and then applied at the standby server. If the primary server fails, you may lose the changes that were made by the transactions that occurred after your most recent transaction log backup. For example, if transaction log backups are taken every 10 minutes, transactions during the most recent 10 minutes may be lost. This does not necessarily mean that the data updates that are made to the primary server during the latency period will be lost. Typically, new updates in the primary transaction log can be recovered and applied at the warm standby server with only a small delay in switching from the primary server to the standby server. The main purpose of log shipping is to maintain a warm standby server. If maintaining a warm standby server is your main objective, log shipping is likely to be more appropriate than the other solutions that this article discusses. Advantages and disadvantages of using log shipping Advantages
Disadvantages
Note If your main purpose is to maintain a warm standby server, Microsoft recommends that you use log shipping. The warm standby server reflects all the transactions that occur on the primary server. However, you cannot use the standby server when the primary server is available. Timely Database Backup Strategies If our disaster recovery plan we are planning for timely databases backup then all what we have to do is:
Conclusion In this article we had discussed about disaster recovery and disaster recovery plan in sql server. There are many ways you can configure disaster recovery for your database, in sql server database we can use Failover Clustering Database Replication, Timely Backup Strategies, Log Shipping, and Database Mirroring.