Upload
prageeth-athulathmudali
View
194
Download
2
Tags:
Embed Size (px)
DESCRIPTION
SQL Server 70-462 Exam Short Note. Planning SQL Server Install
Citation preview
PLANNING AN INSTALLATION OF
SQL SERVER 2012
INSTALLATION & CONFIGURATION TOPICS
Installation of SQL Server Instances. Planning Installation.
Hardware Requirements
Software Requirements
Planning For Storage & Growth
Benchmarking SQL Server
Installation Install an Instance
Command Line Install
Configuration File Install
Installation of Features. Reporting Services Native
Analysis Services
Reporting Services Native or SharePoint
Configure SQL Server Instances.
Manage & Configure Databases.
PLANNING AN SQL SERVER INSTANCE
Requirements
OS Requirements
Processor
MemoryHard Disk
Software
CRITERIA OF RESOURCES
Criteria's are based on
The Edition of SQL Server
The bit depth of SQL Server
X64
X86
Editions
Enterprise
BI
Standard
Web
Express/Express + tools
Developer
MAIN POINTS
X64 Versions of SQL 2012 supports only x64 OS only
X86 Versions of SQL 2012 supports both x64/x86 OS’s
OS Service Pack level is also important
Major OS Supports
Windows Server 2012
Windows Server 2008 R2 SP1
Windows Server 2008 SP2
Windows Vista SP2
Windows 7 SP1
Windows Server 2003 is not Supported
DEVELOPER/ EXPRESS / EXPRESS WITH
ADVANCED SERVICES / EXPRESS WITH
ADVANCED TOOLS
Developer/ Express/
Express With Advanced tools /Express with
advanced Services
Server 2008R2 Enterprise/ DC/
Standard/ Foundation/
Web
Server 2008 DC/ Enterprise/ Std/
Web
Windows 7 SP1 Ultimate
/Professional/ Home Premium/
Basic
Windows Vista SP2 Ultimate/
Enterprise/ Business/Home Premium/Home
Basic
SQL S. STANDARD
SQL Server
Standard
Windows Server 2008 R2 SP1 Datacenter, Enterprise, Standard,
Foundation, Web
Windows Server 2008
SP2DC/Enterprise/ Standard/ Web
Windows 7 SP1 Ultimate,
Enterprise, Professional
Windows Vista SP2 Ultimate / Enterprise /Business
SQL S. ENTERPRISE/ BI / WEB
SQL S. Enterprise/BI/Web
Windows Server 2008R2
Enterprise, DC, Standard, Web
Windows Server 2008 SP2
Enterprise/ DC/ Standard/ Web
PROCESSOR & RAM REQUIREMENTS (X64) –
ENTERPRISE/BI/WEB/STANDARD/DEVELOPER
Processor Types
Intel
Intel Xeon with EM64T Support
Intel P4 with EM64T
AMD
AMD Opteron
AMD Athlon 64T
Speed
Min 1.4 GHz
Recommended 2GHz
RAM
Min 1Gb
Recommended 4Gb or more
PROCESSOR & RAM REQUIREMENTS (X64) –
EXPRESS/EXPRESS WITH TOOLS/EXPRESS WITH
ADVANCED SERVICES
Same Processor Requirements
RAM
Min 512Mb
1Gb Recommended
PROCESSOR & RAM REQUIREMENTS (X86) –
ENTERPRISE/BI/WEB/STANDARD/DEVELOPER
P3 Compatible or Newer version
Processor
Min – 1GHz
Recommended 2GHz
RAM
Min 1Gb
Recommended – 4Gb or more
PROCESSOR & RAM REQUIREMENTS (X86) –
EXPRESS/EXPRESS WITH TOOLS/ EXPRESS WITH
ADVANCED SERVICES
Same as above
RAM
Min 512Mb
Recommended 1Gb
HARD DISK REQUIREMENTS
•811MbDatabase Engine/Full Text Search/Replication
•345MbAnalysis Services
•1823MbClient Components
•591MbIntegration Services
•243MbMaster Data Services
•304MbReporting Services & Report Manager
SOFTWARE REQUIREMENTS &
VIRTUALIZATION
.Net Framework 3.5 SP1
.Net Framework 4.0
IE 7 or above
Windows Power Shell 2.0
Virtualization
Hyper-v on Windows Server 2008R2 SP1 or Windows
Server 2008 SP2
CAPACITY CONSTRAINTS IN SQL SERVER
2012
Database Size < 524272 Terabytes
Maximum Data File Size < 16 Terabytes
Maximum Number of Instances 32767
Maximum 16 Columns per Primary Key
Maximum 253 Foreign Key References Per table
Maximum 32767 Connections Per instance
50 instances of Database Engine on a host
25 Instances of Database Engine on host if peer
to peer replication is used.
SELECTION OF FEATURES
Instance Features
Can operate Side by side
Act as separate instances of SQL Server
Shared Features
Shared among Instances
Need to install only once
INSTANCE FEATURES
Data Quality Services
Full Text Search/Semantic Extractions for Search
Replication
Database Engine Services
Analysis Services
Reporting Services -
Native
SHARED FEATURES
Reporting Services –Share
Point
Data Quality Client
SQL Server Data tools/
Master Data Services
Client tools Connectivity/SQL
client connectivity
SSMS Basic/ Comprehensive
Distributed Replay
Controller
Integration Services
SCALE UP VS. SCALE OUT
Scale Out
Increase capacity by
using multiple
instances of SQL
SERVER
Peer to Peer
replication/ Always on
Availability groups
Scalability – How well application
users increased resources to increase
capacity.
DATABASE GROWTH
Database size can be fixed / auto grow
Fixed databases minimize file fragmentation
Auautogrowth leads to file fragmentation.
Sp_spaceused to query space allocation in DB
Can Decrease the size by auto shrink property
Autoshrink leads to index fragmentation
Also can use dbccshrinkfile/dbccshrinkdatabase
Both require membership sysadmin fixed server
role or db_owner
Cant make a DB smaller than the initially
specified size.
DESIGN OF STORAGE
Primary
Contain startup information & pointers
Store Objects & Data
Every Database has a file
.mdf ext
Always in primary file group
Secondary
Optional
Store Data
..ndf extension
Spead across disk to improve performance
Can be in a primary or Secondary file group
Tx Log
Tx information
Change Vectors
.ldf ext
MSA VS. VIRTUAL ACCOUNTS
Managed Service Account
(MSA)
Domain managed Account
Pw managed by domain controller
Use a $ prefix (Contos/Ms$)
Service Principal registered under Active Directory
Virtual Account / Managed
Local Account
Local Accounts
Can access domain in network environment
Pw not required
NT Service/Servicename
WINDOWS & SERVICE LEVEL SECURITY
Windows Vista/ Windows
Server 2008
Network Service
•DE
•Agent
•Analysis
•SSIS
•RPT Service
•DRC
•DR Client
Local Service
• SQL Browser
• FD Launcher
Local system
•SQL S VSS Writer
WINDOWS & SERVICE LEVEL SECURITY
Windows 7 / Windows
Server 2008 R2
Managed Service Account
Virtual Account / Managed
Local Account
MSA VS. VIRTUAL ACCOUNTS (WINDOWS
7 & WINDOWS SERVER 20088 R2)
MSA / Local Service Account
Database Engine
SSIS
Integration Service
FD Launcher
DRC / Dis Replay Client
SQL Server Agent
Local System
SQL S. Browser
Local Service
SQL S. VSS Writer
INSTALL SQL SERVER ON A DOMAIN
CONTROLLER
Not Recommended by Microsoft
SQL S. in a domain controller can’t run under a
local service account
Member Server with SQL S. Can’t be promoted to
a domain controller
Can’t demote a SQL S. with domain controller as
a member server
In a RODC sql server cant create necessary
accounts and groups then installation fails.
CORE MODE INSTALLATION
SQL S. can be installed on Windows Server
2008r2 sp1 Core version
Osedtions Datacenter , Enterprise, Web &
Standard are supported
CORE MODE INSTALLATION
REQUIREMENTS
Requirements
.netFranework 2.0
sp1
.NET Framework
3.5 sp1
.netFramework
4.0
Windows installer 4.5
Powershell 2.0
CORE MODE INSTALLATION FEATURES
SUPPORTED
Core Mode
Support
DE
Replication
Full Text Search
Analysis Services
Client tools connectivity
Integration Service
BENCHMARKING SQL SERVER
Prior to Installing SQL Server DBA must perform an Benchmarking process
Validate the Server Resources against the Requirements of the Installation
SQLIO is tool dtermine the capacity of the IO Subsystem Measures
Measure I/O per/sec
Throughput Mb/sec
Latency
By reading & writing files of different sizes
Saturation point can be identified by increaseing the load
SQLIOSIM – is included in SQL 2012 instance
SQLIOSIM perform similar task it replaces SQLIOStress utility in earlier versions of SQL Server