Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central...
-
Upload
shanna-payne -
Category
Documents
-
view
217 -
download
0
Transcript of Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central...
![Page 1: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/1.jpg)
Thanks for coming along to the webinar.
Things will get started shortly…
SQL Server Central Webinar Series #13: Quick recovery techniques
![Page 2: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/2.jpg)
Steve Jones, SQL Server MVP and editor-in-chief of SQLServerCentral.com
SQL Server Central Webinar Series #13: Quick recovery techniques
This webinar is being recorded and the video will be available by Monday. Visit: http://www.red-gate.com/products/dba/backup-restore-bundle/webinars or: www.SQLServerCentral.com/Training
![Page 3: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/3.jpg)
Why do we prepare for disasters?
![Page 4: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/4.jpg)
Failure is inevitable
![Page 5: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/5.jpg)
![Page 6: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/6.jpg)
1.Be prepared2.I will do my best
![Page 7: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/7.jpg)
77
![Page 8: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/8.jpg)
1.Be prepared2.I will do my best
![Page 9: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/9.jpg)
What’s a Disaster?
• Earthquake that destroys your data center• Hard drive failure• Corruption in the database• Fire that closes your office (and server
room)• Flooding in the city where your server is
located• Bulldozer cuts the fiber cable to the office
park• Water leak in the data center• Backup tape copied by competitor• Incorrect data load• Execute a DELETE without a WHERE• Deploy changes to production instead of dev
server• Many, many more
![Page 10: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/10.jpg)
The “Whoops” Disaster
![Page 11: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/11.jpg)
11
![Page 12: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/12.jpg)
12
Critical SystemsCRMSales
Important SystemsInventoryAccounting
Less Important SystemsDevelopmentIntranet
![Page 13: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/13.jpg)
Recovery Time Objective (RTO)Recovery Point Objective (RPO)
![Page 14: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/14.jpg)
The Recovery Time Objective (RTO) is the duration of time and a service level within which a business process must be restored after a disaster (or disruption) in order to avoid unacceptable consequences associated with a break in business continuity.- Wikipedia,
http://en.wikipedia.org/wiki/Recovery_time_objective
![Page 15: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/15.jpg)
The time it takes for you to get things running to the point where someone can use them after someone notices that they aren't.
RTO ~ Uptime*
* 100% uptime is not possible for all clients
![Page 16: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/16.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
RTO Examples
![Page 17: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/17.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
RTO
RTO Examples
![Page 18: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/18.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
RTO
RTO Examples
![Page 19: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/19.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
RTO
RTO Examples
![Page 20: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/20.jpg)
System Response Hours RTO
Web Order Entry (SQL012)
24x7 5 minutes
Web Main (SQL014)
24x7 40 minutes
CRM, internal 8-5, must respond overnight
120 minutes
Dynamics, internal 8-5, weekdays 300 minutes
Development, web 8-5, 7 days a week 2 days
RTO Examples
![Page 21: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/21.jpg)
Recovery Point Objective (RPO)
![Page 22: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/22.jpg)
Recovery Point Objective (RPO) describes the acceptable amount of data loss measured in time.- Wikipedia, http://en.wikipedia.org/wiki/Recovery_point_objective
Note: 0% data loss is possible
![Page 23: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/23.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
T1Begin
T1Commit
T2Begin
T3Begin
T2Commit
Log Backup
Full Backup
Log Backup
RPO Examples
![Page 24: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/24.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
RPO?
T1Begin
T1Commit
T2Begin
T3Begin
T2Commit
Log Backup
Log Backup
Full Backup RPO Examples
![Page 25: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/25.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
RPO
T1Begin
T1Commit
T2Begin
T3Begin
T2Commit
Log Backup Log
Backup
T4Begin
Full Backup RPO Examples
![Page 26: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/26.jpg)
RPO Examples
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
cRPO
T1Begin
T1Commit
T2Begin
T3Begin
T2Commit
Log Backup Log
Backup
T4Begin
With Tail Log
Full Backup
![Page 27: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/27.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
RPO
T1Begin
T1Commit
T2Begin
T3Begin
T2Commit
Log Backup Log
Backup
T4Begin
Without Tail Log, with Log Backup 2
Full Backup RPO Examples
![Page 28: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/28.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
RPO
T1Begin
T1Commit
T2Begin
T3Begin
T2Commit
Log Backup Log
Backup
T4Begin
Without Tail Log, without Log Backup 2, with log backup 1
Full Backup RPO Examples
![Page 29: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/29.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
RTO
T1Begin
T1Commit
T2Begin
T3Begin
T2Commit
Log Backup Log
Backup
T4Begin
Full Backup
Full Backup Corrupt, deleted, etc.
?
RPO Examples
![Page 30: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/30.jpg)
System Response Hours
RTO RPO
Web Order Entry (SQL012)
24x7 5 minutes 0 data loss
Web Main (SQL014)
24x7 40 minutes 0 Price updates lost, < 10 minutes of inventory
CRM, internal 8-5, must respond overnight
120 minutes < 5 minutes of updates
Dynamics, internal
8-5, weekdays 300 minutes 0 data loss
Development, web
8-5, 7 days a week
2 days < 1 day of changes
RPO Examples
![Page 31: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/31.jpg)
Time
Disaster Occurs
Someone notices
System Restored
Clients Connect
RTO
T1Begin
T1Commit
T2Begin
T3Begin
T2Commit
Log Backup
Log Backup
T4Begin
Full Backup
RPO - User Perspective
?
User starts T4User starts T3
![Page 32: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/32.jpg)
A transaction is not committed until the user gets an acknowledgement in the application.
![Page 33: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/33.jpg)
Everyone wants 100% uptime and 0 data loss
![Page 34: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/34.jpg)
Everyone wants 100% uptime and 0 data loss
but no one wants to pay for it.
![Page 35: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/35.jpg)
RTO/RPO
SLA
DR/BC Plan
Budget
![Page 36: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/36.jpg)
36
Issue detection time
![Page 37: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/37.jpg)
37
Issue detection time+ reporting time
![Page 38: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/38.jpg)
38
Issue detection time+ reporting time+ response time
![Page 39: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/39.jpg)
39
Issue detection time+ reporting time+ response time+ time to correct the issue
![Page 40: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/40.jpg)
40
Issue detection time+ reporting time+ response time+ time to correct the issue
Minimum RTO/RPO Time
![Page 41: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/41.jpg)
BCPS
![Page 42: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/42.jpg)
BackupsChecksPractice and preparationScript and schedule
![Page 43: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/43.jpg)
BackupsChecksPractice and preparationScript and schedule
![Page 44: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/44.jpg)
BackupsChecksPractice and preparationScript and schedule
![Page 45: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/45.jpg)
Full Backups - Recommendations• Run as often as you can• Make at least two copies, one off the physical server• Make sure full backups files are physically separate from the data files.• If you must, co-locate these with log files (.ldf)• Be aware of your SAN/LUN structures• Monitor the backup file size growth over time• Restoring a full backup will often exceed your RTO, so be prepared to do this in advance on warm servers• Use COPY_ONLY for ad hoc backups• The mirrored backup option will fail both backups if one fails. DO NOT USE this. (SQL Backup does not fail the primary backup)• Compress Backups to save space/time• Do not append backups to one file. Use INIT and new files
![Page 46: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/46.jpg)
Full Backups - Recommendations• Run as often as you can• Make at least two copies, one off the physical server• Make sure full backups files are physically separate from the data files.• If you must, co-locate these with log files (.ldf)• Be aware of your SAN/LUN structures• Monitor the backup file size growth over time• Restoring a full backup will often exceed your RTO, so be prepared to do this in advance on warm servers• Use COPY_ONLY for ad hoc backups• The mirrored backup option will fail both backups if one fails. DO NOT USE this. (SQL Backup does not fail the primary backup)• Compress backups to save space/time• Do not append backups to one file. Use INIT and new files
![Page 47: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/47.jpg)
Database Size
200GB File Size
![Page 48: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/48.jpg)
200GB File Size
100GB
![Page 49: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/49.jpg)
Database Size
Data Size
Compressed Data Size
54GB
100GB
![Page 50: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/50.jpg)
Database Size
Data Size
Compressed Data Size
40:35
54:13
![Page 51: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/51.jpg)
When to use backups
• Rebuild entire server• Corrupted database• Deploy to the wrong environment• Rollback changes• …
51
![Page 52: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/52.jpg)
When to use backups
• Rebuild entire server• Corrupted database• Deploy to the wrong environment• Rollback changes• …
52
![Page 53: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/53.jpg)
Backup Recommendations
o Backup as often as possibleo Keep multiple copies of backupso Backup before changeso Keep backups physically separate
from datao Track versions
53
![Page 54: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/54.jpg)
• Extra servers that are available to handle the the workload if the primary server goes down.• Used to help meet short RTO/RPO• Are kept in near up-to-date with data from the primary system• Can use any of these technologies• clustering• database mirroring• log shipping• replication
Standby Servers
![Page 55: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/55.jpg)
• Hot (clustering, synchronous mirroring)• Useful in complete system failure• High bandwidth/connectivity requirements
• Warm (asynchronous mirroring, log shipping, replication• Useful for geographical separation• Can help with load balancing in some situations (reporting or read-only data)
• Cold (SQL Server installed, data in unknown condition)• Useful if you have to consider recovering from one of many sites to a DR location.• Useful if you have lots of primary servers and only need to recover a few of them.
Standby Servers
![Page 56: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/56.jpg)
The Backup Plan
• Get Backups offsite!• Make sure others know where the backups are, including at least one non-technical user• They do not need to understand the details• They do not need to know details (sealed envelopes)• Make sure others have access to offsite backups• account names/numbers/passwords• Make sure that passwords/certificates are known/accessible to others• Encrypt / secure backups• Have a copy of your run book.
![Page 57: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/57.jpg)
BackupsChecksPractice and preparationScript and Schedule
![Page 58: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/58.jpg)
You cannot prevent corruption
![Page 59: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/59.jpg)
Detect it as soon as possible
![Page 60: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/60.jpg)
Detecting Corruption
ON EVERY DATABASE
![Page 61: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/61.jpg)
Detecting Corruption
• ALWAYS use WITH CHECKSUM in backups• Stop/Continue after error according to your
needs• ALERT someone ASAP on failures
![Page 62: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/62.jpg)
DBCC CHECKDB
![Page 63: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/63.jpg)
DBCC CHECKDB
• DBCC is noted in the error log • Run as often as possible• Ideally run every day on every database• Very resource intensive, so…
![Page 64: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/64.jpg)
DBCC CHECKDB using SQL Virtual Restore
Or run checkdb on any spare machine
![Page 65: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/65.jpg)
BackupsChecksPracticeScript and Schedule
![Page 66: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/66.jpg)
How many of you have seen this?
![Page 67: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/67.jpg)
![Page 68: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/68.jpg)
![Page 69: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/69.jpg)
What Happens?
![Page 70: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/70.jpg)
Or this?
![Page 71: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/71.jpg)
![Page 72: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/72.jpg)
![Page 73: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/73.jpg)
![Page 74: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/74.jpg)
![Page 75: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/75.jpg)
![Page 76: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/76.jpg)
![Page 77: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/77.jpg)
Run Book
![Page 78: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/78.jpg)
Hopefully it isn’t like this
![Page 79: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/79.jpg)
![Page 80: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/80.jpg)
![Page 81: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/81.jpg)
Run Book
- The processes and procedures for day-to-day operations and emergency situation responses- Written by the most experienced person- Tested by the most junior person- Updated regularly- Offline (can be partially digital)- Secure
Image from http://technet.microsoft.com/en-us/library/cc917702.aspx
![Page 82: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/82.jpg)
Run Book
- Contains contact information- For clients/customers/users- vendors (software and services)- warranty / support information- Software keys / licenses- Priorities for systems- Up to date versions/settings- Processes for restoring service- Use checklists / outlines- minimize details- maximize information- Evolves over time, regularly.
![Page 83: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/83.jpg)
Run Book
- Contains contact information- For clients/customers/users- vendors (software and services)- warranty / support information- Software keys / licenses- Priorities for systems- Up to date versions/settings- Processes for restoring service- Use checklists / outlines- minimize details- maximize information- Evolves over time, regularly.
![Page 84: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/84.jpg)
Practice makes perfect
![Page 85: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/85.jpg)
Practice Restoring Backups• Randomly perform restores regularly• More than once a year.• Make sure you test each media/device every month• Automate this if possible• On all servers, enable IFI• On warm servers, pre-allocate log files space (ldf)• Practice all types of restores you need• Point in time• Filegroup• Marked transaction• ALWAYS RESTORE with NORECOVERY
![Page 86: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/86.jpg)
Practice DR
• Practice Object level recovery• Practice failovers to standby systems• Practice rolling back deployments• Practice configuring servers from scratch• Practice restoring encryption keys• Practice recovering media from storage• Practice installing SQL Server and
applying patches
![Page 87: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/87.jpg)
Preparationo Ensure Backups are availableo If warranted, have standby serverso Create backups (snapshots) before
changes, including patcheso Use detailed scripts or third party
tools for deployment/rollbacko Always be ready for a “whoops”o Ensure that your report/response
infrastructure is ready87
![Page 88: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/88.jpg)
Preparation - Whoops Disasters
• Log Shipping on a delay• Database Snapshots (for scheduled changes)• Auditing/Tracking (bespoke/custom, CDC,
Change Tracking)• Log Readers• Virtual Restore/Data Compare• Many third party backup tools can handle object
level restore (Data Compare, SQL Virtual Restore, Red Gate Object Level Recovery)
![Page 89: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/89.jpg)
Things To Do
-Define RTO/RPO for all systems-Build an SLA that works with your budget-Have a backup plan that allows you to meet your SLA/RTO/RPO-Enable IFI-Pre-allocate transaction log on warm/standby servers-Keep backup files separate from data-Run DBCC as often as possible-Ensure all databases have Page Checksums set in the database options-Ensure that you use checksum with your backups-Practice, practice, practice, especially junior people-Document your run book offline-BCPS
![Page 90: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/90.jpg)
1.Be prepared2.I will do my best
![Page 91: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/91.jpg)
Grant Fritchey, SQL Server MVP and Product Evangelist for Red Gate Software
Questions?
Registrants will receive an email next week that includes a link to the webinar recording and an exclusive discount on
the SQL Backup and Restore Bundle
![Page 92: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/92.jpg)
Exclusive discount for webinar attendeesContact [email protected]
SQL Backup and Restore BundleThe complete solution for faster, stronger backups and
restores
Download your free trial: www.red-gate.com/products/dba/backup-restore-bundle/
Create faster, smaller backups and then mount them as live, fully functional databases:
contains SQL Backup Pro, SQL HyperBac and SQL Virtual Restore
![Page 93: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/93.jpg)
References•Ola Hallengren’s SQL Server 2005 & 2008 - Backup, Integrity Check & Index Optimization - http://www.sqlservercentral.com/scripts/Backup+%2f+Restore/62380/•Michelle Ufford’s Index Defrag - http://sqlfool.com/2010/04/index-defrag-script-v4-0/•Understanding SQL Server Backups - http://technet.microsoft.com/en-us/magazine/2009.07.sqlbackup.aspx• Full File Backups - http://msdn.microsoft.com/en-us/library/ms189860%28v=SQL.105%29.aspx• Paul Randal’s Corruption Posts - http://www.sqlskills.com/BLOGS/PAUL/category/Corruption.aspx• BACKUP - http://msdn.microsoft.com/en-us/library/ms186865.aspx • RESTORE - http://msdn.microsoft.com/en-us/library/ms186858.aspx• RTO - http://en.wikipedia.org/wiki/Recovery_time_objective • RPO - http://en.wikipedia.org/wiki/Recovery_point_objective • Run Book - http://en.wikipedia.org/wiki/Runbook• What is a Runbook? - http://bwunder.com/SQLRunbook.aspx
![Page 94: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/94.jpg)
References• Backing Up and Restoring Databases in SQL Server (BOL) - http://msdn.microsoft.com/en-us/library/ms187048%28v=SQL.100%29.aspx• Proven SQL Server Architectures for High Availability and Disaster Recovery• Partial Database Availability & Online Piecemeal Restore (video)• Designing an Availablity Strategy (video)• SQL Backup Pro - http://www.red-gate.com/products/dba/sql-backup/ • SQL Data Compare - http://www.red-gate.com/products/sql-development/sql-data-compare/ • SQL Virtual Restore - http://www.red-gate.com/products/dba/sql-virtual-restore/ • Mirrored Backup Fails (Item 30-12) - http://www.sqlskills.com/BLOGS/PAUL/category/Database-Mirroring.aspx• Backup SMK - http://technet.microsoft.com/en-us/library/aa337561.aspx• Restore SMK - http://technet.microsoft.com/en-us/library/aa337510.aspx• Backup DMK - http://technet.microsoft.com/en-us/library/aa337546.aspx• Restore DMK - http://technet.microsoft.com/en-us/library/aa337511.aspx• TDE and Keys - http://www.bradmcgehee.com/2008/09/sql-server-2008-transparent-data-encryption/
![Page 95: Thanks for coming along to the webinar. Things will get started shortly… SQL Server Central Webinar Series #13: Quick recovery techniques.](https://reader036.fdocuments.us/reader036/viewer/2022062322/56649e185503460f94b0397a/html5/thumbnails/95.jpg)
Image credits
• Boy Scout Emblem: http://www.scouting.org/• XBOX Red Ring of Death:
http://www.flickr.com/photos/esasse/1527535844/• Clean Room:
http://www.flickr.com/photos/brookhavenlab/3119988763/• Emergency Room:
http://www.flickr.com/photos/andrewbain/521869846/• Floppy disks :
http://www.flickr.com/photos/fdecomite/4963106794/• Prince 1999: http://www.prince.org• You’re Fired:
http://www.flickr.com/photos/liam-manic/3428068335/• Car accident:
http://www.flickr.com/photos/27248028@N02/2574613540/• Big Ben: http://www.flickr.com/photos/mrgiles/179848691/• Run Book: http://www.flickr.com/photos/acaben/11518666• Run Book 2: http://www.flickr.com/photos/wysz/50915075/