Making Disk Backups Accessible Without Shared Disk

本文档详细介绍了如何在两台主机(srchost和dsthost)之间转移RMAN数据库备份。首先,确保在源主机上创建与目标主机相同名称的备份目录。然后,可以使用RMAN的BACKUP COPY OF命令或操作系统工具将备份复制到新目录,并更新源控制文件的目录信息。最后,手动将备份从源主机的新目录转移到目标主机的对应目录,以便辅助实例可以找到并恢复这些备份。

You can use the shared disk technique to make backups available to the auxiliary instance. When NFS or shared disk is not an option, then the path that stores the backups must exist on both the source and destination hosts, unless the BACKUP LOCATION option is used for the DUPLICATE command without a target or recovery catalog connection.

Assume that you maintain two hosts, srchost and dsthost. The database on srchost is srcdb. The RMAN backups of srcdb reside in /dsk1/bkp on host srchost. The directory /dsk1/bkp is in use on the destination host, so you intend to store backups in /dsk2/dup on the destination host.

To transfer the backups from the source host to the destination host:

  1. Create a directory in the source host that has the same name as the directory on the destination host that will contain the backups.

For example, if you intend to store the RMAN backups in /dsk2/dup on the destination host, then create /dsk2/dup on the source host.

  1. On the source host, copy the backups to the directory created in the previous step, and then catalog the backups. You can use either of the following approaches:
  1. Connect RMAN to the source database as TARGET and use the BACKUP command to back up the backups. For example, use the BACKUP COPY OF DATABASE command to copy the backups in /dsk1/bkp on the source host to /dsk2/dup on the source host. In this case, RMAN automatically catalogs the backups in the new location. If you are duplicating a pluggable database (PDB), then use the PLUGGABLE DATABASE syntax of the BACKUP COPY OF command to copy only the backups of the PDB.
  2. Use an operating system utility to copy the backups in /dsk1/bkp on the source host to /dsk2/dup on the source host. Afterward, connect RMAN to the source database as TARGET and use the CATALOG command to update the source control file with the location of the manually transferred backups.
  1. Manually transfer the backups in the new directory on the source host to the identically named directory on the destination host. For example, use FTP to transfer the backups in /dsk2/dup on the source host to /dsk2/dup on the destination host.

The auxiliary channel can search for backups in /dsk2/dup on the destination host and restore them.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值