Get the Most out of SQL Server Standard Edition

Slides:



Advertisements
Similar presentations
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
Advertisements

SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
Chapter 14 Chapter 14: Server Monitoring and Optimization.
Lesson 18 – INSTALLING AND SETTING UP WINDOWS 2000 SERVER.
1.1 Installing Windows Server 2008 Windows Server 2008 Editions Windows Server 2008 Installation Requirements X64 Installation Considerations Preparing.
SQL Server 2005 Database Engine Sommarkollo Microsoft.
Chapter 7: Configuring Disks. 2/24 Objectives Learn about disk and file system configuration in Vista Learn how to manage storage Learn about the additional.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
Presenter: Raman Chohan. AGENDA Oracle Best Practices Oracle Backups Why upgrade to Oracle 11? Performance Troubleshooting axiUm Pre-Upgrade Checklist.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
SQL Server 2008 for Hosting Key Questions to Address How can SQL Server save your costs? How can SQL Server help you increase customer base? How can.
SQL Server Performance Audit and Tuning Jason Pack.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
Oracle Memory Configuration on Windows Server Configuring Large Memory for Oracle on 32-bit and 64-bit Windows.
Chapter 7 Installing and Using Windows XP Professional.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Hands-On Microsoft Windows Server 2008
WINDOWS XP PROFESSIONAL Bilal Munir Mughal Chapter-1 1.
Troubleshooting SQL Server Enterprise Geodatabase Performance Issues
M ODULE 2 D ATABASE I NSTALLATION AND C ONFIGURATION Section 1: DBMS Installation 1 ITEC 450 Fall 2012.
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
Designing and Deploying a Scalable EPM Solution Ken Toole Platform Test Manager MS Project Microsoft.
Block1 Wrapping Your Nugget Around Distributed Processing.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
Chapter 10 System Monitoring Issues Performance Benchmarks NT Server Services Users and Server Access Information Task Manager for Applications Ram and.
 Database Administration Installing Oracle 11g & Creating Database.
ESRI User Conference 2004 ArcSDE. Some Nuggets Setup Performance Distribution Geodatabase History.
SQL Server 2000 Sys Admin Jeremiah Curtis Engineering Services
IS 221: DATABASE ADMINISTRATION Lecture 2: Installing Oracle 10g or 11g & Creating Database. Information Systems Department 1.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
TOP 10 Thinks you shouldn’t do with/in your database
CEG 2400 FALL 2012 Windows Servers Network Operating Systems.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
Copyright Sammamish Software Services All rights reserved. 1 Prog 140  SQL Server Performance Monitoring and Tuning.
1 BCS 4 th Semester. Step 1: Download SQL Server 2005 Express Edition Version Feature SQL Server 2005 Express Edition SP1 SQL Server 2005 Express Edition.
Get the Most out of SQL Server Standard Edition Or How to be a SQL Miser.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
ProgressBook Suite Maintenance
Installing Windows 7 Lesson 2.
SQL Database Management
Blue Collar SQL Tricks - Make Standard Edition Work for you.
SQL Server Performance Tuning
Lead SQL BankofAmerica Blog: SQLHarry.com
Hitting the SQL Server “Go Faster” Button
SQL Server Monitoring Overview
Designing Database Solutions for SQL Server
Windows Azure Migrating SQL Server Workloads
Installation and database instance essentials
Introduction of Week 3 Assignment Discussion
The Top 5 SQL Server Mistakes
Universal SQL Installations Framework (Script review and Demo)
Dynamics AX Performance
Hitting the SQL Server “Go Faster” Button
Configuring SQL Server
Windows xp professional
Oracle Architecture Overview
HC Hyper-V Module GUI Portal VPS Templates Web Console
SQL Server performance tuning on Azure IaaS
SQL Server performance tuning on Azure IaaS
Configuring SQL Server
Oracle Memory Configuration on Windows Server
AlwaysOn Availability Groups
Your Data Any Place, Any Time
Blue Collar SQL Tricks - Make Standard Edition Work for you.
Sql Saturday Philadelphia
Hybrid Buffer Pool The Good, the Bad and the Ugly
Presentation transcript:

Get the Most out of SQL Server Standard Edition Or How to be a SQL Miser

About Diane Since 1984, I have been in IT. My SQL language and data management experience began in the 90’s, using an Informix database with ARC/Info. I subsequently migrated the data into Oracle, becoming an Oracle Certified DBA. In the early 2000’s I developed data models with ERwin and databases in Oracle and SQL Server for web sites. In 2002 I became a SQL Server DBA for a very busy data center. Currently, as a SQL Server DBA at Economic Research Institute, I manage the database systems in a data center and a co-location site.

Why Standard Edition? SQL Server Enterprise Edition (EE) far more expensive than Standard Edition (SE) Many small business systems are SE Some applications delivered with SE

Pricing Windows 2008 R2 Edition Cost Standard Edition $1,209 Enterprise Edition $3,999 SQL Server 2008 R2 Edition Cost Per Processor $7,171.00 $27,495.00

Planning Identify which servers and applications might not require EE or are already SE What features do you really need? What actually improves performance for SE?

EE Features (not in SE) Primarily for very large databases Concurrency Transaction isolation Level Snapshot Partitioning Data Compression Backup Compression (before 2008 R2) Online Indexing Clustering more than 2 nodes Resource Governor

Limit Development Features Do not want to be dependent on EE features Development Same configuration as production Or consciously avoid EE features Critical to test in SE

Maximize Resources - RAM Windows Critical SQL Server After Windows is optimized

Maximize Resources - CPU 64 bit better than 32 bit Dual core better than single core Quad core better than dual core

Maximize Resources – I/O Same basic tuning as with EE Without the EE features

System Recommendations Windows Server 2003 R2+ Enterprise 64 bit Very important Higher maximum RAM SQL Server Standard Edition 64 bit 64 bit is highly recommended over 32 bit

Windows 2008 Windows 2008 R2 (64 bit only) Max SE 32 bit SE 64 bit EE 32 bit EE 64 bit RAM 4 GB 32 GB 64 GB 2 TB CPU 4 8

SQL Server 2008 R2 Max SE EE CPU 8 RAM 64 GB 2 TB Size 524 PB

Shock! n’ AWE! Windows Standard Edition 32 bit normally limited to 4GB RAM 2 GB for Windows 2 GB for application

Windows 32 bit (x86) Windows 32 bit enterprise or data center edition (not standard edition) Set PAE (Physical Address Extension) Edit Boot.ini Add to the last line: /PAE Reboot server for PAE to take affect

Shock! The available system RAM changed from 4 GB to 8 GB

AWE! SQL Server Set Address Windowing Extensions (AWE) Increases the available RAM for SQL Server Adjust the maximum memory in SQL SERVER

Enable AWE on 32 bit Enable in SQL Server Management Studio Right click the server Properties Memory Check mark: Use AWE to allocate memory Enter: Minimum server memory (in MB) Maximum server memory (in MB) Restart SQL Server service

Enable AWE on 32 bit Or use sp_configure sp_configure 'show advanced options', 1 RECONFIGURE GO sp_configure 'awe enabled', 1

Increase SQL Server Memory exec sp_configure 'show advanced options', 1; reconfigure; exec sp_configure; exec sp_configure 'min server memory (MB)', 2000; exec sp_configure 'max server memory (MB)', 6000; Restart SQL Server service

Lock Pages in Memory If you receive the following message Address Windowing Extensions (AWE) requires the 'lock pages in memory' privilege which is not currently present in the access token of the process. Set Lock Pages in Memory

Lock pages in Memory In 32 bit, available for SQL Server 2005 and above in 64 bit available for the following. Enterprise Edition 2005 and above Standard Edition 2005 SP4 CU4 and above, with trace flag 845 Standard Edition 2008 SP1 CU2 and above, with trace flag 845 Standard Edition 2008 R2, with trace flag 845

Lock pages in Memory Run gpedit.msc. Group Policy Computer Configuration Windows Settings Security Settings Local Policies Select User Rights Assignment folder. details pane

Lock pages in Memory Double-click Lock pages in memory Local Security Policy Setting Add User or Group Add an account with privileges to run sqlservr.exe (SQL Server Service) Enter the Windows account Restart SQL Server service

Turn off Hyper-Threading Turn off Hyper-Threading on the server Hyper-Threading and SQL Server both use the L1 cache Conflict with each other

Turn off Hyper-Threading If the number of CPUs is twice the physical processors, disable Hyper-Threading During boot up, get into the system settings Processor Settings Logical Processor Change from Enabled to Disabled Reboot Verify in Task Manager

Database Backup Compression 2008 R2 SE has backup compression 2005 and 2008 can use third party Red Gate SQL Backup Quest LiteSpeed Others

Performance Tuning Same as EE, except avoid EE features Tuning more critical in SE CPU directly affected by I/O I/O Efficient disk configuration Indexes Table variables vs temp tables Identify high cost queries dmv SQL Profiler

ALTER INDEX Use REORGANIZE instead of ONLINE ALTER INDEX MyIndexName ON MyTableName REORGANIZE; Concentrate on fragmented indexes Check the avg_fragmentation_in_percent in the dm_db_index_physical_stats

Database Files Tempdb and Database Percent growth Either can time out initial growth too small later grow too large Either can time out Optimal initial data and log sizes Even growth in MB instead

Database Files Transaction log Autoshrink Backup regularly Or set to SIMPLE Autoshrink Causes fragmentation Turn off autoshrink

Database Files Separate volumes for Data file and Log file Data file RAID 5, if possible RAID 10 Log file RAID 1 Tempdb Multiple Data Files One file per CPU

SQL Server Management Studio (SSMS) SSMS Complete SSMS Basic SQLCMD SQL Server PowerShell Policy Management Replication Integration Services Reporting Services Analysis Services Maintenance Plans SQL Server Agent SQL Server Profiler Data Collection Database Tuning Advisor

Recap Maximize Windows Server version Enterprise 64 bit Tune 32 bit SQL Server Standard Edition

More Information SQL Aloha Brad M. McGehee, Director of DBA Education, Red Gate Software http://www.bradmcgehee.com/2010/07/free-sql-server-dmv-starter-pack/ DMV#4: Query Stats – Find the "top X" most expensive cached queries

More Information SQL Server 2008 Management Tools Basic vs Complete Explained.... http://blogs.msdn.com/psssql/archive/2008/09/02/sql-server-2008-management-tools-basic-vs-complete-explained.aspx

Questions ??? LinkedIn PASS WIT Virtual Chapter PASS PNWSQL Chapter Slides will be on SQL Saturday #68 site