SCUG.BE introduction

Report
SCUG.be
Setting up & Configuring SQL Server to support your SCCM
& SCOM environment
SCUG.BE introduction
•
Mission
• “To be the single point of entry for the Belgian System Center
Community”
•
Founders:
•
•
•
•
Alexandre Verkinderen (SCUG.BE Founder, MVP, SCOM Expert)
Kenny Buntinx (SCCM Expert)
Kim Oppalfens (MVP, SCCM Expert)
Yves Janssens (Webmaster)
Activities
Online presence
Events
Live Meetings
Agenda








Introduction
Session objectives and Key Takeaways
Setting up SQL
Configuring SQL
Maintaining SQL
Useful SQL Queries
Summary
Q&A
Session Objectives and Key Takeaways
How to setup SQL for System Center
Tips to have a good initial setup and
configuration
What do you need to configure on your
SQL
Best practices for maintaining your SQL
Setting Up your SQL
Installing SQL
Choose the correct Hardware Config
Choose the correct SQL Version
Clustering and Replica’s
SQL Reporting Services for SCCM/SCOM
Named Instances
Firewalls
SQL Services accounts
SQL Collations
Authentication modes
Hardware config
SCOM
SCCM
•
•
X64 Processor
3 disk Minimum
•
3 disk Minimum
•
Ideal
•
Ideal
•
Raid Controller with BBWC
• 1 OS, 1 SCOM + SQL; 1
Transaction logs
• Ideal RAID 10
• Separate box for SCOM & DB
• X OS; Y SQL; Z TEMPDB; X
SCOM
• Multiple files for the db (equal
to number of cpu’s)
• Multiple files for tempdb
(number of cpu’s /2)
• Allocate 75% to write caching
• 1 OS; 1 SQL + SCCM; 1
Transaction logs
• Ideal RAID 10
• Single box for SCCM &
DB
• X OS; Y SQL; Z TEMPDB;
X SCCM
• Multiple files for the db
(equal to number of
cpu’s)
• Multiple files for tempdb
(number of cpu’s /2)
SQL Version
SCOM 2007 SP1
SQL 2005 SP1/SP2/SP3
No hotfixes required
SCOM 2007 R2
SQL 2005 SP1/SP2/SP3
No hotfixes required
SQL 2008 SP1
No hotfixes required
SCOM With SQL
technology
Standard edition should
be fine for just about
anybody exeption for
ACS
SCCM
SQL 2005 SP2/SP3
No hotfixes required
SQL 2008 RTM /SP1
RTM - apply hot fix
KB955229
SP1 - apply hot fix
KB955262
SCCM With SQL
technology
Standard edition should
be fine for just about
anybody
SQL Reporting Services
SCOM
SSRS can only be
used for SCOM
Don’t use Sharepoint
Integration
(KB946419)
ResetSRS.exe
SCCM
Added to SCCM 2007
R2 for reporting
functionality
Web reporting still
available
Only reporting tool
for SCCM v.Next
Clustering and replicas
SCOM
SCCM
Log shipping
Clustering
Run DBCreateWizard.exe
Server Role
Cluster
Operations
database
Single ActivePassive cluster
Root
management
server
Single ActivePassive cluster
Opsmgr
Reporting data
warehouse
Single ActivePassive cluster
Audit collection
database
Single ActivePassive cluster
Replica’s supported
for MP, SLP and SUP
Clustering only for
SQL
Installs VSS service
Requires sysadmin for
Site server
WBEM provider not
“clusterable”
Firewall Configuration
SCOM
TCP 1433 by default
Named Instance of
SQL
UDP 1434
Custom TCP port of
named instance
If Static port is defined
after installation
Edit the
dbo.MT_ManagementGroup
table with the static port
number.
Edit the registry to configure
the static port number on the
RMS
SCCM
TCP 1433 by default
Named Instance of
SQL
UDP 1434
Custom TCP port of
named instance
Named instances
SCOM
Supported
SCCM
Supported since
ConfigMgr 2007
Support for SQL
Reporting 
Named SRS installed
first
Default instance
installed afterwards
SQL Service Accounts
If SQL is running as a domain user
setspn –A MSSQLSvc/<SQL
Netbiosname>:<SQLPORT>
<Domain\Account>
setspn –A MSSQLSvc/<SQL
FQDN>:<SQLPORT> <Domain\Account>
SQL Collations
SCOM
SQL_Latin1_General_
CP1_CI_AS
Dictionary order,
case-insensitive, for
use with 1252
Character Set
(default)
SCCM
Dictionary order,
case-insensitive, for
use with 1252
Character Set
(default)
Other collations
including casesensitive supported,
yet impractical
Authentication modes
SCOM
Windows
authentication mode
Minimizes attack
surface
Reporting DW across
a firewall
Create Run-As account
Use SQL Authentication
SCCM
Windows
authentication mode
Minimizes attack
surface
Configuring SQL
Configuring SQL
Configure memory limit so SQL can’t use
it all
Leave 2 GB minimum for the OS & SCOM or
SCCM
Protocols (tcp/ip – named pipes)
Configuring SCOM DB’s
Opsmgr DB grooming
Default 7 days => 2 days
p_PartitioningAndGrooming
PartitionAndGroomingSettings table
Opsmgr DW grooming
10 to 400 days
Data is not always groomed row-by-row
Report Caching
Schedule reports with “Null Delivery Provider”
DB Hotfixes
KB 969130
KB 960363
Security
If administrators != SA
Create Login [Domain\siteserver$] from
windows
Create Login [Domain\sqlserver$] from
windows
Demo
Maintaining
Healthchecks
SCOM
SQL
Disk space of DB’s
SCOM
Regular healtchecks
Clean up LocalizedText
table (boost UI
performance ! )
SCCM
SCCM
Built-in tasks
Backup
SCOM
Opsmgr VSS Writer
SQL
Master, MSDB
ReportserverDB
SCOM
OperationsManagerDB
OperationsManagerDW
OperationsManagerAC
Encryptionkeys
Securestoragebackup
Management packs
Custom reports
SCCM
Database Recovery
models
Simple
Bulk-logged
Full
SCCM
Built-in task (once a
day)
On demand start
backup service
Useful SQL Query’s
DBCC CHECKDB, sp_monitor, sp_spaceused, sp_who, xp_sqlmaint
Large table query, with rowcount
SELECT so.name, si.rowcnt as row_count,
8 * Sum(CASE WHEN si.indid IN (0, 1) THEN si.reserved END) AS data_kb, Coalesce(8 * Sum(CASE WHEN
si.indid NOT IN (0, 1, 255) THEN si.reserved END), 0) AS index_kb,
Coalesce(8 * Sum(CASE WHEN si.indid IN (255) THEN si.reserved END), 0) AS blob_kb
FROM dbo.sysobjects AS so JOIN dbo.sysindexes AS si ON (si.id = so.id)
WHERE 'U' = so.type GROUP BY so.name, si.rowcnt ORDER BY data_kb DESC
Examine Data Warehouse grooming settings
SELECT AggregationIntervalDurationMinutes, BuildAggregationStoredProcedureName,
GroomStoredProcedureName, MaxDataAgeDays, GroomingIntervalMinutes FROM
StandardDatasetAggregation
Is SQL broker enabled?
SELECT is_broker_enabled FROM sys.databases WHERE name = 'OperationsManager‘
How to identify your version of SQL server
SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY
('edition')
Update Statistics
EXEC sp_updatestats
Reindex the database
USE OperationsManager
go
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
SET ARITHABORT ON
SET CONCAT_NULL_YIELDS_NULL ON
SET QUOTED_IDENTIFIER ON
SET NUMERIC_ROUNDABORT OFF
EXEC SP_MSForEachTable "Print 'Reindexing '+'?' DBCC DBREINDEX ('?')"
Demo
Sumary
SCOM
SCCM
SQL
SQL
Configure memory limits
Separate from your
SCOM box
SCOM
Grooming jobs
LocalizedText Table
Keep your DB’s small
ACS
Seperate ACS box
Tight filters
Thanks
•
Cameron Fuller
• Http://ops-mgr.spaces.live.com
• System Center Operations Manager 2007 Unleashed
Arie de Haan
• Kerrie Meyler
•
• Http://ops-mgr.spaces.live.com
• System Center Operations Manager 2007 Unleashed
•
Pete Zerger
• Founder, System Center Central:
http://www.systemcentercentral.com
• Founder System Center Virtual User Group
http://www.systemcenterusergroup.com
Resources
SCOM
Opsmgr Community
http://technet.microsoft.com/enus/opsmgr/bb499673.aspx
Opsmgr Support Team Blog
http://blogs.technet.com/operations
mgr/
Opsmgr Product Team Blog
http://blogs.technet.com/momteam/
default.aspx
Contact Information
Email: [email protected]
IM: [email protected]
Blog: http://scug.be/blogs/scom
SCCM
Configmgr community
http://technet.microsoft.com/enus/configmgr/bb625749.aspx
ConfigMgr Team blog
http://blogs.technet.com/configmgrtea
m/
ConfigMgr Forums
http://social.technet.microsoft.com/For
ums/enUS/category/configurationmanager/
Myitforum community
http://myitforum.com/articles/42/sectio
n.asp
Contact Information
Email: [email protected]
IM: [email protected]
Blog: http://scug.be/blogs/sccm
Q&A
SCUG.be
Thank You!

similar documents