当前位置:网站首页>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
边栏推荐
- What are the requirements of UL 2043 test for drive housing in the United States?
- 让开发效率飞速提升的跨端方案
- 显示器要申请BS 476-7 怎么送样?跟显示屏一样吗??
- leetcode:1139. The largest square bounded by 1
- Teach yourself to train pytorch model to Caffe (I)
- Parker driver maintenance COMPAX controller maintenance cpx0200h
- Get JS of the previous day (timestamp conversion)
- Clion configures Visual Studio (MSVC) and JOM multi-core compilation
- Longest swing sequence [greedy practice]
- Using webassembly to operate excel on the browser side
猜你喜欢
R language learning notes
Influence of oscilloscope probe on measurement bandwidth
2.2 basic grammar of R language
2022-07-03-CKA-粉丝反馈最新情况
显示器要申请BS 476-7 怎么送样?跟显示屏一样吗??
LeetCode_ Hash table_ Difficulties_ 149. Maximum number of points on the line
递归查询多级菜单数据
面试官:并发编程实战会吗?(线程控制操作详解)
Clion-MinGW编译后的exe文件添加ico图标
MySQL InnoDB Architecture Principle
随机推荐
Haas506 2.0 development tutorial - Alibaba cloud OTA - PAC firmware upgrade (only supports versions above 2.2)
Learning notes of statistical learning methods -- Chapter 1 Introduction to statistical learning methods
Deployment of Jenkins under win7
The reason why the ncnn converted model on raspberry pie 4B always crashes when called
基于vertx-web-sstore-redis的改造实现vertx http应用的分布式session
Sorting out the problems encountered in MySQL built by pycharm connecting virtual machines
Vant source code parsing event Detailed explanation of TS event processing global function addeventlistener
Establishment of terminal security capability verification environment and penetration test records
Sophomore personal development summary
Making global exception handling classes with aspect
The primary key is set after the table is created, but auto increment is not set
Li Kou ----- the maximum profit of operating Ferris wheel
ArcGIS栅格重采样方法介绍
思特奇加入openGauss开源社区,共同推动数据库产业生态发展
驱动壳美国测试UL 2043 符合要求有哪些?
Using webassembly to operate excel on the browser side
selenium 获取dom内验证码图片
【日常训练--腾讯精选50】89. 格雷编码(看题解才会的)
Cross end solution to improve development efficiency rapidly
js常用方法封装