免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1520 | 回复: 3
打印 上一主题 下一主题

请教下oracle dataguard的一些参数的含义? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-03-17 18:20 |只看该作者 |倒序浏览
alter system set log_archive_dest_2='SERVICE=standby  optional/MANDATORY REOPEN=5 MAX_FAILURE=3 ' scope=both;

optional和mandatory是在什么情况下使用的?

我在网上看到了两个解释,不知道哪个解释对

#为madatory状态后,如果本次归档失败,则在归档下一个日志时会再次尝试
#如果定义为可选状态(optional),那么在归档失败后不会再次尝试归档的。



 # MANDATORY:如果无法同步时,主机也无法写入数据,这样的好处是一旦同步机制失效,则可以保护主备机一致;
 # OPTIONAL: 如果无法同步时,主机可以写入数据,这样一旦同步机制失效,主备机的数据不会统一。

论坛徽章:
0
2 [报告]
发表于 2012-03-17 18:25 |只看该作者
实际的应用中是使用哪个参数呢?

我想要实现的功能是如果无法同步时,主机可以写入数据,一旦网络恢复或者归档成功后,继续应用归档

论坛徽章:
0
3 [报告]
发表于 2012-03-28 10:15 |只看该作者
有人研究过吗?

论坛徽章:
0
4 [报告]
发表于 2012-03-28 13:10 |只看该作者
MANDATORY
Specifies that filled online log files must be successfully archived to the destination
before they can be reused.

Usage Notes
■ The  LOG_ARCHIVE_DEST_11 through LOG_ARCHIVE_DEST_31 parameters do
not support the MANDATORY attribute.
■ If  MANDATORY is not specified, then, by default, the destination is considered to be
optional.
At least one destination must succeed, even if all destinations are optional. If
archiving to an optional destination fails, the online redo log file is still available
for reuse and may be overwritten eventually. However, if the archival operation of
a mandatory destination fails, online redo log files cannot be overwritten.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP