Deep Dive to SQL Server for 2013 SharePoint
-
Upload
rodrigue-kossi -
Category
Documents
-
view
225 -
download
0
Transcript of Deep Dive to SQL Server for 2013 SharePoint
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
1/47
1
Deep dive to SQL Server SharePoint 2013
SharePoint Saturday JerseySeptember 27th 2014
Go an !"#if#iSharePoint $%P$ana&in&'onsu(tant )eo*y
+&o ano"#if#i
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
2/47
2
Deep dive to SQL Server SharePoint 2013
SharePoint Saturday JerseySeptember 27th 2014Patri# Guimonet,ba(on
-enoit JesterSPasipe
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
3/47
./m from -e(&ium a ren#h spea in&&uy and they are ren#hie s
,po(o&ies for a##ent
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
4/47
./m not a rea( D-,$y ro(e
.nsta(( the SharePoint farm$ana&e so(utions deve(oped by deve(opers,dminister the arm,r#hite#tura( #han&es as de#isions5
6our ro(e$ana&in& the SharePoint Databases
$aintenan#e P(ansPerforman#e
.nsta((ation and 'on &uration of SQL Server-a# ups and $aintain
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
5/47
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
6/47
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
7/47
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
8/47
.#eber& SharePoint
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
9/47
SharePoint88
C# Silverlight ASP.NET
CSS JQuery XML
Web Services
SharePoint is not on(y D9%
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
10/47
SQL Server: on(y for .;
T-SQL Lin C#
!esign M" elis$ti"n
M!X%!AX
Sti(( Dev>
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
11/47
SharePoint
SQL Server
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
12/47
SharePoint ma es you &uys
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
13/47
;he SharePoint treearmServi#e ,pp(i#ationServi#e ,pp(i#ation D-Servers@eb ,pp(i#ationsSite 'o((e#tionsSitesLists
9(ements'ontent Database
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
14/47
EardBare =eFuirements ?SQLAPro#essor
4 bits: 4 #ores for sma(( dep(oyments?I 1C000 usersA
4 bits: #ores for medium dep(oyments?betBeen 1C000 and 10C000 usersA
=,$ G- for sma(( dep(oyments
?(ess than 1C000 usersA1 G- for medium dep(oyments
?betBeen 1C000 and 10C000 usersA
Eard Dis0 Go minimum
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
15/47
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
16/47
SQL use for SharePointDatabases to SharePoint 2013 are automati#a((y #reated Bith the SharePointProdu#ts 'on &uration @i"ard
Kse PoBerShe(( to #reate a namin& #onventionS%= D!$,.) 9)% P=!DK';
% )9!M6 P SharePoint% )9!M6 D SharePoint
$i#rosoft does not support dire#t Fuestionin& or #han&in& databases SharePoint2013SharePoint databases have diNerent O best pra#ti#es and (imitations that arenot standard for SQL Server
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
17/47
SQL Server 2012SharePoint oundation 2013 is not #ompatib(e for -.C 6ou need the 9nterpriseversion
SS=S is noB a dedi#ated servi#e in the'entra( ,dministration!r via PoBerShe((C
,(Bays!n
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
18/47
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
19/47
.n a feB Bords
.$E! R ;he SQL Server is the hart of your SharePoint armC
4 Layers
o SQL Servero A''lic$ti"n Server
o .nde* Servero 9*#e( ,pp(i#ation
Servero !thers5
o Web r"nt-En so W"r/st$ti"ns
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
20/47
-efore the insta((ation 6ou need to #hoose
SQL Server 9*press: Data#enter: Standard: 5SharePoint Server Stand a(one or not>
EardBareP%
Servi#e ,pp(i#ations that -usiness reFuiresKser Pro (e Servi#e ,pp(i#ation R 3 D-
Sear#h Servi#e ,pp(i#ation R >>EoB to #on &ure the Servi#e ,pp(i#ations R PoBerShe(( or K.>)amin& #onvention5,t (east 2 farms ? D and P AR !therBise you don/t have a Produ#tionenvC)ot more ideo(o&ies (i e )e*t )e*t inish
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
21/47
PrereFuisites for SharePoint 2013
Supported SQL Servers 9*press: Standard: 9nterprise: Data#enter)i#e to noBs
SQL Server 2014 needs 'K of may 2014 for SharePoint 2013 @indoBs 2012 =2 is on(y supported Bith SharePoint 2013 SP1
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
22/47
P(an your .nsta((ation
SP .nsta((se#urityadm
inLo#a(
,dministrator
Domain user
db#reator
,##ounts to p(an for a SharePoint farm insta((ation .nsta(( a##ount arm a##ount SQL Server a##ountP(an for (east
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
23/47
P(an: p(an and p(an a&ain ;his is the &o(den formu(a !) si0e1 22! 3 45 3 S5 6 278 9) 3 2L 624 3 !555
D R )umber of ! o#uments% R )umber of 4 ersionsS R ,vera&e S i"e of do#umentsC $ust be above eroL R )umber of List items
?DA 200:000
?SA 2T0 -?LA 00:000?%A 2
D- si"eR ???200:000 * 2AA U 2T0A 8 ??10 - U ? 00:000 8 ?200:000 * 2AAA 778:888:888 9) "r 78;
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
24/47
SQL Server 'on#eption
-DDsystVmes
$aster $ode(
;empD-$SD-
Kser D- SharePoint D-
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
25/47
EoB to insta(( SQL.nsta(( on(y the ne#essary SQL servi#es
SharePoint on(y needs Database 9n&ine Servi#es ?refC .ma&eA
,(Bays fo((oB the best pra#ti#es of $i#rosoft.f you have #orporate best pra#ti#esW that/s another storyKse dedi#ated a##ounts ?refC .ma&eA'on &ure the paths of data and (o& (e
Lo& arm ;ry to avoid mi*ed mode
!n(y @indoBs ,uthenti#ation
'on &ure the a(ertin& for spe#i # events has SQLS'!$5
@indoBs ireBa((7=**7=*=
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
26/47
.nsta((ation Settin&s?1X2A
=eferen#e ;homas %o#hten s(ides
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
27/47
.nsta((ation Settin&s ?2X2A
=eferen#e ;homas %o#hten s(ides
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
28/47
Dis Setup!riveLetter
Pur'"se L>N
' Y System ?!SA 1
D Y Kser Data 2
L Y SQL Lo& i(es 3
P Y Pa&e i(e 4
= Y Lo#a( -a# up Store T
S Y SQL Server SystemDatabases
;Y ;empD- 7
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
29/47
SharePoint/s Bay more frustrations,uto 'reate Statisti#s R oN ,uto Kpdate Statisti#s R oN $ode( Database is not rea((y used by SharePoint)amin& #onventions.mpa#t of SharePoint #reatin& databases
-a# upsE, Z D= te#hniFues
database options
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
30/47
?-A -est pra#ti#es of the instan#e$,MD!P shou(d be set to 1'o((ation Latin1 Genera( '. ,S S @S for SharePoint D-
.f not: you #annot #han&e itormat dis is the on(y Bay
Kse a dedi#ated SQL .nstan#eLimite the m[moire ?\0: 0A
ma*C
minCi(( a#tor at 0]
or SP2013 not anymore'reate a maintenan#e p(antempdb to modify
!n a speedy dis,uto&roBth in $-
9nab(e ba# up #ompression)! auto
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
31/47
$onitor SQL and SP$onitorin& Eea(th ,na(y"er: S'!$: PoBerShe((: Lo&s'ertaines bases de donn[es de #ontenu deviennent trop vo(umineuses ?SharePoint 2013A
'ontent databases #ontain orphaned ,pps ?SharePoint 2013ALa base de donn[es dispose de trop d/espa#e inuti(is[ ?SharePoint 2013ADes bases de donn[es e*istent sur des serveurs e*[#utant SharePoint oundation ?SharePoint 2013ADes bases de donn[es fon#tionnent en mode p(a&e de #ompatibi(it[: mise ^ niveau re#ommand[e ?SharePoint 2013ADes bases de donn[es n[#essitent une mise ^ niveau ou ne sont pas prises en #har&e ?SharePoint 2013ALes bases de donn[es dans #ette batterie de serveurs sont #on &ur[es en (e#ture seu(eC Pour _tre mises ^ niveau: e((es doivent _tre d[ nies en (e#ture
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
32/47
-a# up < Prin#ip(es ;ry to ba# up as mu#h as possib(e
'ontent D-/s are the most important-ut they are not a(one5
@indoBs (eve( ba# up sti(( needed=e#overy mode( Simp(e or u((
mode( R fu((tempD- R simp(e#ontentR fu((#on &uration R fu((servi#es ,pp(i#ations R simp(e X fu((
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
33/47
-a# ups -est Pra#ti#es ?1X2ASQL ba# up (o#a((y preferred
!n a diNerent hard dis SQL Server
SSD>.f netBor drive: (aten#y of 1 ms
Do not save a(( databases simu(taneous(yP(an
Data#enter.s there somethin& e(se a(ready runnin&
Performan#eKsa&e
,void havin& too (ar&e -DD=espe#t the best pra#ti#es
or #o((e#tion site: the strate&y diNers a##ordin& to si"e?PoBerShe((: SQL Server or DP$A
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
34/47
-a# ups -est Pra#ti#es ?2X2A$a e sure you have enou&h dis spa#ePeriodi#a((y test the ba# ups ,)D restoresSave the KLS (o&seep three ba# ups: in#(udin& one oN
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
35/47
Kse a dedi#ated SQL Serveror optima( performan#e Bhen operatin& server
farms: Be re#ommend that you insta(( SQL Server200 =2 Bith SP1 and SQL Server 2012 on $e ic$te server that is not runnin& "ther r"" $r, $n n ?n"t h"st $t$b$ses "r "ther$''lic$ti"ns
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
36/47
Parameters spe#i # to SQL ServerDo not enab(e the $ut",$tic cre$ti"n " st$tistics on hosts SQL Server and SharePoint ServerC ;his is n"t su''"rte Sh$reP"int ServerC $anua( a#tivation of the automati# &eneratiostatisti#s on a SharePoint database #an radi#a((y #han&e the e*e#utiop(an for a Fuery
Set the ma*imum de&ree of para((e(ism ? MAX!@P A of 1 fof SQL Server that host SharePoint databases to a sin&(e SQL Serverpro#ess is asso#iated Bith ea#h reFuestC
;o simp(ify maintenan#e: as to fa#i(itate movin& databases to anotherserver: #reate !NS $li$s that points to the .P address of a(( instof SQL ServerC
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
37/47
Dis s in SQL Server.mprove their performan#e ?from 30 to T0] A
ormat Bith 4 ); S a((o#ation'he# partition a(i&nment ?1024 A Bith PoBerShe(( s#ripts
;est the dis s ?Dis Se#onds Per =eadX@rite I 20 msASQL.!'rysta(Dis $ar
Some databases are used intensive(y ?tempdb: (o&s: sear#h: 5A=,.D 10Defra&ment the dis s Bhere #ontent databases are hosted
http://www.microsoft.com/en-us/download/details.aspx?id=20163http://crystalmark.info/software/CrystalDiskMark/index-e.htmlhttp://crystalmark.info/software/CrystalDiskMark/index-e.htmlhttp://www.microsoft.com/en-us/download/details.aspx?id=20163 -
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
38/47
SQL Server Dis s #on &urationDatabases must reside on separate dis s
;empdb-ases de #ontenuKsa&eSear#hLo&s SQL Server
Prioriti"e data on dis s ?from the more to the (ess fastA ;empdbDatabases ?(o&sASear#h databasesDatabases ?dataA
.f SharePoint is main(y used for readin&: prioriti"e data on (o&sSeparate data and (o&s on diNerent dis s
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
39/47
,(Bays !n ,vai(abi(ity Groups Z SharePoint
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
40/47
,( y , ( ( y p?E,A
SQL 7
A M 7
SQL +
Produ#tion Jersey
Ei&h
,vai(abi(ty
Syn#hronous
,(Bays !n ,vai(abi(ity Groups Z SharePoint
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
41/47
,( y , ( ( y p?E,A
SQL 7
A M 7
SQL +
Syn#hronous
Produ#tion Jersey
Ei&h
,vai(abi(ty
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
42/47
Database Support Syn# 'ommitDatabase Supported
,dmin 'ontent 6es
,pp $ana&ement 6es-D' 6es
'on & 6es
'ontent 6es
$ana&ed $etadata 6es
Performan#ePoint 6es
PoBerPivot )ot ;ested
Pro`e#t 6es
Sear#h ,na(yti# =eportin& 6es
Sear#h ,dmin 6es
Database SuppoSear#h 'raB( 6es
Sear#h Lin s 6esSe#ure Store 6es
State Servi#e 6es
Subs#ription Settin&s 6es
;rans(ation Servi#es 6es
KP, Pro (e 6es
KP, So#ia( 6es
KP, Syn# 6es
Ksa&e?R(o&&in&D-A 6es
@ord ,utomation 6es
,(Bays !n ,vai(abi(ity Groups Z SharePoint
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
43/47
,( y , ( ( y p?D=A
SQL 7
A M 7
SQL +
A M +
SQL *
Produ#tion Jersey
D=Paris
,syn#hronousSyn#hronous
b
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
44/47
Database Support ,syn# 'ommitDatabase Supported
,dmin 'ontent )o
,pp $ana&ement 6es-D' 6es
'on & )o
'ontent 6es
$ana&ed $etadata 6es
Performan#ePoint 6esPoBerPivot )ot ;ested\
Pro`e#t 6es
Sear#h ,na(yti# =eportin& )o
Sear#h ,dmin )o
Database Sup
Sear#h 'raB( )o
Sear#h Lin s )oSe#ure Store 6e
State Servi#e )o
Subs#ription Settin&s 6e
;rans(ation Servi#es 6e
KP, Pro (e 6eKP, So#ia( 6e
KP, Syn# )o
Ksa&e 6e
@ord ,utomation 6e
;his is a `ourney4C1 A e ic$teserver4C2 # id S
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
45/47
;his is a ourney0 Me,"ry $n CP>prereFuisite1 pa&e (e
3 !is/sc"n&gur$ti"n
3C1 ,((o#ation si"e3C2 ,(i&nment
2 PoBer !ptions
4C2 #onsider =-S4C3 an a(ias
T BTCTCTCTC4TCTC
SyTCTC
ShC1C2C3
;a eaBays
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
46/47
;a eaBays
SharePoint is Bhat it is: do not try to #han&e
@or Bith your SharePoint administrators-e aBare of the (imitationsnoB Bhat is supported or notGet invo(ved Bhen they are #onsiderin& usin&SharePoint
-
7/24/2019 Deep Dive to SQL Server for 2013 SharePoint
47/47
47
;han 6ou
=a e Pri"es at 1 00
1st SharePint in the Eote( -ar sponsored by'(oudshare 1 30
Go an: Patri# and -enoitSharePoint $%P