当前位置:网站首页>oracle 控制文件的多路复用
oracle 控制文件的多路复用
2022-07-05 21:32:00 【无情白】
概念:
控制文件是Oracle数据库非常重要的文件,记录了当前数据库的结构信息,同时也包含数据文件及日志文件的信息以及相关的状态,归档信息等等,一个数据库至少有一个控制文件,强烈的建议超过一个控制文件,每个控制文件的备份应该放在不同的磁盘上。
配置步骤:
1.创建存放多路复用控制文件的目录
mkdir -p /flash_recover_area/controfile
2.查看现有的控制文件
show parameter contro;
NAME TYPE
------------------------------------ --------------------------------
VALUE
------------------------------
control_file_record_keep_time integer
7
control_files string
/u01/app/oracle/oradata/jfdb/c
ontrol01.ctl, /u01/app/oracle/
oradata/jfdb/control02.ctl
control_management_pack_access string
NAME TYPE
------------------------------------ --------------------------------
VALUE
------------------------------
DIAGNOSTIC+TUNING
3.添加control03.ctl
alter system set control_files='/u01/app/oracle/oradata/jfdb/control01.ctl','/u01/app/oracle/oradata/jfdb/control02.ctl','/flash_recover_area/controfile/control03.ctl' scope=spfile;
4.关闭数据库
shutdown immediater;
5.拷贝control01.ctl到/flash_recover_area/controfile/目录下并且重命名control03.ctl
cp /u01/app/oracle/oradata/jfdb/control01.ctl /flash_recover_area/controfile/control03.ctl
6.启动数据库,查看控制文件个数
startup
show parameter contro;
SQL> show parameter contro;
NAME TYPE
------------------------------------ --------------------------------
VALUE
------------------------------
control_file_record_keep_time integer
7
control_files string
/u01/app/oracle/oradata/jfdb/c
ontrol01.ctl, /u01/app/oracle/
oradata/jfdb/control02.ctl, /f
lash_recover_area/controfile/c
ontrol03.ctl
control_management_pack_access string
NAME TYPE
------------------------------------ --------------------------------
VALUE
------------------------------
DIAGNOSTIC+TUNING
边栏推荐
- Pytoch practice -- MNIST dataset handwritten digit recognition
- 面试官:并发编程实战会吗?(线程控制操作详解)
- Clion configures Visual Studio (MSVC) and JOM multi-core compilation
- Summary of data analysis steps
- 【日常训练】729. 我的日程安排表 I
- int GetMonth( ) const throw( ); What does throw () mean?
- [case] Application of element display and hiding -- element mask
- 办公遇到的问题--
- 思特奇加入openGauss开源社区,共同推动数据库产业生态发展
- 2.2.3 output of documents
猜你喜欢
Clickhouse copy paste multi line SQL statement error
Teach yourself to train pytorch model to Caffe (2)
How to send samples when applying for BS 476-7 display? Is it the same as the display??
Exercise 1 simple training of R language drawing
Display DIN 4102-1 Class B1 fire test requirements
Feng Tang's "spring breeze is not as good as you" digital collection, logged into xirang on July 8!
R language [data management]
leetcode:1755. Sum of subsequences closest to the target value
Enclosed please find. Net Maui's latest learning resources
第05章_存储引擎
随机推荐
五层网络协议
Interviewer: will concurrent programming practice meet? (detailed explanation of thread control operation)
Simple interest mode - lazy type
SYSTEMd resolved enable debug log
vant 源码解析 之深层 合并对象 深拷贝
Introduction of ArcGIS grid resampling method
[daily training -- Tencent select 50] 89 Gray code (only after seeing the solution of the problem)
Selenium finds the contents of B or P Tags
股票开户选择哪家证券公司比较好哪家平台更安全
2022-07-03-CKA-粉丝反馈最新情况
Modifiers of attributes of TS public, private, protect
selenium 获取dom内验证码图片
Gcc9.5 offline installation
Cross end solution to improve development efficiency rapidly
2022-07-03-cka- latest feedback from fans
Generics of TS
场景化面试:关于分布式锁的十问十答
Sophomore personal development summary
uni-app 蓝牙通信
Some common processing problems of structural equation model Amos software