sql2005數(shù)據(jù)庫鏡像配置過程_第1頁
sql2005數(shù)據(jù)庫鏡像配置過程_第2頁
sql2005數(shù)據(jù)庫鏡像配置過程_第3頁
sql2005數(shù)據(jù)庫鏡像配置過程_第4頁
sql2005數(shù)據(jù)庫鏡像配置過程_第5頁
已閱讀5頁,還剩3頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

SQLServer2008R2DatabaseMirroringEnvironment:OSWindows2008enterpriseR2SQLServer2008R2MasterhostINMS1Internalip:10.10.10.1/24gw:noreOutboundip142.2.70.208/16gw:142.2.70.13MirrorhostINMS2Internalip:10.10.10.2/24gw:noreOutboundip142.2.70.209/16gw:142.2.70.13Prepareenvironment:Createaloginforsqlservice,srestartonINMS,INMS2HOSTSettingclassicauthmodeongrouppolicy,otherwiseINMS1DBinstancecouldnotLocalComputerPolicy}LocalComputerPolicy}ComputerCorifiguratiori田巴SoftwareSettingsIE .WiridowsSettingsH一NameR-esolutionPulicy囪Scripts(Startup/Shutdown)日3SecuritySettings田-jAccountPoliciesSaLQ二'PoliciesS逼AuditPolicy田嗎UserRightsAssignmentaSeizLirityOptionsPi詆y |SecuritySetting上KjjInteractivelogon:Numberofpreviouslogonstocache(incased...10logons眼Microsoftnetworkserver:Amountofidletimerequiredbeforesu...15minutesDumainmember:Maximummachineaccountpasswordage 30daysInteractivelogori:Promptusertochangepasswordbeforeexpir...5days匾Accounts:Reriameadministratoraizcount Administrator1Networkaccess:SharingandsecuritymodelforlocalaccountsClassic-localusersauthe...Accounts:Guestaccountstatus― ―DisabledAudit:Audittheaccessofglobalsystemobjects DisabledAudit:AudittheuseofBackupandRestoreprivilege DisabledAudit:5hutdownsystemimmediatelyifunabletologsecurityauditsDisabledLogin:sql-servicesPassword:Wec251InmsWhenyouinstallsql2008R2,pleasesetloginsql-servicesasserviceberestartedlogin,localadministratorassqlserveradmin.-IT|2_J| W1Ld5QLServerConFigurationManager(Local)NameState|StartMode1LogOnAs|ProcessID1=15QLServerSeMizel■■蜜■■黛■瑪SQLFull-textFilterDaemonLauncheri:MSSQLSERVER:iRunninqManualNTAUTHORITY\LOC...3800J|一5QL5erverNetworkConfiguration(32bit)故)SQLServer(MSSQLSERVER)RunningAutomatic<j5qt-servitE^>3884SQLNativeClient10.0ConFiguration(32bit:i|^iSQLServerReportingServices(MSSQLSERVER)RunningAutomatic也施蛻明理二1436且.SQLServerNetworkConfiguration詢SQLServerBrowserStoppedOther(Boot.,Sys...NTAUTHORITY\LOC...0SQLNativeClient1U.UConfiguration⑥SQLServerAgent(M55QL5ERVER;iRunningAutomaticr+jql^ervice5-j:.5l=it>LlPmt口匚口1Pmt口匚口1Nams■^-SharedMemoryNamedPipes■^TTCP/IP|Status<gTiabled7?.<EnableJ2?>Disabled5QLServerConfigurationManager(Local)|5QLServerServices5QLServerNetworkConfiguration(32bit).受5QLNativeClient10.0Configuration(32bit)%ClientProtocolsWAliases5QLServerNetworkConfigurationProtocolsForM55QL5ERVER.受5QLNativeClient10.0Configuration

5QLPdativeClient10.0CLinfiguratiun(32bit)為ClientProtoculsWAliases5QLServerNetworkConfiguratiun5QLPdativeClient10.0CLinfiguratiun(32bit)為ClientProtoculsWAliases5QLServerNetworkConfiguratiun&ProtocolsforM55QL5ERVERSQLNative匚值「it10.0CoriFiguratiunITCP/IPPropertiesProtocolIPAddresses|ActiveYesEnabledNoIPAddressfe80::349f:3491:71fd:b92f%23TCPDynamicPortsTCPPort —ActiveYes —EnabledNo \IPAddress142.2.70.208\.TCPDynamicPortsyPort1433ActiveYesEnabledNoTP-rlrlrRvqFftRH!!149rl!F7r?! !49aa%11^TCP/IP EnabledRunthebelowscriptonmasterhost:A:backuptheDB;runthebelowscriptonmasterBackupdatabasetesttodisk=’d:\backup\test.bak,Backuplogtesttodisk=’d:\backup\testlog.bak,CopytheupperDBandLogbackuptomirrorhosttorestore!B:runthebelowscriptonmirrorhost:Restoredatabsetestfromdisk=’d:\back\test.bak,withnorecoveryRestorelogtestfromdisk=’d:\back\testlog.bak,withnorecoveryAfterruntheupperscript,youwillseethedatabasestatusisinrestoringmode!masterDBtransactionlogmustisfullrecoverymodemirrorDBusenorecoveryrecovermirrorDBSettingEndpointRunthebelowscriptonmasterhostUsemastergo

createendpointDbMirroringstate=startedastcp(listener_port=5022,LISTENER_IP=(10.10.10.1))fordatabase_mirroring(role=partner,encryption=supported)youcanseeit,itslistenporthavebeencreated!\Users\Administrator>netstat-anctiueConnectionsopppppppppppppppppppppprccccccccccccccccccccccPTTTTTTTTTTTTTTTTTTTTTTLocalAddress0.0.0.0:800.0.0.0:1350.0.0.0:4450.0.0.0:14330.0.0.0:23010.0.0.0:23810.0.0.0:33890.0.0.0:47001a.0.8.0:491520.0.0.0:491530.0.0.0:491540.0.0.0:491550.0.0.0:491660.0.0.0:491670.0.0.0:4960310.10.10.1:13510.10.10.1:139lu.IM.10.1:502210.1H.iH.ii4560310.10.10.1:5630610.10.10.1:5634810.10.10.1:56349n000000000000000100J±m(xù)ff ■1-M--K--K--K--K-0-M--M--K--K--K-s-M--M--Me 1--illr-M--M--M--M--M-_M-_M-_M-_M--M--M--M--M--M--M-■_M-_M-■■■■,u 0--8000F000000000000000100J±m(xù)e4r5H-■■d2-M--K--K--K--K-_M--M--M--M--K--K--K-■_M-StateLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGLISTENINGESTABLISHEDLISTENINGLISIENINGESIRBLISHEDESTABLISHEDTIME_WAITESTABLISHEDRunthebelowscriptonmirrorhost:UsemastergocreateendpointDbMirroringstate=startedastcp(listener_port=5022,LISTENER_IP=(10.10.10.2))fordatabase_mirroring(role=partner,encryption=supported)youcanseeitonthemanagementstudio:-_JServerObjects+_JBackupDevices-_JEndpoints+_JSystemEndpoints-_JD^fcabase-Mittoringd_J.IMirroring:select*fromsys.databse_mirroring_endpointsselect*fromsys.database_mirroringselecydatabaseidfromsys.databaseifyouhavewitnesshost,runthebelow:createendpointDbMirroringstate=startedastcp(listener_port=5022)fordatabase_mirroring(role=witness,encryption=supported)go3:settingsecuritygrantSQLengineerservice,srestartloginmusthaveconnectrights!onmasterhostrunthebelow:usemastergograntconnectonendpoint::Dbmirroringto"inms1\sql-services"grantconnectonyoucanbySQLmanagementstudiotosettingit:onmirrorhostrunthebelow:usemasterE]SINM51(SQLServer10.50.1600-IMMSl'i.Adr^田ODatabases日□SecurityE]SINM51(SQLServer10.50.1600-IMMSl'i.Adr^田ODatabases日□Security日后Logins&##M5_PolicyEventProces5ingLoi息##M5_PolicyTsqlExecutionLogin息U'-JMS1T4d「nin阮rmb"INM5l\sql-services"--:::1AUTHORITTiiSTSTErvl版NTSERVICE'iJ'-'lSSQLSERVER拶NT5ERYICE'@3L三ER.VER.AGENTAsa田□ServerR.oles田口Credentials田□CryptographicProviders田□Audits田□ServerAuditSpecificationsB□ServerObjects田□BackupDevices臼□Endpoints田口SystemEndpoints日□DatabaseMirroring[JMirroring S窘StatusConnectionServer:INMS1Connection:INMS1\AdministratorName1TypeJ.DedicatedAdminConnectionEndpointPrMkoringiEndpdint^一十羽tzB加ultTCR 1—卜EnUpbinLTSQLDefaultVIAEndpointTSQLLocalMachineEndpointTSQLf'JamedPipesEndpointPermissionsforMirroring:PermissionGrantor1GrantWithGrAlterINMSIAdministratorrr匚二二~^or_inectINMSI^Administrator_Z^==>r1 .k-.frr.—.l1K1k.4'"iLJ、.*-II.-..r1—r-Explicit|Effective]gograntconnectonendpoint::Dbmirroringto"inms2\sql-servicesplorer ▼XDatabaseMail耳3DistributedTransactionCoordinatorSClLegacy密SQLServerAgentNM52(SQLServer10.50.1600-INM51\AdrJDatabasesSQSystemDatabases王1□DatabaseSnapshots3[JReport5erverS|ReportserverTempDE:±1□testJSecurity3CjLogins:##M5_PtjliqrE罩巳ntF丫口二巳&&i「igLm占*##M5_PolicyTsqlExecutionLogin息INMSg\Admhislzrabiir,:二二三INM52\sql-services->一莒而.UTHOFiiT陌i^TEM匐NT5ERVICE\M55QLbER.VER匐NT5ERVICE\5QL5ERVERAGENT.53S□ServerRoles+\QCredentials |ServerRolesUserMappingSecurablesStatusConnectionServer:INMS2Coririectiori:INMS1\AdministratorJiJ1l'IlI .kI.wLoginname: 11NMS2\sql-servicesPermission|Grantor|GrantAlterINMS2\Administratorr=zFnnnficl: INMS2^AdministratorControl INMS2'''Adrriini:i:tratorExplicit|Effective|4:startDBmirroringmirrorhostsetting:alterdatabasetestsetpartner='tcp:/masterhost:5022'alterdatabasetestsetalterdatabasetestsetpartner=,tcp://inms1:5022,;masterhostsetting:alterdatabasetestsetpartner='tcp:/mirrorhost:5022'alterdatabasetestsetpartner=,tcp://inms2:5022,;5:settransactionlevelalterdatabasetestsetsafetyfulladvancedlevelprotectionmode4:verifydatabasemirroringselect*fromsys.databse_mirroring_endpointselect*fromsys.databse_mirroringwheredatabase_id=(selectdatabase_idfromsys.databasewherename='test')sys.database_mirroring5:failuretestmanuallyfailovertransferonmaster-hostusermastergoalterdatabasetestsetpartnerfailoverAutotransfermasterDBtomirroringDBManualbreak10.10.10.1network,thenetworkisindisconnectmode!Onl6INM51(SQLServer10.50.1600-INM51\Administr-_JDatabases+_JSystemDatabases+_JDatabaseSnapshots+jReportServertest(PrincipalDisconnected)JTablesJViewsJSynonymsMirroringDBisinmodeINM52(5QLServer10.50.1600-INM52\Admini;-_JDatabases_JSystemDatabases_JDatabaseSnapshotsJReportserverJReportServerTempDB-jtest(MirrorjDisconnected/InRecovery+~~~~T_5smit7 ~~———+_JServerObjects+_JReplication+_JManagementOnmirroringhost,runthebelowscripttocancelmirroring:alterdatabasetestsetpartneroffthemirrorDBmodechangeinto:-INM52(5QLServer10.50.1600-INM52\Admin-_jDatabases_jSystemDatabases_jDatabaseSnapshots\Report5erver_LRBEicirWBryBrTBq^Etest(RestoringTj--^)+ ————_jServerObjects_JReplication_jManagementg5QLServerAgentBackupthetaillogonmasterDB:backuplogtesttodisk='f:\backup\testtaillog.bak'withno_truncateonmirroringhosttorestorethetaillogrestoredatabsetestfromdisk='F:\backup\testtaillog.bak,withrecoveryE_|JE_|JReportServerTempDEi國Q-Security國QS

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論