Administering Microsoft SQL Server 2012 Databases Jumpstart-Mod 1_final

37
George Squillace | Senior Technical Trainer – New Horizons Great Lakes Richard Currey | Senior Technical Trainer – New Horizons United Administering SQL Server 2012 Jump Start

description

Presentation

Transcript of Administering Microsoft SQL Server 2012 Databases Jumpstart-Mod 1_final

PowerPoint Presentation

George Squillace | Senior Technical Trainer New Horizons Great LakesRichard Currey | Senior Technical Trainer New Horizons UnitedAdministering SQL Server 2012 Jump Start 1Meet George SQUILLACESenior Technical TrainerNew Horizons Great Lakes (20 Years)SQL is in his name!Focused on database technologiesMCT Since 1997

28 Years Industry ExperienceSQL Server 2012: certified as MCSA, MCSE: Data Platform, and MSCE: Business IntelligenceCertified in every version of SQL Server since SQL 2000Certified in every version of Windows Server from NT 4.0 through Windows Server 2008Certified in Exchange Server 5.5 through Exchange Server 2007

2Meet Richard CurreySenior Technical Trainer New Horizons UnitedFocused on database and development technologiesMCDBA, MCITP Dev / Admin / BI, MCSE Data Platform, BIMCSD, MCPD Web Developer, ASP .NET Developer, Windows Developer28 Years Industry ExperienceDesigned, developed and managed BI-centric projects at several Fortune 500 organizationsExtensive consulting and Project Management background

3Course TopicsAdministering SQL Server 2012 Jump Start01 | Install and Configure SQL Server04 | Manage Data02 | Maintain Instances and Databases05 | Implement Security03 | Performance Optimization and Troubleshooting06 | High Availability Options

4Setting ExpectationsTarget AudienceDatabase professionals new to Microsoft SQL ServerAccidental DBAs and new database professionalsDatabase professionals who want to take exam 70-462 to get certified in administering Microsoft SQL Server 2012 databasesSuggested Prerequisites/Supporting MaterialBasic familiarity with Microsoft SQL Server and relational databasesWindows Server user interface and administration experienceCourse 10775, Administering Microsoft SQL Server 2012 DatabasesMS Press Book: Training Kit (Exam 70-462): Administering Microsoft SQL Server 2012 Databases

5Microsoft Virtual AcademyFree online learning tailored for IT Pros and Developers Over 1.3M registered usersUp-to-date, relevant training on variety of Microsoft productsEarn While You Learn! Get 50 MVA points for this event!Visit http://aka.ms/MVA-Voucher Enter this code: AdminSQL (expires 11/18/2013)

Join the MVA Community!601 | Install and Configure SQL ServerGeorge Squillace | Senior Technical Trainer New Horizons Great LakesRichard Currey | Senior Technical Trainer New Horizons UnitedClick to edit Master subtitle style7Module 1 OverviewInstallation DecisionsDesign the Storage for New Databases Plan for Growth and CapacityService Account Configuration8Topic: Installation Decisions9Topic: Installation DecisionsDetermine the Appropriate HardwareSelect the Appropriate Windows Operating System EditionSelect the Appropriate Edition of SQL ServerDetermine if a Separate Instance Is RequiredSelect the Appropriate Collation

10Determine the Appropriate Hardware

To virtualize or not to virtualize?CPU sockets and coresMemoryMemory support is a function of the Windows operating system or the chosen editionDAS versus SANConsider solid state storageFree, unsupported tools are available to help test I/O workloads:SQLIO disk subsystem benchmark toolSQLIOSIM11Select the Appropriate Windows Operating System EditionSpecific editions of SQL Server are supported on specific versions and editions of Windows Client and Windows ServerOne way or another, the following operating systems are supported: Windows Server 2012Windows Server 2008 R2 and Windows Server 2008 SP2Windows Vista, Windows 7, and Windows 8SQL Server 2012 is supported on Windows Server 2012 core and Windows Server 2008 R2 coreNo need to memorize all the combinations for the certification exam12Select the Appropriate Edition of SQL Server 2012 Editions to choose from are:Principal EditionsEnterpriseBusiness IntelligenceStandardEvaluationSpecialized Edition(s)WebBreadth EditionsExpressDeveloper13Determine if a Separate Instance Is RequiredEach instance will have its own set of services and service settingsSeparate administration requirementsSeparate instance-level configuration settingsSeparate SLAsSupport for separate collationsSupport for multiple versions of SQL Server Know which features can be installed as instances

14Select the Appropriate CollationWhat is a collation?What is the impact of collation choice during installation?Where can collation be specified?

15Specifying Collation at the Instance, Database, Column and Query LevelsDEMO16Topic: Design the Storage for New Databases17Topic: Design the Storage for New Databases Drive Layout: Design Windows File System for Expected I/O PatternsConsider Multiple Filegroup and Multiple Data File DesignsTable Partitioning Design

18Drive Layout: Design Windows File System for Expected I/O Patterns

Separate I/O activity on systems with heavy workloads:OS vs. data file(s) vs. log fileConsider separating TempDB workloadConsider adding multiple data files to TempDBUse appropriate RAID levels and parity when appropriateConsider adding multiple data files to TempDB for large workloads

19Consider Multiple Filegroup and Multiple Data File DesignsUse this advanced design technique for two reasons:PerformanceMore read/write heads involved in reading and writingMaintenanceSmaller units of data backed up/restored, indexes reorganized/rebuilt

20Table Partitioning DesignTable partitioning spreads the data of a single table over multiple filegroupsPurposeUse more read/write heads to separate I/O activity over separate partitionsEfficiently load new data into a (large) tablePerform index maintenance on a partition by partition basisConcept of index alignmentReferencesDesigning Partitions to Manage Subsets of DataSlidingWindow example

21Creating a Database with an Advanced DesignDEMO22Topic: Plan for Growth and Capacity23Topic: Plan for Growth and CapacityTwo DBA Cardinal SinsManual File GrowthFile Autogrow OptionsGrowth MonitoringShrinking Databases and Files

24Two DBA Cardinal SinsRunning out of space in a SQL Server data or log fileAllowing a data or log file to fill up a volume when autogrow is used25Manual File GrowthWhy manual?Timing and controlMethodsGUICode

26File Autogrow OptionsWhy autogrow?Percent vs. fixed sizeShould maximum file size be set?MethodsGUICode

27Growth MonitoringIf/when to shrink or growMonitoring tools and techniquesCode in agent jobsPerformance object alertManagement Data WarehouseCatalogs and DMVssys.database_filessys.dm_os_volume_statsStored proceduressp_SpaceUsedsp_DatabasesDBCC SQLPerf (logspace)28Shrinking Databases and FilesDatabases (all files) can be shrunkIndividual data and log files can be shrunkAutoshrink can be set as a database optionJust say NoTurned off by defaultManual shrinking only relevant in one context29Growing File Size Manually Using the GUI and CodeDEMO30Topic: Service Account Configuration31Topic: Service Account ConfigurationAccount Selection During InstallationChanging Account Choices After InstallationWhich tool? Why that tool?On What Basis Do I Select Accounts to Run Services?32Account Selection During InstallationBuiltin AccountLocal ServiceNetwork ServiceLocal SystemCreated AccountMachine LocalDomainGeneral rule: create a separate account for each service, for each instancereally!

33Changing Account Choices After InstallationUse SQL Server Configuration ManagerDont use the Services management console in Windows

34On What Basis Do I Select Accounts to Run Services?Database engine can use a low-privileged accountBrowser and Full-Text Services shouldnt require a domain account eitherSQL Server Agent may need access to:MailboxUNC shares and file systemsOther SQL ServersReference: Configure Windows Service Accounts and Permissions35Changing Service Account AssignmentDEMO362013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics 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.37