rman备份异机恢复部分pdb

本文档介绍了如何使用RMAN在多租户环境中将单个PDB从源数据库恢复到备用服务器。具体步骤包括:全量备份CDB$ROOT和PDB$SEED以及目标PDB,恢复控制文件,注册备份集,然后恢复CDB$ROOT、PDB$SEED和目标PDB,并进行相关数据文件和临时文件的重命名操作。该过程可用于恢复已删除的PDB并将其插入源数据库。
摘要由CSDN通过智能技术生成

rman备份异机恢复部分pdb

参考资料:
How to use Rman to Restore Of Single PDB in Multitenant to Alternate Server (文档 ID 2142675.1)

 

Two PDB available are PDB1 and PDB2
In this case we are assuming a full backup of the database including the PDB1/PDB2 has been taken on the
target(source) database
To restore a single PDB we need to restore the backup of CDB$ROOT and PDB$SEED along with the PDB which
needs to be restored.
A full backup of the database completed at sequence 100 and we need to restore single PDB PDB1 until
sequence 120 on test server
A full backup was taken using the 'backup database plus archivelog' command.
Please note that you can use this same procedure to manually restore a subset of PDBs from multiple PDBs in
the multitenant environment.
You can restore a dropped PDB using this approach and later plug it into the source database.


--实验,部分过程省略........

--1.rman使用cdb备份整个数据库,通过cdb库的备份,可以实现对应的cdb和所包含的pdb
SQL> show pdbs;

CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB1 READ WRITE NO
4 MYPDB1 READ WRITE NO


[oracle@oracle19c]$ rman target /

RMAN> run{
allocate channel c1 device type disk;
allocate channel c2 device type disk;
backup database filesperset 3 format '/home/oracle/backup/db_%d_%T_%U';
backup archivelog all format '/home/oracle/backup/arc_%t_%s';
backup current controlfile format '/home/oracle/backup/cntrl_%s

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值