Oracle怎么增加控制文件副本
发表于:2024-09-24 作者:千家信息网编辑
千家信息网最后更新 2024年09月24日,这篇文章主要介绍"Oracle怎么增加控制文件副本",在日常操作中,相信很多人在Oracle怎么增加控制文件副本问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"Oracl
千家信息网最后更新 2024年09月24日Oracle怎么增加控制文件副本
这篇文章主要介绍"Oracle怎么增加控制文件副本",在日常操作中,相信很多人在Oracle怎么增加控制文件副本问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"Oracle怎么增加控制文件副本"的疑惑有所帮助!接下来,请跟着小编一起来学习吧!
1.文档目标
新建的数据库只有一个控制文件副本,希望增加控制文件副本到不同位置,防止控制文件发生损坏。
2.修改control_files参数
# 如果使用了OMF则可以在修改参数时只指定路径,无需指定绝对路径,是否使用OMF即是否设置了db_create_file_dest 参数。SYS@honor1 > show parameter control_files;NAME TYPE VALUE------------------------------------ ----------- ------------------------------control_files string +DATADG/honor/controlfile/current.260.984508003control_management_pack_access string DIAGNOSTIC+TUNINGSYS@honor1 > alter system set control_files='+DATADG/honor/controlfile/current.260.984508003','+datadg' scope=spfile sid='*';System altered.Elapsed: 00:00:00.01SYS@honor1 > shutdown immediate;Database closed.Database dismounted.ORACLE instance shut down.10:16:35 SYS@honor1 > exit
3.使用RMAN利用现有controlfile创建副本
(1)创建控制文件副本[oracle@db-oracle-node1 ~]$ rman target /Recovery Manager: Release 11.2.0.4.0 - Production on Mon Dec 9 10:17:27 2019Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.connected to target database (not started)RMAN> startup nomount;Oracle instance startedTotal System Global Area 521936896 bytesFixed Size 2254824 bytesVariable Size 440403992 bytesDatabase Buffers 75497472 bytesRedo Buffers 3780608 bytesRMAN> restore controlfile from '+DATADG/honor/controlfile/current.260.984508003';Starting restore at 09-DEC-19allocated channel: ORA_DISK_1channel ORA_DISK_1: SID=34 instance=honor1 device type=DISKchannel ORA_DISK_1: copied control file copyoutput file name=+DATADG/honor/controlfile/current.260.984508003output file name=+DATADG/honor/controlfile/current.294.1026555549Finished restore at 09-DEC-19RMAN> alter database mount;database mountedreleased channel: ORA_DISK_1RMAN> alter database open;database openedRMAN> exitRecovery Manager complete.(2)查看control_files参数[oracle@db-oracle-node1 ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Mon Dec 9 10:41:18 2019Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,Data Mining and Real Application Testing optionsSYS@honor1 > show parameter control_files;NAME TYPE VALUE------------------------------------ ----------- ------------------------------control_files string +DATADG/honor/controlfile/curr ent.260.984508003, +DATADG/hon or/controlfile/current.294.102 6555549
到此,关于"Oracle怎么增加控制文件副本"的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注网站,小编会继续努力为大家带来更多实用的文章!
副本
文件
控制
参数
学习
更多
路径
帮助
不同
实用
接下来
位置
只有
数据
数据库
文档
文章
方法
理论
目标
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
阿左旗网络安全培训会
西安万国润播网络技术
计算机网络原理网络安全
黑客网络技术安全
基于客户服务器模式的开发工具
软件开发合同封面
百度百科的数据库有多大
校园网络安全方案设计与实现
网络安全板报设计图案
国宇美业软件数据库连接不了
方舟亚服是官方服务器吗
学术期刊数据库出版公司
移动互联网科技官网
软件开发的就业前景如何
浙江通讯软件开发值得推荐
社区服务器设计
冬残奥会网络安全工作保障总结
梅林打印服务器
为什么收到网络安全自查整改
共筑网络安全与治理
ip 网络技术工作站
jbi数据库
泸州银行数据库品牌
如何访问到内网服务器
日常 无线通信网络技术
软件开发是年轻饭碗吗
公共网络安全使用方法
佛山软件开发工资
无锡的网络安全监察部门在哪
服务器上能安装的ftp软件