Rman is a problem for beginners, but it is also true for me. So here I will summarize the problems I encountered during the use of rman and provide a solution. I hope to give some valuable experience to those dishes that are the same as me.
1. The first problem is about the storage location of the Backup set after backup.
Error Background: for full backup, if the backup is performed on machine B after the backup is performed on machine. I am troubled by the problem that the backup set is stored in the directory of machine B. Now I am sure to tell you which directory you can store the data in. You only need to restore the permission that the Oracle user can read. Of course, if the directory is not the same as that of the original backup machine and the backup set is not registered during restoration, the same error will occur for a long time.
Solution: register the backup set (you can let rman know where the backup set is when it is restored ), the specific method is as follows (/dsms2012 indicates the location where I uploaded the backup set to the database machine to be restored ):
RMAN> catalog start with '/dsms2012 /';
Released channel: ORA_DISK_1
Searching for all files that match the pattern/dsms2012/
List of Files Unknown to the Database
============================================
File Name:/dsms2012/arch_ECDSDB_30530_1.bk
File Name:/dsms2012/arch_ECDSDB_30531_1.bk
File Name:/dsms2012/ctl. bk
File Name:/dsms2012/pri_ECDSDB_30526_1.bk
File Name:/dsms2012/pri_ECDSDB_30527_1.bk
File Name:/dsms2012/pri_ECDSDB_30528_1.bk
File Name:/dsms2012/pri_ECDSDB_30529_1.bk
File Name:/dsms2012/spfile. bk
Do you really want to catalog the above files (enter YES or NO )? YES
Cataloging files...
Cataloging done
List of Cataloged Files
======================================
File Name:/dsms2012/arch_ECDSDB_30530_1.bk
File Name:/dsms2012/arch_ECDSDB_30531_1.bk
File Name:/dsms2012/ctl. bk
File Name:/dsms2012/pri_ECDSDB_30526_1.bk
File Name:/dsms2012/pri_ECDSDB_30527_1.bk
File Name:/dsms2012/pri_ECDSDB_30528_1.bk
File Name:/dsms2012/pri_ECDSDB_30529_1.bk
File Name:/dsms2012/spfile. bk