Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3540424
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2022-05-04 21:02:34

如果备库控制文件损坏,adg需要继续保持同步,那么如何修复
应该从主库拿最新的控制文件,然后配置一下

  1. sqlplus / as sysdba
  2. alter database create standby controlfile as '/tmp/prod_for_standby.ctl';

  3. rman target /
  4. backup format='/tmp/prod_standby.ctl' current controlfile for standby;


  5. backup format='/tmp/prod_standby.ctl' as copy current controlfile for standby;


  6. run {
  7. allocate channel d1 device type disk format '/backup/%U';
  8. allocate channel d2 device type disk format '/backup/%U';
  9. sql 'alter system archive log current'
  10. backup database include current controlfile for standby;
  11. sql 'alter system archive log current';
  12. backup archivelog all;
  13. }

阅读(528) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~