vinod kumar technology evangelist microsoft  · 2018. 10. 16. · vinod kumar m subject: tech·ed...

18

Upload: others

Post on 10-Sep-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM
Page 2: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

Vinod KumarTechnology EvangelistMicrosoftwww.ExtremeExperts.com

Page 3: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

What We Will Cover

SQL Server Storage Internals

Important SQL Server 2005/2008 Enhancements

Data Recovery Scenarios and Troubleshooting Techniques

Page 4: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

Agenda

SQL Server Storage Internals

SQL Server 2005 Enhancements

System Database Recovery

User Database Inaccessible

BACKUP/RESTORE Failures

Database Consistency Errors

Page 5: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

SQL Server Storage Internals

Database and File States

Resource Database

Catalog Views and System Base Tables

Allocation Structures

Database Checksum

Fast Recovery

Deferred Transactions

Read-Only Compressed Databases

Page 6: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

Storage Internals

Page 7: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

BACKUP/RESTORE Enhancements

BACKUPWITH CHECKSUM

Full-text integrated

RESTOREVERIFYONLY

WITH CONTINUE_AFTER_ERROR

Page Level Restore

Page 8: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

DBCC CheckDB Enhancements

Page 9: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

Data Recovery Scenarios

System Database Recovery

User Database Inaccessible

BACKUP/RESTORE Failures

Database Consistency FailuresRuntime Errors

DBCC CHECKDB Errors

Page 10: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

System Database Recovery

Recovering MasterFiles not available

Rebuild using Setup and Restore (you must reapply fixes)

Recovering ModelRebuild using Setup (you must reapply fixes)

Recovering MSDBSystem can still start but SQLAgent will not

instmsdb.sql not an option (at this time) to build clean

Page 11: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

System Database Recovery (2)

Recovering Resource DatabaseCopy the correct version of the files

Rebuild using Setup (you must reapply fixes)

Failure to create tempdbServer can start as long as primary files can be created

Operating System ReinstallationSQL Setup can reuse existing system databases

Page 12: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

System Database Scenarios

Page 13: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

BACKUP/RESTORE Scenarios

Page 14: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

DataConsistency Scenarios

Page 15: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

Summary

SQL Server 2005 greatly enhances data recovery capabilities

CHECKSUM can help detect problems early

Previous problems may not occur as often (Ex. Deferred transactions, read-retry)

Nothing substitutes a good backup

Page 16: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM
Page 18: Vinod Kumar Technology Evangelist Microsoft  · 2018. 10. 16. · Vinod Kumar M Subject: Tech·Ed North America 2009 Created Date: 5/20/2009 10:38:22 AM

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,

IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.