oracle 9I 数据库异机恢复( Catalog 库 )

1 , 通过 rman 进行 open resetlogs 后,catalogs 中的数据库信息更新为新服务器中恢复出来的数据库信息。这时通过 rman 所做的备份,都是针对新恢复出的数据库。
RMAN> alter database open resetlogs;
数据库已打开
在恢复目录中注册的数据库的新实体化
正在启动全部恢复目录的 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, 
where  and  are the corresponding columns from the row you got from the query in step 4: 
 
  
SQL> EXECUTE dbms_rcvcat.unregisterdatabase(db_key, db_id)

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/66634/viewspace-999500/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/66634/viewspace-999500/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值