Oracle怎么增加控制文件副本
这篇文章主要介绍“Oracle怎么增加控制文件副本”,在日常操作中,相信很多人在Oracle怎么增加控制文件副本问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Oracle怎么增加控制文件副本”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!
1.文档目标新建的数据库只有一个控制文件副本,希望增加控制文件副本到不同位置,防止控制文件发生损坏。
2.修改control_files参数#如果使用了OMF则可以在修改参数时只指定路径,无需指定绝对路径,是否使用OMF即是否设置了db_create_file_dest参数。SYS@honor1>showparametercontrol_files;NAMETYPEVALUE-----------------------------------------------------------------------------control_filesstring+DATADG/honor/controlfile/current.260.984508003control_management_pack_accessstringDIAGNOSTIC+TUNINGSYS@honor1>altersystemsetcontrol_files='+DATADG/honor/controlfile/current.260.984508003','+datadg'scope=spfilesid='*';Systemaltered.Elapsed:00:00:00.01SYS@honor1>shutdownimmediate;Databaseclosed.Databasedismounted.ORACLEinstanceshutdown.10:16:35SYS@honor1>exit3.使用RMAN利用现有controlfile创建副本
(1)创建控制文件副本[oracle@db-oracle-node1~]$rmantarget/RecoveryManager:Release11.2.0.4.0-ProductiononMonDec910:17:272019Copyright(c)1982,2011,Oracleand/oritsaffiliates.Allrightsreserved.connectedtotargetdatabase(notstarted)RMAN>startupnomount;OracleinstancestartedTotalSystemGlobalArea521936896bytesFixedSize2254824bytesVariableSize440403992bytesDatabaseBuffers75497472bytesRedoBuffers3780608bytesRMAN>restorecontrolfilefrom'+DATADG/honor/controlfile/current.260.984508003';Startingrestoreat09-DEC-19allocatedchannel:ORA_DISK_1channelORA_DISK_1:SID=34instance=honor1devicetype=DISKchannelORA_DISK_1:copiedcontrolfilecopyoutputfilename=+DATADG/honor/controlfile/current.260.984508003outputfilename=+DATADG/honor/controlfile/current.294.1026555549Finishedrestoreat09-DEC-19RMAN>alterdatabasemount;databasemountedreleasedchannel:ORA_DISK_1RMAN>alterdatabaseopen;databaseopenedRMAN>exitRecoveryManagercomplete.(2)查看control_files参数[oracle@db-oracle-node1~]$sqlplus/assysdbaSQL*Plus:Release11.2.0.4.0ProductiononMonDec910:41:182019Copyright(c)1982,2013,Oracle.Allrightsreserved.Connectedto:OracleDatabase11gEnterpriseEditionRelease11.2.0.4.0-64bitProductionWiththePartitioning,RealApplicationClusters,AutomaticStorageManagement,OLAP,DataMiningandRealApplicationTestingoptionsSYS@honor1>showparametercontrol_files;NAMETYPEVALUE-----------------------------------------------------------------------------control_filesstring+DATADG/honor/controlfile/current.260.984508003,+DATADG/honor/controlfile/current.294.1026555549
到此,关于“Oracle怎么增加控制文件副本”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注亿速云网站,小编会继续努力为大家带来更多实用的文章!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。