DELLPOWERSOLUTIONSReprintedfromDellPowerSolutions,February2006.
Copyright2006DellInc.
Allrightsreserved.
February200626DATABASES:SQLSERVER2005Enterprisedatacentersthathostbusiness-criticalappli-cationsanddatabasescanbeatriskfromfailuresanddisasters.
Availabilityandrecoverabilitybecomecrucialforbusinessoperations.
Currentdatabaseavailabilitytechnolo-giesvaryintheircomplexity,cost,levelofautomation,incurreddowntime,andsupporteddistance.
Amajorchal-lengeforanenterpriseisdeterminingthemostcost-effectiveandleastcomplexsolutiontohelpensuredatabaseavail-abilityandmeetbusinessneeds.
MicrosoftSQLServer2005introducesseveralhigh-availabilityfeaturesandfeatureenhancementsfortheSQLServerdatabaseplatform.
FailoverclusteringFailoverclusteringwithMicrosoftClusterService(MSCS)isapopularwaytoachievehighavailabilityforSQLServer.
WithMSCS,multipleserversornodesarelinkedtofunctionasasinglesystemandprovideanautomaticfailoversolution.
Enterprisesareconnectedtovirtualserv-ersandnotphysicalservers;eachactivephysicalservermayhostoneormorevirtualservers.
Ifoneofthephysicalserversfailsbecauseofeitherahardwareorsoftwareproblem,MSCSdetectsthefailureandmovesresourcesthatresideonthefailingserver—includingthevirtualserver(s)—tooneormoreremainingphysicalservers.
EndusersconnectedtothefailedserverobserveonlyamomentarydelayinaccessingitsresourceswhileMSCSrestartsSQLServerservicesontheremainingserver(s)andremapsthevirtualserverconnections.
Installingafailoverclusterrequiresthefollowing:MicrosoftWindows2000Server(AdvancedServerorDatacenterServer)orMicrosoftWindowsServer2003(EnterpriseEdition,DatacenterEdition,Enterprisex64Edition,orDatacenterx64Edition)MicrosoftSQLServer2005(StandardEditionorEnterpriseEdition)SharedstoragebasedonSCSI,FibreChannel,orSerialAttachedSCSIAllcomponents(server,hostbusadapter,andstor-agesystem)andtheclustersolutionlistedintheMicrosoftWindowsServerCatalogFigure1showstwotypicaltwo-nodefailoverclusterconfigurationsforSQLServer2005,oneinactive/passiveBYANANDASANKARAN,DATNGUYEN,ANDNAMNGUYENExploringHigh-AvailabilityFeaturesinMicrosoftSQLServer2005sMicrosoftSQLServer2005offersfailoverclustering,databasemirroring,logshipping,replication,anddatabasesnapshotfeaturesthatcanhelpsafeguardanenterprise'scriticaldataandoperations.
Thisarticlediscussesthesefeaturesandtheirassociatedtrade-offs.
RelatedCategories:ClusteringDatabaseHighavailability(HA)MicrosoftSQLServer2005Visitwww.
dell.
com/powersolutionsforthecompletecategoryindex.
DATABASES:SQLSERVER2005www.
dell.
com/powersolutionsReprintedfromDellPowerSolutions,February2006.
Copyright2006DellInc.
Allrightsreserved.
DELLPOWERSOLUTIONS27modeandoneinactive/activemode.
Inafailoverclusterenvi-ronment,SQLServer2005offersseveraladditionalfeaturesandimprovementscomparedtoSQLServer2000:Supportformultinodeclustering:StandardEditionallowsuptotwo-nodeclusteringandEnterpriseEditionuptoeight-nodeclustering.
SupportforSQLservices:AnalysisServicesfeatureoffersmulti-instancesupportandfull-textindexing.
Easierinstallation:SystemConfigurationCheckautomati-callydetectsandinstallsSQLServerasvirtualserversacrossthenodesinthecluster.
DatabasemirroringDatabasemirroringisdesignedtoaugmenttheavailabilityofSQLServer2005.
Withthisfeature,transactionstoadatabasehostedonaSQLServerinstance,referredtoastheprincipal,canbecon-tinuouslyduplicatedinrealtimeontoacopyhostedonanotherinstance,referredtoasthemirror.
Theprincipalandmirrorserversareconsideredpartnersinadatabasemirroringsession.
Transac-tions(suchasinsertions,updates,anddeletions)ontheprincipaldatabaseareduplicatedbycontinuouslysendingtransactionlogrecordstothemirroroverthenetwork(seeFigure2).
Themirrorreceivesthelogrecordscontinuouslyandrestoresthem.
Iftheprincipalormirrorserverincursafailure,themirror-ingsessionisdisconnected.
Beforestartingthemirroringsession,administratorsmustinitializethemirrordatabasefromaprincipaldatabasefull-restorewiththeNORECOVERYoption.
Besidestheprimaryandmirror,amirroringsessionmayincludeanoptionalthirdserver,referredtoasthewitness.
Thewitnessserverenablesautomaticfailoverafteraprincipalserverfailurebypromotingthemirrortofunctionastheprincipal.
Usingawitnessserverhelpsachieveaquorumandpreventsaccidentalpromotionofthemirrordatabasethatresultsfromcommunicationfailuresbetweentheprincipalandmirror.
Databasemirroringrequiresthefollowingconfiguration:Theprimaryandmirrordatabasesmustbehostedonsepa-rateSQLServer2005instances.
TheprincipaldatabasemustbesettotheFullRecoverymodel,nottheBulk-LoggedRecoveryorSimpleRecoverymodel.
Databasemirroringcanbeconfiguredinanyofthefollowingthreeoperatingmodesbasedontransactionsafetylevelandthepresenceofawitnessserver:High-availabilitymode:Inthismode,logrecordsaretrans-ferredsynchronouslyfromtheprincipaldatabasetothemirror.
Theprincipalwaitsforanacknowledgmentfromthemirrorbefore"hardening"logrecordstoitsdisk.
Inadditiontoprovidingsynchronoustransfer,thismodeusesawitnessservertoenableautomaticfailover.
High-protectionmode:Thismodeissimilartothehigh-availabilitymodeexceptthatitdoesnotsupportawitnessserver,andthusautomaticfailoverisnotpossible.
However,failovercanbeperformedmanuallytopromotethemirrordatabase.
Becausethelogrecordsaretransferredsynchro-nouslyinthismode,themirrordatabaseissynchronousandconsistentwiththeprincipal.
High-performancemode:Inthismode,logrecordsaretransferredasynchronouslyfromtheprincipaltothemirrordatabase.
Theprincipaldoesnotwaitforanacknowledg-mentfromthemirrorbefore"hardening"itslogstothedisk,Figure1.
FailoverclusterconfigurationsforSQLServer2005SQLServer2005db1db2SQLServer2005HeartbeatLANActivePassiveSQLServer2005db1SQLServer2005HeartbeatLANActiveActivedb2Figure2.
Databasemirroringfordatabasedb1inhigh-availabilitymodeLANPrincipalMirrordb1db2db3SQLServer2005db5db6SQLServer2005SQLServer2005db1TransactionlogrecordsLogrecoveryWitnessDATABASES:SQLSERVER2005DELLPOWERSOLUTIONSReprintedfromDellPowerSolutions,February2006.
Copyright2006DellInc.
Allrightsreserved.
February200628andthemirrorisnotguaranteedtobesynchronouswiththeprincipalatanypoint.
Thismodedoesnotsupportawit-nessserver,andthusneitherautomaticnormanualfailoverispossible.
However,aforcedfailovercanbeperformedtorecoverthemirror,withsomedatalossoccurringbecausemirroringisasynchronous.
Akeyadvantageofdatabasemirroringisthatitprovidesquickfailoverandhighavailabilitywithminimalhardwarecostandcomplexity.
Formerly,suchSQLServermirroringsolutionswereoftenfeasibleonlywithexpensive,proprietaryhardware-basedmechanisms.
Withacceptablelatenciesandbandwidth,mirroringcanbedeployedoveralong-distancewideareanetwork(WAN)aspartofadisasterrecoverysolution.
Duringthemirroringsession,themirrordata-baseisnotavailableforclientaccessbecauseitisinarecoverystate,butadatabasesnapshotcanbecreatedonthemirrorforlimitedreporting.
Onlyonemirrordatabasecanbeestablishedforaprinci-paldatabase.
However,theparticipatingSQLServerinstancescanassumediffer-entrolesfordifferentmirror-ingsessions.
Forexample,aSQLServerinstancecanserveasaprincipalforonedatabase,asamirrorforanotherdatabase,andasawitnessforyetanothermirroringsession.
Thenotionofavirtualserver,asisusedinfailoverclustering,doesnotexist.
However,MicrosoftADO.
NETprovidesanapplicationprogramminginterface(API)forclientstoautomaticallyreconnecttothemirrorserverduringfailures.
LogshippingLogshippingissimilartodatabasemirroring.
Itallowsadatabasehostedonaprimaryservertoautomaticallysendtransactionlogstoasecondarydatabaseforduplication.
Thelogrecordsarenottransferredcontinuouslyasindatabasemirroring,butratherinintervals.
Logshippingcomprisesbackingupthetransactionlogsontheprimaryserverinstance,copyingthebacked-uplogstothesecondaryserverinstance,andrestoringthecopiedlogsonthesecondaryserverinstanceperiodically.
TheprimarydatabaseshouldbeconfiguredfortheFullRecoveryorBulk-LoggedRecoverymodel.
ThesecondarydatabaseshouldbeinitializedbyafullrecoveryoftheprimarydatabasewiththeNORECOVERYorSTANDBYoption.
Logshippingcanoptionallyincludeathirdservernamed"mon-itor"torecordthehistoryoflog-shippingoperationsandtoraisealertsduringfailures.
Log-shippingoperationsarecarriedoutbyfourMicrosoftSQLServeragentjobs:backupjob,copyjob,restorejob,andalertjob.
Duringlogshipping,thesecondarydatabaseisnotcompletelysynchronizedwiththeprimarydatabase.
Also,logshippingdoesnotprovideautomaticfailovertothesecondaryserverduringafailure.
Logshippingsupportsmultiplesecondaryserversforaprimaryserver.
Inaddition,aSQLServerinstancecanfunctionasasecondaryormonitorserverformultipleprimaryservers.
Thesecondaryservercanbeuseddirectlyforlimitedqueryprocessing.
Logshippingcanbeusedinscenarioswheremultipledestina-tionserversareneededandwheredelaysinrestoringlogsontheduplicateareacceptable.
ReplicationReplicationisasetoftechnologiesfordistributingdataanddata-baseobjectsacrossMicrosoftSQLServerdatabasesoveranet-work.
Replicationinvolvesapublisherdatabaseinstancethatmakesdataavailableforcopying,adistributorinstanceforcopyingdataandmaintainingmetadata,andsubscriberinstancesthatcanreceivereplicateddata.
SQLServer2005providesthreetypesofreplicationtech-nologiessuitablefordifferentneeds:transactional,merge,andsnapshot.
SQLServer2005addsenhancementstotheserepli-cationmethodstohelpimprovescalability,performance,andmonitoringcapabilities.
Someoftheimprovementsincludeadditionalreplicationdatatypes,supportforpartitionedtablesandfull-textindex,directDataDefinitionLanguage(DDL)replicationforschemachanges,andreplicationfromOracledatabases.
Intransactionalreplication,SQLServer2005addsanimpor-tantfeaturecalledpeer-to-peerreplication,whichenhancestheexistingbidirectionalreplicationoption.
Advantagesofreplicateddatabasesincludedataloadbalancinganddisasterrecovery.
Withthepeer-to-peerreplicationfeature,administratorscansetupmultiplepeer-to-peertransactionalreplicationpairsamongdifferentdatacenters.
Thatway,ifonedatacenterisdown,itcanbefailedovertoitspeercenter(s).
Althoughthereisnolimittothenumberofnodesinapeer-to-peertopology,man-ageabilityofthepeer-to-peerrelationshipsbetweennodescanbecomeaconstraint.
SQLServer2005providesthreetypesofreplicationtechnologiessuitablefordifferentneeds:transactional,merge,andsnapshot.
SQLServer2005addsenhancementstothesereplicationmethodstohelpimprovescalability,performance,andmonitoringcapabilities.
DATABASES:SQLSERVER2005www.
dell.
com/powersolutionsReprintedfromDellPowerSolutions,February2006.
Copyright2006DellInc.
Allrightsreserved.
DELLPOWERSOLUTIONS29DatabasesnapshotsAdministrativeandapplicationerrorscanbeamajorcauseofdatabasedowntime.
SQLServer2005introducesafeaturecalledData-baseSnapshotstohelpprotectadatabasefromerroneoususeroperationsandtoaugmentdatabasebackupandrestoreoperations.
TheDatabaseSnapshotsfeatureallowsrecoveryfromusererrorsbyallowingthedatabasestatetoreverttoapointintimebeforetheerror(s)occurred.
Itworksinstand-alone,failoverclus-tering,anddatabasemirroringenvironments.
However,itdoesnotworkwithalog-shippingsecondarydatabase.
Adatabasesnapshotisasnapshotofanentiredatabaseatagiventime.
Thesnapshotiscreatedinstantlyandcanbeusedforread-onlytaskssuchasreporting.
Asnapshotmusthavebeencre-atedbeforetheerroroccurredforanadministratortorestorethedatabasetoaconsistentstate.
Snapshotcreationdoesnotimposerestrictionsonthebasedatabaseoperations.
Administratorscancreatemultiplesnapshotsfromadatabaseaswell.
TheSQLServer2005DatabaseSnapshotfeatureemploysacopy-on-writemechanism.
Onlychangestothebasedatabase—nottheentirebasedatabase—arerecordedafterthesnapshothasbeentaken.
Thesnapshotisapointerimagetothebasedatabase.
Itsharestheunchangedpagesofthebasedatabaseandrequiresonlyextrastorageforchangedpages.
TheDatabaseSnapshotmechanismisillustratedinFigure3.
TheDatabaseSnapshotfeatureisdesignedtobeextremelyspace-efficient.
Anymodificationsuchasawrite(step1inFigure3)tothebasedatabaseafterasnapshotistakenwillberecorded(step2inFigure3)aspartofthetargetsnapshot.
IfI/Oreadrequests(step3inFigure3)aretoblocksthathavenotchangedsincethesnapshotwascreated,thentherequestwillreadfromthebasedatabase.
IfI/Orequestsaretoblocksthathavechangedsincesnapshotcreation,thentherequestwillbereadfromthesnapshot.
Figure4summarizesthehigh-availabilityfeaturesandoptionsavailableinMicrosoftSQLServer2005.
Ahigh-availabilitydatabaseplatformMicrosoftSQLServer2005offersseveralfeaturesthataredesignedtohelpaugmentavailabilityofdata.
DellPowerEdgeservers,DellPowerVaultstorage,andDell/EMCstoragearealsodesignedwithabroadarrayofredundanthardwareandsoftwarefeaturestomaximizehardwareavailability.
ThefeaturesinDellhardwareandSQLServer2005provideanintegrated,industry-standardapproachtohighdatabaseavailability.
Acombinationofthesecomponentscangreatlybenefitenterpriseswithhigh-availabilitydatabaserequirements.
AnandaSankaranisasystemsengineerintheHigh-AvailabilityClusterDevelopmentGroupatDell.
Hiscurrentinterestsrelatedtohigh-availabilityclusteringincludestoragesystems,applicationperformance,businessconti-nuity,andclustermanagement.
Anandahasamaster'sdegreeinComputerSciencefromTexasA&MUniversity.
DatNguyenisasystemsengineerintheHigh-AvailabilityClusterDevelop-mentGroupatDell.
Hisresponsibilitiesincludedevelopingstorageareanetwork(SAN)–basedhigh-availabilityclusteringproducts.
Hiscurrentinterestsareinenterprisestorageproductsandtechnologies.
DathasaB.
S.
inElectricalEngineeringfromtheUniversityofHouston.
NamNguyenisaseniorconsultantintheHigh-AvailabilityClusterDevelop-mentGroupatDell,andtheleadengineerforDellFibreChannelPowerEdgeClusterproducts.
Hiscurrentinterestsincludebusinesscontinuity,cluster-ing,andstoragetechnologies.
HehasaB.
S.
andanM.
S.
inElectricalEngineeringfromTheUniversityofTexasatAustin.
FORMOREINFORMATIONMicrosoftSQLServer2005:www.
dell.
com/sqlwww.
microsoft.
com/sqlFigure3.
DatabaseSnapshotmechanisminSQLServer2005123456789101112123456789101112123SnapshotsPageBasedatabaseFigure4.
High-availabilityoptionsandfeaturesinSQLServer2005Solution-specicAutomaticcerticationGranularityDatalossfailoverDowntimerequirementsFailoverclusteringSystemandNoYesApproximatelyClustersolutionlisteddatabase20secondsplusinMicrosoftWindowsdatabaserecoverytimeServerCatalogDatabasemirroringDatabaseDependsonYesLessthan3secondsNooperatingmodePeer-to-peerreplicationTableorviewSomeOptionalVariable(littletonone)NoLogshippingDatabaseSomeNoVariableNoDatabasesnapshotsTableorviewSomeNoVariableNo
A400互联是一家成立于2020年的商家,主要推行洛杉矶服务器采用kvm架构,线路优质,延迟低,稳定性高!全场产品对标腾讯云轻量,服务器线路有有美国洛杉矶cn2_gia、香港cn2+cmi,目前推行的vps服务器均为精心挑选的优质线路机房,A400互联推出了夏季优惠洛杉矶5折、香港7折促销活动,质量可靠,价格实惠!二:优惠码洛杉矶五折优惠码:20210620香港cn2七折优惠码:0710三、优惠方...
racknerd从成立到现在发展是相当迅速,用最低的价格霸占了大部分低端便宜vps市场,虽然VPS价格便宜,但是VPS的质量和服务一点儿都不拉跨,服务器稳定、性能给力,尤其是售后方面时间短技术解决能力强,估计这也是racknerd这个品牌能如此成功的原因吧! 官方网站:https://www.racknerd.com 多种加密数字货币、信用卡、PayPal、支付宝、银联、webmoney,可...
diyvm怎么样?diyvm是一家国内成立时间比较久的主机商家了,大约在6年前站长曾经用过他家的美国机房的套餐,非常稳定,适合做站,目前商家正在针对香港沙田机房的VPS进行促销,给的是五折优惠,续费同价,香港沙田机房走的是CN2直连的线路,到大陆地区的速度非常好,DiyVM商家采用小带宽不限流量的形式,带宽2Mbps起步,做站完全够用,有需要的朋友可以入手。diyvm优惠码:五折优惠码:OFF50...
mssql2005为你推荐
signal37phpweb破解忘记phpweb网站后台用户名密码,怎么找回破解重庆网络公司一九互联重庆网络公司,重庆网络优化,重庆页面制作性价比高且便宜的网络公司有哪些?sns网站有哪些最近两年哪些SNS网站比较火www.topit.mehttp://www.topit.me/ 中自己上传的照片如何删除易名网易名网交易域名是怎么收费的tumblr上不去安卓手机版steam打不开是为什么中国保健养猪网最具权威的养猪信息网站是哪个 啊如何发帖子怎么发帖子啊?如何发帖子网上怎么发帖子?
域名价格 个人域名备案流程 淘宝二级域名 域名商 主机测评网 pccw 博客主机 cloudstack 国外空间服务商 密码泄露 12306抢票助手 1g空间 100mbps in域名 网页提速 网站加速软件 我的世界服务器ip 国内域名 东莞服务器托管 西安主机 更多