0206关于dg Gap Detection and Resolution

[20170206]关于Data Guard Gap Detection and Resolution.txt

--节前遇到的问题,发现实施方建立的dg有一些古怪.链接:http://www.itpub.net/thread-2082892-1-1.html
--参数fal_client,fal_server,log_archive_config没有设置.
--更觉得奇怪的是db_unique_name两边是一样的(注:实际上两边的环境变量ORACLE_SID是一样的,而缺省如果你不设置db_unique_name,默
--认应该等于ORACLE_SID).

--//我介入当时就是解决gap 间隙问题.
--//根据链接的讨论,zergduan给出的结论是:

1. auto gap resolution
通过主库和备库之间的进程心跳来完成传输gap日志,也通过心跳来检测gap

2. FAL
也就是11g之前 FAL client 和 FAL server两个参数,11g开始只有一个参数 FAL Server
通过扫描控制文件发现gap,通过FAL来解决gap

3. 手动解决
由dba来手动传输并注册gap的归档日志,或者通过增量备份前滚恢复解决gap.

--我也看一些文档,转抄如下:

Data Guard Gap Detection and Resolution [ID 232649.1]

Methods of Gap Resolution:
===========================

Data Guard provides two methods for gap resolution, automatic and FAL (Fetch Archive Log). The automatic method requires
no configuration while FAL requires configuration via init.ora parameters. Both methods are discussed below.

Automatic Gap Resolution:
~~~~~~~~~~~~~~~~~~~~~~~~~~~
In both 9.0.1 and 9.2.0 Automatic Gap Resolution is implemented during log transport processing. As the LGWR or ARCH
process begins to send redo over to the standby, the sequence number of the log being archived is compared to the last
sequence received by the RFS process on the standby. If the RFS process detects that the archive log being received is
greater than the last sequence received plus one, then the RFS will piggyback a request to the primary to send the
missing archive logs. Since the standby destination requesting the gap resolution is already defined by the
LOG_ARCHIVE_DEST_n parameter on the primary, the ARCH process on the primary sends the logs to the standby and notifies
the LGWR that the gaps have been resolved.

Starting in 9.2.0, automatic gap resolution has been enhanced. In addition to the above, the ARCH process on the primary
database polls all standby databases every minute to see if there is a gap in the sequence of archived redo logs. If a
gap is detected then the ARCH process sends the missing archived redo log files to the standby databases that reported
the gap. Once the gap is resolved, the LGWR process is notified that the site is up to date.

FAL Gap Resolution:
~~~~~~~~~~~~~~~~~~~~~~~~
As the RFS process on the standby receives an archived log, it updates the standby controlfile with the name and
location of the file. Once the MRP (Media Recovery Process) sees the update to the controlfile, it attempts to recover
that file. If the MRP process finds that the archived log is missing or is corrupt, FAL is called to resolve the gap or
obtain a new copy. Since MRP has no direct communications link with the primary, it must use the FAL_SERVER and
FAL_CLIENT initialization parameters to resolve the gap.  Both of these parameters must be set in the standby init.ora.
The two parameters are defined as:

FAL_SERVER:
An OracleNet service name that exist in the standby tnsnames.ora file that points to the primary database listener. The
FAL_SERVER parameter can contain a comma delimited list of locations that should be attempted during gap resolution.

FAL_CLIENT:
An OracleNet service name that exist in the primary tnsnames.ora file that points to the standby database listener. The
value of FAL_CLIENT should also be listed as the service in a remote archive destination pointing to the standby.

Once MRP needs to resolve a gap it uses the value from FAL_SERVER to call the primary database. Once communication with
the primary has been established, MRP passes the FAL_CLIENT value to the primary ARCH process. The primary ARCH process
locates the remote archive destination with the corresponding service name and ships the missing archived redo logs. If
the first destination listed in FAL_SERVER is unable to resolve the gap then the next destination is attempted until
either the gap is resolved or all FAL_SERVER destination have been tried.

As of 9.2.0 FAL Gap Resolution only works with Physical Standby databases as the process is tied to MRP. Gap recovery on
a logical standby database is handled through the heartbeat mechanism.

--//感觉有必要自己做一些测试,来验证一些结论.
--//具体测试看下篇...

时间: 2024-08-01 10:43:10

0206关于dg Gap Detection and Resolution的相关文章

0206关于Dg Gap Detection and Resolution2

[20170206]关于Data Guard Gap Detection and Resolution2.txt --测试看看一些参数不设置是否可以解决gap问题. 1.环境: SYS@book> @ &r/ver1 PORT_STRING                    VERSION        BANNER ------------------------------ -------------- ----------------------------------------

0206关于DG Gap Detection and Resolution3

[20170206]关于Data Guard Gap Detection and Resolution3.txt --测试看看一些参数不设置是否可以解决gap问题.相关链接: http://blog.itpub.net/267265/viewspace-2133106/ http://blog.itpub.net/267265/viewspace-2133107/ 1.环境: SYS@book> @ &r/ver1 PORT_STRING                    VERSION

[20170215]ORA-00088与DG Gap监测与解决4

[20170215]ORA-00088与Data Guard Gap Detection and Resolution4.txt --前一阵子遇到的测试,链接如下: http://blog.itpub.net/267265/viewspace-2133106/ http://blog.itpub.net/267265/viewspace-2133107/ http://blog.itpub.net/267265/viewspace-2133250/ --//根据链接的讨论,zergduan给出的

SQL Server 2008性能故障排查(一)——概论

原文:SQL Server 2008性能故障排查(一)--概论 备注:本人花了大量下班时间翻译,绝无抄袭,允许转载,但请注明出处.由于篇幅长,无法一篇博文全部说完,同时也没那么快全部翻译完,所以按章节发布.由于本人水平有限,翻译结果肯定存在问题,为了不造成误导,在每篇结尾处都附上原文,供大家参考,也希望能指出我的问题,以便改进.谢谢. 另外,本文写给稍微有经验的数据库开发人员或者DBA看,初学者可能会看不懂.在此请见谅 作者:Sunil Agarwal, Boris Baryshnikov, K

vagrant学习笔记 - 基本命令的使用

vagrant基本命令,根据操作的目的,可以对基本命令进行分类: 1 操作镜像 box package 2 操作虚拟机 connect destroy halt init powershell provision rdp reload resume share snapshot ssh suspend up 3 监控虚拟机 global-status ssh-config port status 4 其他 help login plugin push version 1 操作镜像 该命令有两个,

[20170215]设置log_archive_dest_state_2

[20170215]设置log_archive_dest_state_2参数.txt --//最近一直在测试dg gap的监测与解决问题. --//经常停止在打开传输并应用日志.一般选择切换日志的模式,alter system archive log current ;或者alter system switch logfile ; --//实际上也可以通过 --//alter system set log_archive_dest_state_2=defer scope=memory; --//

【DG】 DataGuard 中处理archive gap的方法

[DG] DataGuard 中处理archive gap的方法 DG 中处理archive gap的方法 ==================== 当Primary Database的某些日志没有成功发送到Standby Database, 这时候Standby DB上就会出现归档裂缝(Archive Gap). Oracle主要由两个参数处理Archive Gap: FAL_* 是Fetch Archive Log的缩写,通过配置FAL_server和FAL_client实现Gap检测的一种

Machine Learning-based Web Exception Detection

Web firewalls are the first line of defense when it comes to information security. With rapid updates in network technologies, new hacking tricks are also emerging, bringing forth challenges for firewalls following traditional rules. Traditional web

Clash Detection

Clash Detection eryar@163.com Abstract. Clash detection is used for the model collision check. The paper introduce the clash detection in PDMS, and also about how to set the piping component for the operation space clash check. Key Word. Clash Detect