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

被折叠的 条评论
为什么被折叠?



