Oracle英文版培训课件之RAC for Administrators:04-Admin_第1页
Oracle英文版培训课件之RAC for Administrators:04-Admin_第2页
Oracle英文版培训课件之RAC for Administrators:04-Admin_第3页
Oracle英文版培训课件之RAC for Administrators:04-Admin_第4页
Oracle英文版培训课件之RAC for Administrators:04-Admin_第5页
已阅读5页,还剩36页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

RACDatabaseAdministrationObjectivesAftercompletingthislesson,youshouldbeableto:UseEnterpriseManagerclusterdatabasepagesDefineredologfilesinaRACenvironmentDefineundotablespacesinaRACenvironmentStartandstopRACdatabasesandinstancesModifyinitializationparametersinaRACenvironmentManageASMinstancesinaRACenvironmentClusterDatabaseHomePageClusterDatabaseHomePageClusterDatabaseInstanceHomePageClusterDatabaseInstanceAdministrationPageClusterHomePageTheConfigurationSectionTheConfigurationSectionTopologyViewerEnterpriseManagerAlertsandRACEnterpriseManagerMetricsandRACEnterpriseManagerMetricsandRACEnterpriseManagerAlertHistoryandRACEnterpriseManagerBlackoutsandRACRedoLogFilesandRAC…RAC01.THREAD=1RAC02.THREAD=2…SPFILESharedstorageGroup1Thread1Node1RAC01Node2RAC02Group2Group3Group4Thread2Group5ALTERDATABASEADDLOGFILETHREAD2GROUP4;ALTERDATABASEADDLOGFILETHREAD2GROUP5;ALTERDATABASEENABLETHREAD2;AutomaticUndoManagementandRAC…RAC01.UNDO_TABLESPACE=undotbs3RAC02.UNDO_TABLESPACE=undotbs2…ALTERSYSTEMSETUNDO_TABLESPACE=undotbs3SID='RAC01';undotbs3Node1RAC01Node2RAC02undotbs1SPFILEundotbs2SharedstorageTransactionrecoveryPending

offlineConsistentreadsStartingandStoppingRACInstancesMultipleinstancescanopenthesamedatabasesimultaneously.Shuttingdownoneinstancedoesnotinterferewithotherrunninginstances.SHUTDOWNTRANSACTIONALLOCALdoesnotwaitforotherinstances’transactionstofinish.RACinstancescanbestartedandstoppedbyusing:EnterpriseManagerServerControl(SRVCTL)utilitySQL*PlusShuttingdownaRACdatabasemeansshuttingdownallinstancesaccessingthedatabase.StartingandStopping

RACInstanceswithSQL*Plus[stc-raclin01]$echo$ORACLE_SIDRACDB1sqlplus/assysdbaSQL>startupSQL>shutdown[stc-raclin02]$echo$ORACLE_SIDRACDB2sqlplus/assysdbaSQL>startupSQL>shutdown[stc-raclin01]$sqlplus/assysdbaSQL>startupSQL>shutdownSQL>connectsys/oracle@RACDB2assysdbaSQL>startupSQL>shutdownORStartingandStopping

RACInstanceswithSRVCTLstart/stopsyntax:Examples:srvctlstart|stopinstance-d<db_name>-i<inst_name_list>

[-oopen|mount|nomount|normal|transactional|immediate|abort>]

[-c<connect_str>|-q]$srvctlstartinstance-dRACDB-iRACDB1,RACDB2$srvctlstopinstance-dRACDB-iRACDB1,RACDB2srvctlstart|stopdatabase-d<db_name>

[-oopen|mount|nomount|normal|transactional|immediate|abort>][-c<connect_str>|-q]$srvctlstartdatabase-dRACDB-oopenSwitchBetweentheAutomatic

andManualPoliciessrvctlmodifydatabase-dRACB-yMANUAL;$srvctlconfigdatabase-dRACB-aex0044RACB1/u01/app/oracle/product/10.2.0/db_1ex0045RACB2/u01/app/oracle/product/10.2.0/db_1DB_NAME:RACBORACLE_HOME:/u01/app/oracle/product/10.2.0/db_1SPFILE:+DGDB/RACB/spfileRACB.oraDOMAIN:nullDB_ROLE:nullSTART_OPTIONS:nullPOLICY:AUTOMATICENABLEFLAG:DBENABLED$RACInitializationParameterFilesAnSPFILEiscreatedifyouusetheDBCA.TheSPFILEmustbecreatedonasharedvolumeorsharedrawdevice.AllinstancesusethesameSPFILE.Ifthedatabaseiscreatedmanually,thencreateanSPFILEfromaPFILE.Node1RAC01SPFILESPFILE=…initRAC01.oraNode2RAC02SPFILE=…initRAC02.oraSPFILEParameterValuesandRACYoucanchangeparametersettingsusingtheALTERSYSTEMSETcommandfromanyinstance:SPFILEentriessuchas:*.<pname>applytoallinstances<sid>.<pname>applyonlyto<sid><sid>.<pname>takesprecedenceover*.<pname>Usecurrentorfuture*.<dpname>settingsfor<sid>:

RemoveanentryfromyourSPFILE:ALTERSYSTEMRESET<dpname>SCOPE=SPFILEsid='<sid|*>';ALTERSYSTEMRESET<dpname>SCOPE=MEMORYsid='<sid>';ALTERSYSTEMSET<dpname>SCOPE=MEMORYsid='<sid|*>';EMandSPFILEParameterValuesSCOPE=MEMORYEMandSPFILEParameterValuesSCOPE=SPFILESCOPE=BOTHRACInitializationParametersParametersThatRequireIdenticalSettingsACTIVE_INSTANCE_COUNTARCHIVE_LAG_TARGETCLUSTER_DATABASECONTROL_FILESDB_BLOCK_SIZEDB_DOMAINDB_FILESDB_NAMEDB_RECOVERY_FILE_DESTDB_RECOVERY_FILE_DEST_SIZEDB_UNIQUE_NAMEMAX_COMMIT_PROPAGATION_DELAYTRACE_ENABLEDUNDO_MANAGEMENTParametersThatRequireUniqueSettingsInstancesettings:THREADROLLBACK_SEGMENTSINSTANCE_NAMEINSTANCE_NUMBERUNDO_TABLESPACE

(WhenusingAutomaticUndoManagement)QuiescingRACDatabasesUsetheALTERSYSTEMQUIESCERESTRICTEDstatementfromasingleinstance:ThedatabasecannotbeopenedbyotherinstancesaftertheALTERSYSTEMQUIESCE…statementstarts.TheALTERSYSTEMQUIESCERESTRICTEDandALTERSYSTEMUNQUIESCEstatementsaffectallinstancesinaRACenvironment.Coldbackupscannotbetakenwhenthedatabaseisinaquiescedstate.SQL>ALTERSYSTEMQUIESCERESTRICTED;HowSQL*PlusCommandsAffectInstancesSQL*PlusCommandAssociatedInstanceARCHIVELOGGenerallyaffectsthecurrentinstanceCONNECTAffectsthedefaultinstanceifnoinstanceisspecifiedintheCONNECTcommandHOSTAffectsthenoderunningtheSQL*PlussessionRECOVERDoesnotaffectanyparticularinstance,butratherthedatabaseSHOWPARAMETERandSHOWSGAShowthecurrentinstanceparameterandSGAinformationSTARTUPandSHUTDOWNAffectthecurrentinstanceSHOWINSTANCEDisplaysinformationaboutthecurrentinstanceNode1TransparentDataEncryptionandWalletsinRACOnewalletsharedbyallinstancesonsharedstorage:NoadditionaladministrationrequiredOnecopyofthewalletoneachlocalstorage:LocalcopiesneedtobesynchronizedeachtimemasterkeyischangedALTERSYSTEMSETENCRYPTIONKEYWalletMasterkeysNode2WalletMasterkeyNodenWalletMasterkeyManualcopyManual

copy12RACandASMInstancesCreation..ASM:GeneralArchitectureASM

instanceSID=+ASM1ASM

instanceSID=+ASM2ASMdisksASMdisksASMdisksASMdisksASMdisksASMdisksASMdiskgroupTomASMdiskgroupBobASMdiskgroupHarryDB

instanceSID=sales1DB

instanceSID=test1DB

instanceSID=sales2DB

instanceSID=test2ASMBASMBFGFGFGFGNode2Node1GroupServices

tom=+ASM1bob=+ASM1

harry=+ASM1GroupServices

tom=+ASM2bob=+ASM2

harry=+ASM2DBW0DBW0DBW0DBW0ASMBRBALRBALARB0ARBA…ARB0ARBA…ASMBRBALRBALRBALRBALGMONGMONASMInstanceandCrashRecoveryinRACDiskgroupANode2+ASM2Node1+ASM1Bothinstancesmount

diskgroupDiskgroupANode2+ASM2Node1+ASM1ASMinstancefailureDiskgroupANode2+ASM2Node1Diskgrouprepaired

bysurvivinginstanceDiskGroupANode2+ASM2Node1+ASM1Onlyoneinstance

mountsdiskgroupDiskGroupANode2+ASM2Node1+ASM1ASMinstancefailureDiskGroupANode2+ASM2Node1Diskgrouprepaired

whennextmountedASMcrashrecoveryASMinstancerecoveryASMInstanceInitializationParametersandRACCLUSTER_DATABASE:ThisparametermustbesettoTRUE.ASM_DISKGROUP:Multipleinstancescanhavedifferentvalues.ShareddiskgroupsmustbemountedbyeachASMinstance.ASM_DISKSTRING:Multipleinstancescanhavedifferentvalues.Withshareddiskgroups,everyinstanceshouldbeabletoseethecommonpoolofphysicaldisks.ASM_POWER_LIMIT:Multipleinstancescanhavedifferentvalues.ASMandSRVCTLwithRACSRVCTLenablesyoutomanageASMfromanOracleClusterware(OC)perspective:AddanASMinstancetoOC.EnableanASMinstanceforOCautomaticrestart.StartupanASMinstance.ShutdownanASMinstance.DisableanASMinstancefromOCautomaticrestart.RemoveanASMinstanceconfigurationfromtheOCR.Getsomestatusinformation.SetASMinstancedependencytodatabaseinstance.TheDBCAallowsyoutocreateASMinstancesaswellashelpsyoutoaddandenablethemwithOC.ASMandSRVCTL

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论