博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【DATAGUARD】手工恢复备库日志中断
阅读量:6181 次
发布时间:2019-06-21

本文共 2672 字,大约阅读时间需要 8 分钟。

1、在备库检查日志缺失
FAL[client]: Failed to request gap sequence
 GAP - thread 1 sequence
53415-53434
 DBID 424533136 branch 710350416
FAL[client]: All defined FAL servers have been attempted.
-------------------------------------------------------------
Check that the CONTROL_FILE_RECORD_KEEP_TIME initialization
parameter is defined to a value that is sufficiently large
enough to maintain adequate log switch information to resolve
archivelog gaps.
2 在主库中查询缺失的日志的所在路径和名称
SQL>SELECT NAME FROM V$ARCHIVED_LOG WHERE THREAD#=1 AND DEST_ID=1 AND SEQUENCE# BETWEEN 99 AND 109;
3 拷贝到备库的相应目录
oracle@p1a:/home/oracle/arch>scp orcl_53716_710350416.log ss1:/home/oracle/archive_gap/
oracle@ss1's password: 
orcl_53716_710350416.log                                                                                                         100%  389MB  35.3MB/s   00:11    
oracle@p1a:/home/oracle/arch>scp orcl_53717_710350416.log ss1:/home/oracle/archive_gap/
oracle@ss1's password: 
4 手工注册日志文件。
SQL> ALTER DATABASE REGISTER LOGFILE '/home/oracle/archive_gap/orcl_53415_710350416.log';
Database altered.
SQL> ALTER DATABASE REGISTER LOGFILE '/home/oracle/archive_gap/orcl_53416_710350416.log';
Database altered.
SQL> ALTER DATABASE REGISTER LOGFILE '/home/oracle/archive_gap/orcl_53417_710350416.log';
Database altered.
。。。。。。。。。
SQL> ALTER DATABASE REGISTER LOGFILE '/home/oracle/archive_gap/orcl_53432_710350416.log';
Database altered.
SQL> ALTER DATABASE REGISTER LOGFILE '/home/oracle/archive_gap/orcl_53433_710350416.log';
Database altered.
SQL> ALTER DATABASE REGISTER LOGFILE '/home/oracle/archive_gap/orcl_53434_710350416.log';
Database altered.
5 查看告警日志
ALTER DATABASE REGISTER LOGFILE '/home/oracle/archive_gap/orcl_53415_710350416.log'
There are 1 logfiles specified.
ALTER DATABASE REGISTER [PHYSICAL] LOGFILE
Completed: ALTER DATABASE REGISTER LOGFILE '/home/oracle/archive_gap/orcl_53415_710350416.log'
Tue Aug 23 11:58:34 2011
Media Recovery Delayed for 1440 minute(s) (thread 1 sequence 53415)
Tue Aug 23 12:00:26 2011
ALTER DATABASE REGISTER LOGFILE '/home/oracle/archive_gap/orcl_53416_710350416.log'
There are 1 logfiles specified.
ALTER DATABASE REGISTER [PHYSICAL] LOGFILE
Resynchronizing thread 1 from sequence 53415 to 53416
Completed: ALTER DATABASE REGISTER LOGFILE '/home/oracle/archive_gap/orcl_53416_710350416.log'
Media Recovery Log /home/oracle/archive_gap/orcl_53416_710350416.log
Tue Aug 23 12:12:36 2011
RFS[2]: Selected log 31 for thread 1 sequence 53837 dbid 424533136 branch 710350416
Tue Aug 23 12:12:42 2011
RFS[1]: Selected log 32 for thread 2 sequence 36957 dbid 424533136 branch 710350416
Tue Aug 23 12:12:43 2011
Media Recovery Log /home/oracle/archive_gap/orcl_53417_710350416.log
Tue Aug 23 12:13:10 2011
6 再次查看 
SQL> select * from v$archive_gap;
no rows selected

转载地址:http://vbcda.baihongyu.com/

你可能感兴趣的文章
航天科工自行研发“反无人机”系统,综合拦截成功率高达80%
查看>>
中科曙光与寒武纪合作推出AI服务器,将实时分析能力提升百倍
查看>>
IBM押注AI、量子计算、区块链,发布未来5年五大科技预测
查看>>
风口行业程序员必看!直播网络成本降低70%,智能接入网关是怎样实现的?
查看>>
2018第五届中国机器人应用与产业发展论坛 &2018中国智能包装工业发展大会
查看>>
日本研发投篮机器人Cue,投球命中率接近100%
查看>>
WPS for Linux字体配置(Ubuntu 16.04)
查看>>
陈妍希和你一起带“蛙儿子”做公益,守护宝贝她有话跟你说!
查看>>
享受生活:值得关注的七件家居智能硬件
查看>>
一个工具箱工具
查看>>
ASP.NET深入浅出系列2-页面生命周期详解
查看>>
暴风魔镜合伙人崔海庆演讲实录:用VR社交来撼动世界
查看>>
补全等式(DFS,全排列)
查看>>
如何编写linux下nand flash驱动-1
查看>>
异步社区本周半价电子书
查看>>
2星|《自金融》:公开信息汇总,缺乏深度,缺乏自有观点
查看>>
inode节点与硬链接概念详解
查看>>
OSX下配置gradle
查看>>
Uvaoj 10048 - Audiophobia(Floyd算法变形)
查看>>
显示浏览器窗口的高度和宽度
查看>>