18

Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

Embed Size (px)

Citation preview

Page 1: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008
Page 2: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

Vinod KumarTechnology EvangelistMicrosoftwww.ExtremeExperts.com

Page 3: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

What We Will Cover

SQL Server Storage Internals

Important SQL Server 2005/2008 Enhancements

Data Recovery Scenarios and Troubleshooting Techniques

Page 4: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

Agenda

SQL Server Storage Internals

SQL Server 2005 Enhancements

System Database Recovery

User Database Inaccessible

BACKUP/RESTORE Failures

Database Consistency Errors

Page 5: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

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: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

Storage Internals

Page 7: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

BACKUP/RESTORE Enhancements

BACKUPWITH CHECKSUM

Full-text integrated

RESTOREVERIFYONLY

WITH CONTINUE_AFTER_ERROR

Page Level Restore

Page 8: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

DBCC CheckDB Enhancements

Page 9: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

Data Recovery Scenarios

System Database Recovery

User Database Inaccessible

BACKUP/RESTORE Failures

Database Consistency FailuresRuntime Errors

DBCC CHECKDB Errors

Page 10: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

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: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

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: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

System Database Scenarios

Page 13: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

BACKUP/RESTORE Scenarios

Page 14: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

DataConsistency Scenarios

Page 15: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

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: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008
Page 18: Admin Advanced Data Recovery And Troubleshooting With Sql Server 2008

© 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.