楼主: kuaileshizhe200

[原创] oracle dataguard主库不能用时,如何自动切换到备库

[复制链接]
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
21#
发表于 2015-7-17 21:53 | 只看该作者
> broker好像还需要付费吧

According to
https://support.oracle.com/epmos ... state=dbsa4iqal_116
Q & A from the Advisor Webcast 'Overview and Usage of the Data Guard Broker' (19-FEB-2013)

Q: Is there a License is required to use Data Guard Broker ??
A: No additional License is required to configure/use the Data Guard Broker – it is included in the Oracle Database – Enterprise Edition

> 很少见有人用

Once I asked an Oracle consultant, Among those using Data Guard, are there more people using Data Guard Broker or more just using Sqlplus? He said more are using Data Guard Broker. I'm not sure how true it is.

使用道具 举报

回复
论坛徽章:
122
现任管理团队成员
日期:2011-05-07 01:45:08
22#
发表于 2015-7-19 17:13 | 只看该作者
Yong Huang 发表于 2015-7-17 21:53
> broker好像还需要付费吧

According to

哦不需要license? 我靠,我被代理给骗了~

使用道具 举报

回复
论坛徽章:
122
现任管理团队成员
日期:2011-05-07 01:45:08
23#
发表于 2015-7-19 17:20 | 只看该作者
本帖最后由 zergduan 于 2015-7-19 17:22 编辑
Yong Huang 发表于 2015-7-16 21:51
> 用grid control管理dg的数据库就必须要安装broker

Can I have a reference to that statement? We use ...
没有broker,EM只能通过自定义的event监控dataguard中的数据库,不能够管理和创建dataguard,我是这样理解的;我记得我在测试GC的时候,在metalink上看到一篇note明确的写了Grid control和broker的关系,但是我找了半天,找不到了,不过broker的concept也写了这个内容,只不过比较隐晦
具体请看http://docs.oracle.com/cd/E11882 ... ncepts.htm#i1005678
当然我也开了一个SR给oracle,问这个问题,但是印度人一直没有回复我。。。

使用道具 举报

回复
论坛徽章:
16
2014年新春福章
日期:2014-02-18 16:43:09目光如炬
日期:2015-08-16 22:00:00目光如炬
日期:2015-08-16 22:00:00慢羊羊
日期:2015-06-26 10:52:05目光如炬
日期:2015-05-25 17:35:22目光如炬
日期:2015-05-25 17:34:42火眼金睛
日期:2015-05-25 15:24:12懒羊羊
日期:2015-03-20 14:42:42itpub13周年纪念徽章
日期:2014-10-08 15:15:25itpub13周年纪念徽章
日期:2014-10-08 15:15:25
24#
 楼主| 发表于 2015-7-20 08:58 | 只看该作者
zergduan 发表于 2015-7-19 17:13
哦不需要license? 我靠,我被代理给骗了~

听Yong Huang这么一说,下次应该不会被骗了

使用道具 举报

回复
论坛徽章:
122
现任管理团队成员
日期:2011-05-07 01:45:08
25#
发表于 2015-7-21 07:00 | 只看该作者
印度人回复我的SR了,要想管理Dataguard,必须开启dataguard broker。 当然我们这边是GC 11.1.0.1

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
26#
发表于 2015-7-22 23:13 | 只看该作者
> 要想管理Dataguard,必须开启dataguard broker

Thanks for that info. Is there an official document to support that statement? The link you gave in msg #23 is good. But it's not clear whether it supports that statement.

We do have Enterprise Manager (or Cloud Control). We never use it to create or even manage Data Guard. So we never bother to check if EM can manage it. We only use it to monitor. In addition, I wrote two scripts to monitor our Data Guard, since I trust my own scripts better.

使用道具 举报

回复
论坛徽章:
122
现任管理团队成员
日期:2011-05-07 01:45:08
27#
发表于 2015-7-23 09:31 | 只看该作者
Yong Huang 发表于 2015-7-22 23:13
> 要想管理Dataguard,必须开启dataguard broker

Thanks for that info. Is there an official document ...

我找到了:)

Oracle Data Guard Broker and Static Service Registration (Doc ID 1387859.1)

Enterprise Manager can be used to manage Data Guard configurations and the use of the Broker is required for any Data Guard configuration managed by Enterprise Manger.

使用道具 举报

回复
论坛徽章:
122
现任管理团队成员
日期:2011-05-07 01:45:08
28#
发表于 2015-7-23 09:35 | 只看该作者
还有一篇NOTE里面提到 类似 ”EM通过broker管理DG“这样的话,我肯定看过,但是实在找不到了~

使用道具 举报

回复
论坛徽章:
16
2014年新春福章
日期:2014-02-18 16:43:09目光如炬
日期:2015-08-16 22:00:00目光如炬
日期:2015-08-16 22:00:00慢羊羊
日期:2015-06-26 10:52:05目光如炬
日期:2015-05-25 17:35:22目光如炬
日期:2015-05-25 17:34:42火眼金睛
日期:2015-05-25 15:24:12懒羊羊
日期:2015-03-20 14:42:42itpub13周年纪念徽章
日期:2014-10-08 15:15:25itpub13周年纪念徽章
日期:2014-10-08 15:15:25
29#
 楼主| 发表于 2015-7-23 11:21 | 只看该作者
Yong Huang 发表于 2015-7-22 23:13
> 要想管理Dataguard,必须开启dataguard broker

Thanks for that info. Is there an official document ...

多谢分享,你提供的脚本我看了一下,主要是检测主库备库的的状态是否正常,我是实现想当主库不能正常访问时,备库自动切换为主库,不影响应用程序的正常使用,不知版主有什么高见?

使用道具 举报

回复
论坛徽章:
16
2014年新春福章
日期:2014-02-18 16:43:09目光如炬
日期:2015-08-16 22:00:00目光如炬
日期:2015-08-16 22:00:00慢羊羊
日期:2015-06-26 10:52:05目光如炬
日期:2015-05-25 17:35:22目光如炬
日期:2015-05-25 17:34:42火眼金睛
日期:2015-05-25 15:24:12懒羊羊
日期:2015-03-20 14:42:42itpub13周年纪念徽章
日期:2014-10-08 15:15:25itpub13周年纪念徽章
日期:2014-10-08 15:15:25
30#
 楼主| 发表于 2015-7-23 11:25 | 只看该作者
zergduan 发表于 2015-7-23 09:35
还有一篇NOTE里面提到 类似 ”EM通过broker管理DG“这样的话,我肯定看过,但是实在找不到了~

说句实话,我怎么发现oracle提供的dg怎么有点像鸡肋,不怎么好用,弃之也有点可惜。

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表