当前位置:网站首页>RMAN backup database_ Use RMAN for split mirror backup
RMAN backup database_ Use RMAN for split mirror backup
2022-06-25 18:21:00 【Count words and lines】
Many sites keep a database backup stored on disk to prevent point in time recovery in case of media failure or incorrect user behavior on the primary database . Data file backup on disk simplifies the restore steps of recovery , Make recovery faster and more reliable .
Warning : Never be online redo Log backup , Split image or other backup methods . Restore Online redo Log backups can lead to the creation of 2 Archive logs with the same serial number but different contents . Again , Best use BACKUP CONTROLFILE Command instead of splitting the image for control file backup .
One way to create a backup of a data file on disk is to use disk mirroring . for example , The operating system can maintain for each file in the database 3 Equivalent copies . In this configuration , You can split a mirrored copy of the database for backup .
RMAN Does not automatically split the mirror , However, split images can be used in backup and recovery . for example ,RMAN You can treat a split image of a data file as a copy of the data file , You can also back up this copy to disk or tape . The steps in this section explain how to use ALTER SYSTEM SUSPEND/RESUME Functionality to do split image backup .
Some mirroring technologies do not require Oracle The database suspends all before the image can be split I/O And as backup . Refer to storage manager , Volume manager or file system documentation to get information about whether it is necessary to suspend from the database instance I/O Information about .
By using SUSPEND/RESUME Do a split image backup of the table space :
1) start-up RMAN, And then use ALTER TABLESPACE … BEGIN BACKUP Statement to put a tablespace into backup mode ( have access to ALTER DATABASE BEGIN BACKUP To put all tablespaces into backup mode ).
for example , Set the table space users Put into backup mode , Connect RMAN Go to the target database and run the following SQL command :
ALTER TABLESPACE users BEGIN BACKUP;
2) If required by the mirroring software or hardware , Suspend the database IO.
ALTER SYSTEM SUSPEND;
3) Split the image of the underlying data file contained in these table spaces .
4) Set the database out of the pending state .
ALTER SYSTEM RESUME;
5) Set the tablespace out of backup mode .
ALTER TABLESPACE users END BACKUP;
have access to ALTER DATABASE END BACKUP To set all tablespaces out of backup mode .
6) Use command CATALOG Register the user managed image copy as the data file copy .
CATALOG DATAFILECOPY ‘/dk2/oradata/trgt/users01.dbf’; #catalog split mirror
7) Back up a copy of the data file .
BACKUP DATAFILECOPY ‘/dk2/oradata/trgt/users01.dbf’;
8) When you are ready to resynchronize the split mirror , Use CHANGE … UNCATALOG Command release in step 6 A copy of the registered data file .
CHANGE DATAFILECOPY ‘/dk2/oradata/trgt/users01.dbf’ UNCATALOG;
9) Resynchronize the image for the affected data file .
source :《Oracle Database Backup and Recovery User’s Guide,19c》
边栏推荐
- Qt使用SQLITE数据库
- . How to exit net worker service gracefully
- [tips] how to quickly start a new position for a new software testing engineer
- Wechat applet reports an error: request:fail URL not in domain list
- 篇7:CLion中没有代码提示,,,
- new TypeReference用法 fastjson[通俗易懂]
- 【深入理解TcaplusDB技术】TcaplusDB运维
- Qinheng ch583 USB custom hid debugging record
- [deeply understand tcapulusdb technology] tmonitor system upgrade
- How to delay the delay function
猜你喜欢

How to judge whether you are suitable for software testing

Three traversal methods of binary tree (recursive + non recursive) complete code
![[tips] how to quickly start a new position for a new software testing engineer](/img/88/5c002f492db56c646cbfd1ee98cd5b.png)
[tips] how to quickly start a new position for a new software testing engineer

Boiled peanuts

【深入理解TcaplusDB技术】TcaplusDB运维单据
![[in depth understanding of tcapulusdb technology] tcapulusdb construction data](/img/64/4d7ec393d8469cdadc89078a8cf4b1.png)
[in depth understanding of tcapulusdb technology] tcapulusdb construction data

LeetCode力扣(剑指offer 26-30)26. 树的子结构 27. 二叉树的镜像 28. 对称的二叉树 29. 顺时针打印矩阵 30. 包含min函数的栈

Matlab中图形对象属性gca使用

anaconda下载清华源

【路径规划】如何给路径增加运动对象
随机推荐
【深入理解TcaplusDB技术】TcaplusDB新增机型
New typereference usage fastjson[easy to understand]
Slam visuel Leçon 14 leçon 9 filtre Kalman
Deep learning network model
Centos7 installing redis 7.0.2
Three traversal methods of binary tree (recursive + non recursive) complete code
解决nvprof 报错ERR_NVGPUCTRPERM - The user does not have permission to profile on the target device.
RMAN备份数据库_管理备份窗口(Backup Window)
Wechat applet reports an error: request:fail URL not in domain list
RMAN备份数据库_重启RMAN备份
How to develop the hash quiz game system? Hash quiz game system development application details case and source code
Qt使用SQLITE数据库
JSP page running but displaying source code
Sword finger offer double pointer
How to open a stock account is it safe to open an account
158_ Model_ Power Bi uses DAX + SVG to open up almost all possibilities for making business charts
Video production material website arrangement
IVX 启航
【深入理解TcaplusDB技术】创建游戏区
Handling method of qstring containing "\u0000" in QT