当前位置:网站首页>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
边栏推荐
- Introduction to TS, constructor and its this, inheritance, abstract class and interface
- Determine the best implementation of horizontal and vertical screens
- 水泥胶黏剂BS 476-4 不燃性测试
- [case] Application of element display and hiding -- element mask
- ArcGIS栅格重采样方法介绍
- ESP32
- Which securities company is better and which platform is safer for stock account opening
- Influence of oscilloscope probe on signal source impedance
- ESP32
- Generics of TS
猜你喜欢

Teach yourself to train pytorch model to Caffe (III)

Realize the function of verifying whether the user has completed login when browsing the page

2.2 basic grammar of R language

LeetCode_ Hash table_ Difficulties_ 149. Maximum number of points on the line

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

How to send samples when applying for BS 476-7 display? Is it the same as the display??

LeetCode_哈希表_困难_149. 直线上最多的点数

显示屏DIN 4102-1 Class B1防火测试要求

面试官:并发编程实战会吗?(线程控制操作详解)

Some common processing problems of structural equation model Amos software
随机推荐
Teach yourself to train pytorch model to Caffe (I)
Deep merge object deep copy of vant source code parsing
kingbaseES V8R3数据安全案例之---审计记录清除案例
显示器要申请BS 476-7 怎么送样?跟显示屏一样吗??
xlrd常见操作
ESP32
Introduction to TS, constructor and its this, inheritance, abstract class and interface
The primary key is set after the table is created, but auto increment is not set
Pytorch实战——MNIST数据集手写数字识别
Influence of oscilloscope probe on signal source impedance
leetcode:1755. Sum of subsequences closest to the target value
vant 源码解析 之深层 合并对象 深拷贝
【日常训练】729. 我的日程安排表 I
Alibaba cloud award winning experience: build a highly available system with polardb-x
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
Which securities company is better and which platform is safer for stock account opening
Clion-MinGW编译后的exe文件添加ico图标
R language [data management]
Realize the function of verifying whether the user has completed login when browsing the page