楼主: kuaileshizhe200

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

[复制链接]
论坛徽章:
122
现任管理团队成员
日期:2011-05-07 01:45:08
31#
发表于 2015-7-23 12:05 | 只看该作者
本帖最后由 zergduan 于 2015-7-23 12:05 编辑
kuaileshizhe200 发表于 2015-7-23 11:25
说句实话,我怎么发现oracle提供的dg怎么有点像鸡肋,不怎么好用,弃之也有点可惜。
在虚拟化成熟出现之前,我反而觉得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
32#
 楼主| 发表于 2015-7-23 16:53 | 只看该作者
zergduan 发表于 2015-7-23 12:05
在虚拟化成熟出现之前,我反而觉得dg是容灾最好的选择

备库切换为主库,我的提示15分钟,你经历的需要大概多长时间

使用道具 举报

回复
论坛徽章:
122
现任管理团队成员
日期:2011-05-07 01:45:08
33#
发表于 2015-7-23 17:44 来自手机 | 只看该作者
switchover?这决定于apply lag

使用道具 举报

回复
论坛徽章:
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
34#
发表于 2015-7-23 22:31 | 只看该作者
> 我找到了:)
> Oracle Data Guard Broker and Static Service Registration (Doc ID 1387859.1)

Thanks. That's indeed what you said.

To kuaileshizhe200:

As I said, we don't do automatic switchover/failover. We think that's a very high risk operation. There's so much coordination between various groups in such a disaster incident. So my scripts only do monitoring. If you need automatic failover, search the Web. There must be scripts already written by somebody.

使用道具 举报

回复
论坛徽章:
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
35#
 楼主| 发表于 2015-7-24 10:47 | 只看该作者
Yong Huang 发表于 2015-7-23 22:31
> 我找到了:)
> Oracle Data Guard Broker and Static Service Registration (Doc ID 1387859.1)

我个人认为,自动的角色切换也有一定的风险,不过暂时没有想到更好的方案。请问,想要实现两个数据库数据同步,而在主库故障时,另一个库也能让应用程序正常访问,你那边有什么好的方案?

使用道具 举报

回复
论坛徽章:
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
36#
 楼主| 发表于 2015-7-24 10:51 | 只看该作者
zergduan 发表于 2015-7-23 17:44
switchover?这决定于apply lag

你说的虚拟化技术,好像比较高大上,也不怎么了解,不知如何实现类似dg的功能

使用道具 举报

回复
论坛徽章:
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
37#
发表于 2015-7-25 00:15 | 只看该作者
> 在主库故障时,另一个库也能让应用程序正常访问,你那边有什么好的方案?

If the primary database is completely unusable (we've never had that disaster), many teams will work together and we'll bring up (which probably means failover i.e. activate) the standby. Since our primary is RAC, we always have at least one of the nodes available to the users. If you don't use RAC and your applications are fairly easy to change, you can consider automatic failover/switchover. But manual failover/switchover is not that hard anyway. Being automatic only saves you a little time. To us, it's not worth it. We DBAs are equiped with blackberry smart phones which have the SSH client that can connect to the servers. Even if we travel to the other side of the earth, we can login the database servers. So, saving a little response time is not a high priority and it comes with high risk.

使用道具 举报

回复
论坛徽章:
3
蓝色妖姬
日期:2014-08-28 15:17:25天蝎座
日期:2015-08-05 15:00:46摩羯座
日期:2015-08-07 08:29:59
38#
发表于 2015-8-5 08:51 | 只看该作者
zergduan 发表于 2015-7-23 17:44
switchover?这决定于apply lag

大神,看得出来你对dg很精通啊

使用道具 举报

回复
论坛徽章:
122
现任管理团队成员
日期:2011-05-07 01:45:08
39#
发表于 2015-8-5 09:02 | 只看该作者
我不是,您楼上的Huang先生绝对是专家

使用道具 举报

回复
招聘 : 数据库管理员
论坛徽章:
20
祖国60周年纪念徽章
日期:2009-10-09 08:28:00数据库板块每日发贴之星
日期:2011-02-20 01:01:01ITPUB季度 技术新星
日期:2011-04-02 10:31:09ITPUB十周年纪念徽章
日期:2011-11-01 16:24:042012新春纪念徽章
日期:2012-01-04 11:54:26玉石琵琶
日期:2012-02-21 15:04:38最佳人气徽章
日期:2012-03-13 17:39:18ITPUB 11周年纪念徽章
日期:2012-10-09 18:09:192013年新春福章
日期:2013-02-25 14:51:242011新春纪念徽章
日期:2011-02-18 11:43:33
40#
发表于 2015-8-5 12:57 | 只看该作者
switchover其实意义并不大,建议应该多关注failover吧。如果实现failover快速切换,数据无丢失,这才是关键所在。

使用道具 举报

回复

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

本版积分规则 发表回复

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