版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 淮阴师范学院《生态学》2021-2022学年第一学期期末试卷
- 淮阴师范学院《近代物理实验》2022-2023学年第一学期期末试卷
- 淮阴师范学院《中学数学学科课程标准与教材分析》2022-2023学年第一学期期末试卷
- 淮阴师范学院《电子商务法律与法规》2023-2024学年第一学期期末试卷
- 淮阴师范学院《电气控制与PLC》2022-2023学年期末试卷
- DB3304T028-2024机关事务管理 保洁服务规范
- DB 1502-T 026-2024多晶硅生产企业能源管理规范
- 文书模板-《老年人观赏类活动策划方案》
- 搪瓷制品在环保行业中的应用与发展趋势考核试卷
- 低温仓储的网络与信息安全管理考核试卷
- 培训课程版权合同模板
- 第18课《中国人失掉自信力了吗》课件 2024-2025学年统编版语文九年级上册
- 住院医师规范化培训责任导师制管理制度
- 2 .2.1二次函数图象与性质课件2024-2025学年北师大版数学九年级下册
- 产后骨盆修复讲课
- 2024年连锁奶茶店员工工作协议版
- 人教版数学二年级上册-第7单元(认识时间)认识时间(课件)(共19张课件)
- 美术用品供货商合同模板
- 5.2珍惜师生情谊 课件-2024-2025学年统编版道德与法治七年级上册
- 甘孜州森工集团有限公司招聘笔试题库2024
- GB/T 7341.3-2024电声学测听设备第3部分:短时程测试信号
评论
0/150
提交评论