Presentation is loading. Please wait.

Presentation is loading. Please wait.

Partial Database Availability

Similar presentations


Presentation on theme: "Partial Database Availability"— Presentation transcript:

1 Partial Database Availability
High Availability Partial Database Availability

2 We would like to thank our Sponsors!

3 About me 10+ years experience with SQL Server Consultant Trainer
telecommunication banking transportation Trainer Contact

4 Agenda What does RPO/RTO mean? What HA/BC options are there?
What is a database? What is a database file? What is a filegroup? Bringing them together – Database, Filegroup, File Demo: creating a database with multiple files and filegroups Restore scenarios Disaster happens  Demo: Online piecemeal restore Additional materials/readings

5 What does RPO/RTO mean? RPO: Recovery Point Objective
What a customer wants is 0 What a DBA wants is >0  Plan backup strategy RTO: Recovery Time Objective Define/document restore steps Define/document case scenarios + script them! Practice, practice, practice!

6 What HA/BC options are there?
There are many different options in SQL Server like: Log Shipping Database Mirroring (Deprecated ) Failover Cluster Instance (FCI) Availability Groups (2012 or later version) Partial Database Availability

7 What is a database? Containers Tables Views Procedures Functions Users
Roles Schemas Boundaries Security Accounts Permissions Default collation Backed by Files Data files Log files Organized in filegroups

8 What is a database file? Every database has:
a primary data file: it contains the startup information for the database and points to the other files in the database. Recommended extension is mdf. optionally one or more secondary data file: it contains user-defind data. Recommended extension is ndf. a transaction log file: it holds the log information that is used to recover the database. There must be at least one log file for each database. Recommended extension is ldf.

9 What is a filegroup? Filegroup is a logical container for data files: group data files together for administrative, data allocation, and placement purposes. Every database has: a PRIMARY filegroup: contains the primary file. All system tables are allocated to the primary filegroup. optionally additional user-defined filegroup(s)

10 Bringing them together – Database, Filegroup, File
PRIMARY FG1 FGn File1.mdf File3.ndf FileN.ndf File2.ndf File4.ndf FileM.ndf FileX.ndf FileY.ndf FileZ.ndf Transaction log Log1.ldf logN.ldf

11 Demo device Original idea from Kimberly L.Tripp’s SQL MCM Readiness videos It is *NOT* production ready!!! 

12 Demo Creating a database with multiple files and filegroups

13 MultiFG Database PRIMARY FG1 FG2 MultiFG_Data – C:\ FG1_Data1 – E:\
FG2_Data1 – G:\ FG1_Data2 – F:\ FG2_Data2 – H:\ Transaction log MultiFG_Log – C:\

14 Restore scenarios Piecemeal restore can be: Depends on : offline
online Depends on : Recover models: full recovery model simple recovery model SQL Server edtion: Enterprise not Enterprise (Standard, Web, Express)

15 Disaster happens  PRIMARY FG1 FG2 MultiFG_Data – C:\ FG1_Data1 – E:\
FG2_Data1 – G:\ FG1_Data2 – F:\ FG2_Data2 – H:\ Transaction log MultiFG_Log – C:\

16 Demo online partial restore with Enterprise Editon + full recovery model

17 Additional materials/readings
SQL Server 2008 Microsoft Certified Master (MCM) Readiness Videos – Partial Database Availability & Online Piecemeal Restore: Piecemeal Restores: Piecemeal Restore of Databases With Memory-Optimized Tables:

18 We would like to thank our Sponsors!


Download ppt "Partial Database Availability"

Similar presentations


Ads by Google