当前位置:网站首页>RMAN备份概念_关于RMAN控制文件和服务器参数文件的自动备份
RMAN备份概念_关于RMAN控制文件和服务器参数文件的自动备份
2022-06-09 08:21:00 【数语数行】
拥有控制文件和服务器参数文件的最近的备份在很多恢复情况中是非常有价值的。为了确保含有这些文件的备份,数据库支持控制文件和服务器参数文件(spfile)自动备份。
自动备份独立发生,与作为BACKUP命令的一部分明确请求备份当前控制文件的操作不同。使用控制文件的自动备份,即使当前的控制文件,恢复目录和服务器参数文件不能访问,RMAN也可以恢复数据库。因为用来存储自动备份的路径遵循众所周知的格式,RMAN可以从自动备份中搜索和还原服务器参数文件。在使用还原的服务器参数文件启动实例后,RMAN可以从自动备份中还原控制文件。在挂载控制文件后,使用挂载的控制文件中的RMAN仓库还原数据文件。
建议打开控制文件的自动备份。否则 ,当PITR需要撤消数据文件的增加或删除时,RMAN数据库时间点恢复(DBPITR)可能不会有效运行。
1.RMAN何时执行控制文件自动备份
取决于目标数据库的配置,RMAN可以执行控制文件和服务器参数文件的自动备份。
对于非CDB,如果CONFIGURE CONTROLFILE AUTOBACKUP是ON,那么RMAN在成功的BACKUP命令之后自动备份控制文件和当前服务器参数文件(如果用来启动数据库)。对于COMPATIBLE初始化参数设置为12.0或以后版本的CDB和单机数据库,缺省情况下,控制文件自动备份是打开的。
如果数据库运行在ARCHIVELOG模式,当数据库的结构更改影响到控制文件的内容时,RMAN做控制文件的自动备份。
注:从Oracle数据库版本11.2g开始,当多个结构更改包含在一个脚本中(例如,增加表空间,更改表空间或数据文件状态,增加一个新在线redo日志,重命名一个文件等),RMAN只做一个控制文件自动备份。
2.RMAN如何执行控制文件自动备份
在备份作业过程中分配的第一个通道创建自动备份和将它放置到它自己的备份集。对于数据库结构更改之后的自动备份,与结构更改关联的服务器进程做备份。
如果数据库使用了服务器参数文件,那么RMAN备份它在与控制文件自动备份相同的备份集。在自动备份完成后,数据库写一条包含备份片完整路径和设置类型的信息到位于ADR(Automatic Diagnostic Repository)的alert日志。
注:控制文件自动备份不会双路复用(duplexed)。
控制文件自动备份的文件名称对所有设备类型都有一个缺省的格式%F,因此RMAN不需要RMAN仓库就可以确定文件的位置和还原它。可以使用CONFIGURE CONTROLFILE AUTOBACKUP FORMAT命令指定不同的格式,但所有自动备份的格式必须包含%F变量。如果不使用缺省的格式,那么灾难恢复过程中必须指定用来生成自动备份的格式。否则,RMAN不能还原自动备份。
可以参考以下章节进一步了解配置控制文件和服务器参数文件的自动备份的方法:
RMAN配置控制文件和服务器参数文件的自动备份
来源:《Oracle Database Backup and Recovery User’s Guide,19c》
边栏推荐
- 【论文简介】CLIP:图像与自然语言配对预训练可迁移模型:Learning Transferable Visual Models From Natural Language Supervision
- EDA开源仿真工具verilator入门1:安装和测试
- Oracle partition table paging query SQL optimization
- User name and password are encrypted in clear text during transmission cryptojs encryption (php/js encryption and decryption)
- 数据仓库系列 之Clickhouse中的更新和删除操作
- C language review 7
- Market Research - current market situation and future development trend of pirox ketolamine for personal care in the world and China
- [penetration test] summary of conditional competition vulnerabilities
- Blow up the idea artifact in use recently
- OpenInfra Summit 2022 | 安超云用户脱颖而出 入围超级用户大奖
猜你喜欢

C language review 9

Alibaba cloud ack pull free enterprise ACR image

CV learning notes cnn-vgg

【TeXstudio】【1】分式dfrac,tfrac Undefined control squence错误

C语言复习9

84.1%受访家长感到身边喜欢用电子产品哄孩子的家长多

Blow up the idea artifact in use recently

SQL or NoSQL, you will understand after reading this article

【读点论文】Benchmark Analysis of Representative Deep Neural Network Architectures当准确率不再是唯一衡量标准,给多目标优化一个导向

Liuyongzhi: one code communication defect analysis and architecture design scheme - sound network developer entrepreneurship lecture VOL.02
随机推荐
[penetration test] summary of conditional competition vulnerabilities
Alibaba cloud ack pull free enterprise ACR image
MySQL adds a string after the field
Understand the difference between left join, right join and join
C语言复习11
Nacos 启动报错[db-load-error]load jdbc.properties error
ELK+Filebeat 部署安装
Leetcode: find the number of recent palindromes
Could not find artifact com. retail. stock:retail-stock-center:pom:1.0-SNAPSHOT in snapshots
Codeforces Round #797 (Div. 3) A~E题解记录
OpenInfra Summit 2022 | 华云数据用户再度入围超级用户大奖
Framework global listening screen click event input_ EVENT_ INJECTION
Redis---07---basic command operations of redis (mainly about how to expand the struct and map of go into redis parameters, and how to use struct to obtain the key value batch array returned by redis)
boost1.62.0编译静态库fPIC链接问题
Blow up the idea artifact in use recently
Report on Market Research and future forecast of Chinese pharmaceutical rubber stopper (2022 Edition)
Market Research - current situation and future development trend of Brazil berry oil market in the world and China
【TeXstudio】【3】较为完整的论文排版模板与bib文件引用方法
【天线】【1】一些名词和简单概念的解释
MySQL查询数据库所有表名及其注释