




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 闽教版信息技术三年级下册《第一单元 计算机文件的有效管理 2 排列图标找文件》教学设计
- 湖北省圆创教育教研中心2025届高三三月联合测评历史试题及答案
- 大班艺术活动寻宝课件
- 海洋产业安全保障工作计划
- 公司培训工作总结
- 业务预算与财务计划对接
- 应对职场变化的灵活计划
- 制定工作与生活平衡的策略计划
- 秋季班级团队建设活动计划
- 学生安全意识的培养与保障计划
- 2023年安徽国控资本有限公司及所属企业社会招聘考试真题及答案
- 专题08 八年级下册易混易错总结-备战2024年中考道德与法治一轮复习知识清单(全国通用)
- 中集集团招聘题库
- 赣政通管理员操作手册
- 2024年ISTQB认证笔试历年真题荟萃含答案
- 2021年以工代赈项目实施工作指南(试行)
- 分布式光伏高处作业专项施工方案
- 成语小故事胸有成竹
- JC474-2008 砂浆、混凝土防水剂
- 一年级综合实践-集中注意力
- 《大学物理学》精美课件(全)
评论
0/150
提交评论