1 , 通过 rman 进行 open resetlogs 后,catalogs 中的数据库信息更新为新服务器中恢复出来的数据库信息。这时通过 rman 所做的备份,都是针对新恢复出的数据库。
RMAN> alter database open resetlogs;
数据库已打开
在恢复目录中注册的数据库的新实体化
正在启动全部恢复目录的 resync
完成全部 resync
在恢复目录中注册的数据库的新实体化
正在启动全部恢复目录的 resync
完成全部 resync
2 , 通过 sqlplus 进行 open resetlogs 时,因不做 resync ,rman catalog 中的信息还是原数据库的,这时通过 rman 所做的备份,还是针对原数据库的。
参考:
rman unregister database :
1 , % rman TARGET SYS/change_on_install@prod1 CATALOG rman/rman@rcat connected to target database: RDBMS (DBID=1237603294) connected to recovery catalog database 2 , LIST BACKUP SUMMARY;
3 , Run
statements to delete all existing physical backups
DELETE BACKUP DEVICE TYPE sbt; DELETE BACKUP DEVICE TYPE DISK;
4 , % sqlplus rman/rman@rcat SQL> SELECT DB_KEY, DB_ID FROM DB WHERE DB_ID = 1237603294;
5 , While still connected to the recovery catalog, enter the following,
whereand
are the corresponding columns from the row you got from the query in step 4:
SQL> EXECUTE dbms_rcvcat.unregisterdatabase(db_key, db_id)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/66634/viewspace-999500/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/66634/viewspace-999500/