Dealing with Database Corruption DBA 911. Who am I? 2 David M Maxwell twitter.com/dmmaxwell or twitter.com/upsearchsqltwitter.com/dmmaxwelltwitter.com/upsearchsql.

Slides:



Advertisements
Similar presentations
Module 20 Troubleshooting Common SQL Server 2008 R2 Administrative Issues.
Advertisements

DataBase Administration Scheduling jobs Backing up and restoring Performing basic defragmentation and index rebuilding Using alerts Archiving.
Backup, Integrity Check and Index and Statistics Maintenance
Vinod Kumar Technology Evangelist | Microsoft
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
1 CSSE 377 – Intro to Availability & Reliability Part 2 Steve Chenoweth Tuesday, 9/13/11 Week 2, Day 2 Right – Pictorial view of how to achieve high availability.
Chapter 8 : Transaction Management. u Function and importance of transactions. u Properties of transactions. u Concurrency Control – Meaning of serializability.
Backup, Integrity Check and Index and Statistics Maintenance
Transaction Management WXES 2103 Database. Content What is transaction Transaction properties Transaction management with SQL Transaction log DBMS Transaction.
Database Configuration and Maintenance Database Configuration and Maintenance Exam / 30.
Presented by Joseph Galvan & Stacy Kemp BACKUPS.  Using database backups, a database administrator (DBA’s) can restore from the last backup or to a specific.
Module 13 Automating SQL Server 2008 R2 Management.
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
Rajib Kundu Agenda Definitions Failover Cluster Database Snapshots Log shipping Database Mirroring.
Module 9 Planning a Disaster Recovery Solution. Module Overview Planning for Disaster Mitigation Planning Exchange Server Backup Planning Exchange Server.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Roy Ernest Manager of DBA Dept Pinnacle Sports Worldwide
Module 16: Performing Ongoing Database Maintenance
Introduction to Database Systems. RHS – Why databases are important Because we use databases all the time!! –Google –Youtube –Facebook –E-shopping.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
SQLintersection Understanding Transaction Isolation Levels Randy Knight Wednesday, 3:45-5:00.
Praveen Srivatsa Director| AstrhaSoft Consulting blogs.asthrasoft.com/praveens |
Digging Out From Corruption Eddie Wuerch, MCM - Principal, Database Performance - Salesforce Marketing Cloud Data protection and loss recovery with SQL.
SQL SERVER MAINTENANCE PLANS Kat
Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -
Establishing a Service Level Agreement SLA =tg= Thomas Grohser SQL Server MVP SQL Server Performance Engineering.
Linkedin: dennisegraham Dennis E Graham Reporting For SQL Health.
Microsoft SQL is known as RDMS (Relational Database Management System) which is developed by Microsoft and is highly used at corporate and enterprise.
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
Transactional Replication it’s not scary Evgeny Khabarov.
WHEN DATABASE CORRUPTION STRIKES Presented by Steve Stedman Founder/Owner of Stedman Solution, LLC.
SQLintersection Locks, Blocks, and Deadlocks Oh My! Randy Knight Wednesday, 2:15-3:15.
You Inherited a Database Now What?
Automated Restore Script Output for Ola Hallengren’s Maintenance Solution 1) Start SQL Services on Local 2) Connect to Azure AlwaysOn 3) Delete all maintenance.
Inside transaction logging
Transactional Replication Deep Dive
Justin Randall SQLintersection Session: Friday, 10:00am-11:15pm Automating SQL Server Administration Using SQLCMD Justin Randall.
Database Corruption Advanced Recovery Techniques|
Disaster Recovery and SQL for new and non-DBAs
Transactional replication
Introduction to SQL Server Management for the Non-DBA
Warner Chaves MCM / MVP / SQLTurbo.com / Pythian.com
Database Administration for the Non-DBA
SQL Recovery Freeware is the top notch tool to recover damaged MS SQL database.
Database Corruption Advanced Recovery Techniques
The Ultimate Maintenance Plan By Ed Roepe Perimeter DBA, LLC
Understanding and Handling Database Corruption
Making PowerShell Useful
On transactions, and Atomic Operations
Backup and Restore your SQL Server Database
Database Corruption Advanced Recovery Techniques
Inside transaction logging
Turbo-Charged Transaction Logs
Database Corruption Advanced Recovery Techniques
Warner Chaves MCM / MVP / SQLTurbo.com / Pythian.com
Backup to Basics Tom Fox
Warner Chaves MCM / MVP / SQLTurbo.com / Pythian.com
Understanding Transaction Isolation Levels
On transactions, and Atomic Operations
Making PowerShell Useful
The Ultimate Maintenance Plan By Edward Roepe Perimeter DBA, LLC
Database Corruption! Preventing Disaster to your Database
Disaster Recovery is everyone’s job!
You Inherited a Database Now What?
Advanced Recovery Techniques
Ch 10. Maintaining and Automating SQL Server
The DBA Quit and now you’re it:
Presentation transcript:

Dealing with Database Corruption DBA 911

Who am I? 2 David M Maxwell twitter.com/dmmaxwell or twitter.com/upsearchsqltwitter.com/dmmaxwelltwitter.com/upsearchsql or dmmaxwell.wordpress.com or upsearch.comdmmaxwell.wordpress.comupsearch.com –Scripts / Slides available here. Visit and find your ideal way to stay in touch.

Agenda Definitions of Consistency and Corruption Planning and Practicing Errors to Watch For Sample Corruption Scenarios 3

What are Consistency and Corruption? Consistency is an ACID property of transactions. –ACID = Atomic, Consistent, Isolated, Durable –Consistent = Transactions must follow rules. Corruption is the loss of Consistency. Almost always an IO subsystem problem. Occasionally a software error. May be delayed, but not prevented. 4

Planning for Corruption Determine the appropriate SLA – then exceed it. Monitor for corruption with Agent jobs and alerts. Document and test your plan. –Consider multiple paths to restoring service. Test your backups. Practice regularly. 5

Corruption Situations in Practice Don’t panic. Communicate appropriately. Run CHECKDB – and let it finish. Examine all the output carefully. Take your plan one step at a time. Document everything. 6

Errors to Watch For 823 – Read Failure 824 – Page Checksum Failure –Requires CHECKSUM page verification. 825 – Read Retry –Logged as a Severity 10 error. Won’t be caught by most systems. 833 – In-Memory Checksum Failure –Far worse than Error – Data Purity Error –Value stored is outside the range of the datatype. –SQL Server cannot repair this. 7

Demonstrations DBCC Commands Data Purity Error Nonclustered Index Corruption Single Page Repair via Restore Repair with Data Loss 8

Resources SQL Server Books Online: CHECKDB – Paul Randal’s Blog – from-every-angle/ from-every-angle/ Ola Hallengren Maintenance Procs – Minionware: Minion CHECKDB –Currently in Open Beta Emergency Mode Repair Playtime – mode-repair-playtime/ mode-repair-playtime/ 9

Thanks! David M Maxwell twitter.com/dmmaxwell or twitter.com/upsearchsqltwitter.com/dmmaxwelltwitter.com/upsearchsql or dmmaxwell.wordpress.com or upsearch.comdmmaxwell.wordpress.comupsearch.com –Scripts / Slides available here. Visit and find your ideal way to stay in touch. 10