楼主: kuaileshizhe200

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

[复制链接]
论坛徽章:
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
41#
 楼主| 发表于 2015-8-5 15:40 | 只看该作者
huanhuanlove 发表于 2015-8-5 12:57
switchover其实意义并不大,建议应该多关注failover吧。如果实现failover快速切换,数据无丢失,这才是关键 ...

目前也没有找到特别好的方案

使用道具 举报

回复
论坛徽章:
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
42#
发表于 2015-8-5 23:17 | 只看该作者
kuaileshizhe200,

If you really want to implement automatic failover, why not install Data Guard Broker? That's it.

If you don't like the Broker, write a simple shell script which checks the status of the primary, and if it's down, logs into standby and activates it. Tell us what difficulty you have and we'll help you. Of course you can make the script more fancy than that. For example, try switchover first. If that doesn't work, do activate. When you add more and more logic to the script, you may prefer Broker again.

使用道具 举报

回复
论坛徽章:
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
43#
 楼主| 发表于 2015-8-6 08:56 | 只看该作者
Yong Huang 发表于 2015-8-5 23:17
kuaileshizhe200,

If you really want to implement automatic failover, why not install Data Guard B ...

多谢版主,我基本也是考虑shell脚本这种实现方式

使用道具 举报

回复
招聘 : 数据库管理员
论坛徽章:
25
ITPUB9周年纪念徽章
日期:2010-10-08 09:32:25itpub13周年纪念徽章
日期:2014-10-08 16:34:19itpub13周年纪念徽章
日期:2014-10-10 17:49:05马上有车
日期:2014-12-19 09:23:24马上加薪
日期:2014-12-29 20:30:27马上有车
日期:2015-01-20 22:29:13美羊羊
日期:2015-03-04 14:52:282015年新春福章
日期:2015-03-06 11:58:18狮子座
日期:2015-07-14 14:44:11秀才
日期:2015-08-17 13:13:32
44#
发表于 2015-8-18 16:53 | 只看该作者
kuaileshizhe200 发表于 2015-8-6 08:56
多谢版主,我基本也是考虑shell脚本这种实现方式

shell脚本有可能存在误判的几率.

使用道具 举报

回复
论坛徽章:
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
45#
 楼主| 发表于 2015-8-19 09:06 | 只看该作者
www_xylove 发表于 2015-8-18 16:53
shell脚本有可能存在误判的几率.

目前除了shell还没有找到其他可行的方案。。。。。

使用道具 举报

回复
招聘 : 数据库管理员
论坛徽章:
25
ITPUB9周年纪念徽章
日期:2010-10-08 09:32:25itpub13周年纪念徽章
日期:2014-10-08 16:34:19itpub13周年纪念徽章
日期:2014-10-10 17:49:05马上有车
日期:2014-12-19 09:23:24马上加薪
日期:2014-12-29 20:30:27马上有车
日期:2015-01-20 22:29:13美羊羊
日期:2015-03-04 14:52:282015年新春福章
日期:2015-03-06 11:58:18狮子座
日期:2015-07-14 14:44:11秀才
日期:2015-08-17 13:13:32
46#
发表于 2015-8-19 10:15 | 只看该作者
kuaileshizhe200 发表于 2015-8-19 09:06
目前除了shell还没有找到其他可行的方案。。。。。

只要符合企业的RTO,RPO,手动切换是最佳可行方案。

使用道具 举报

回复

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

本版积分规则 发表回复

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