Chinaunix首页 | 论坛 | 博客
  • 博客访问: 772090
  • 博文数量: 185
  • 博客积分: 7434
  • 博客等级: 少将
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-29 14:01
文章分类

全部博文(185)

文章存档

2013年(1)

2012年(2)

2011年(17)

2010年(25)

2009年(36)

2008年(104)

分类: Oracle

2008-05-05 18:39:42

设置rman CONTROLFILE AUTOBACKUP
 
rman target /
RMAN>CONFIGURE CONTROLFILE AUTOBACKUP ON;
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/home/oracle/rptdb1_ctl_%F';
 
当数据库的control file全部丢失或损坏时,我们就可以从autobackup中恢复控制文件
启动数据库到nomount状态下
然后进行rman恢复
rman target /
RMAN>set DBID=
RMAN>set CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/home/oracle/rptdb1_ctl_%F';
因为现在控制文件全部丢失,rman无法知道DBID和autobackup的存放位置,所以你先要设置DBID和告诉rman存放autobackup的位置
 
然后你就可以进行控制文件恢复了
RMAN>restore controlfile from autobackup;
 
 
作者:george.ma   http://blog.chinaunix.net/u/12521/
阅读(884) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~