当前位置:网站首页>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
边栏推荐
- LeetCode_哈希表_困难_149. 直线上最多的点数
- Clickhouse copy paste multi line SQL statement error
- Five layer network protocol
- 854. 相似度为 K 的字符串 BFS
- 阿里云有奖体验:用PolarDB-X搭建一个高可用系统
- Influence of oscilloscope probe on measurement bandwidth
- 让开发效率飞速提升的跨端方案
- Explain various hot issues of Technology (SLB, redis, mysql, Kafka, Clickhouse) in detail from the architecture
- 校招期间 准备面试算法岗位 该怎么做?
- 2022-07-03-CKA-粉丝反馈最新情况
猜你喜欢

Two ways to realize video recording based on avfoundation

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

Cold violence -- another perspective of objective function setting

Golang(1)|从环境准备到快速上手

Reading and writing operations of easyexcel

JMeter installation under win7

Pytorch实战——MNIST数据集手写数字识别

冯唐“春风十里不如你”数字藏品,7月8日登录希壤!

让开发效率飞速提升的跨端方案

Add ICO icon to clion MinGW compiled EXE file
随机推荐
CLion配置visual studio(msvc)和JOM多核编译
Clickhouse copy paste multi line SQL statement error
Display DIN 4102-1 Class B1 fire test requirements
SQL common syntax records
Li Kou ----- the maximum profit of operating Ferris wheel
EasyExcel的读写操作
sql常用语法记录
校招期间 准备面试算法岗位 该怎么做?
Pytoch practice -- MNIST dataset handwritten digit recognition
Using webassembly to operate excel on the browser side
Feng Tang's "spring breeze is not as good as you" digital collection, logged into xirang on July 8!
Deep merge object deep copy of vant source code parsing
Making global exception handling classes with aspect
Sophomore personal development summary
Golang (1) | from environmental preparation to quick start
第05章_存储引擎
木板ISO 5660-1 热量释放速率摸底测试
vant 源码解析 之深层 合并对象 深拷贝
Sitge joined the opengauss open source community to jointly promote the ecological development of the database industry
冯唐“春风十里不如你”数字藏品,7月8日登录希壤!