当前位置:网站首页>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
边栏推荐
- 木板ISO 5660-1 热量释放速率摸底测试
- Explain various hot issues of Technology (SLB, redis, mysql, Kafka, Clickhouse) in detail from the architecture
- selenium 获取dom内验证码图片
- Ethereum ETH的奖励机制
- uni-app 蓝牙通信
- Learning robots have no way to start? Let me show you the current hot research directions of robots
- Haas506 2.0 development tutorial - Alibaba cloud OTA - PAC firmware upgrade (only supports versions above 2.2)
- Dictionary tree simple introductory question (actually blue question?)
- xlrd常见操作
- Pytorch实战——MNIST数据集手写数字识别
猜你喜欢

第05章_存储引擎

R语言【数据管理】

Influence of oscilloscope probe on signal source impedance

Parker驱动器维修COMPAX控制器维修CPX0200H

CLion配置visual studio(msvc)和JOM多核编译

Haas506 2.0 development tutorial - Alibaba cloud OTA - PAC firmware upgrade (only supports versions above 2.2)

木板ISO 5660-1 热量释放速率摸底测试

Display DIN 4102-1 Class B1 fire test requirements

Simple interest mode - evil Chinese style

让开发效率飞速提升的跨端方案
随机推荐
基于 Ingress Controller 在集群外访问 Zadig 自测环境(最佳实践)
场景化面试:关于分布式锁的十问十答
int GetMonth( ) const throw( );后面的throw( )什么意思?
事项研发工作流全面优化|Erda 2.2 版本如“七”而至
Influence of oscilloscope probe on signal source impedance
Problems encountered in office--
EasyExcel的讀寫操作
字典树简单入门题(居然是蓝题?)
The primary key is set after the table is created, but auto increment is not set
Summary of data analysis steps
LeetCode_ Hash table_ Difficulties_ 149. Maximum number of points on the line
Golang(1)|从环境准备到快速上手
冯唐“春风十里不如你”数字藏品,7月8日登录希壤!
CLion配置visual studio(msvc)和JOM多核编译
五层网络协议
vant 源码解析 之深层 合并对象 深拷贝
【案例】定位的运用-淘宝轮播图
Longest swing sequence [greedy practice]
Generics of TS
Xlrd common operations