[DGMGRL]Dgmgrl管理Dataguard(3) 草稿

Data Guard主从库之间的角色切换分为以下两种:
1)Switchover
Swithchover通常都是人为的有计划的进行角色互换,比如升级等。它通常都是无损的,即不会有数据丢失。其执行主要分为两个阶段:
1.Primary转为Standby
2.Standby之一转为Primary
2)Failover

Failover是指由于Primary故障无法短时间恢复,Standby不得不充当Primay的角色,如果处于最高性能模式,这种切换很有可能导致数据丢失。


DGMGRL> switchover to dg;
Performing switchover NOW, please wait...
Operation requires a connection to instance "dg" on database "dg"
Connecting to instance "dg"...
Connected.
New primary database "dg" is opening...
Operation requires startup of instance "orcl" on database "orcl"
Starting instance "orcl"...
ORACLE instance started.
Database mounted.
Database opened.
Switchover succeeded, new primary is "dg"

DGMGRL> show configuration
Configuration - orcl
  Protection Mode: MaxPerformance
  Databases:
    dg   - Primary database
    orcl - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29812844/viewspace-1988862/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29812844/viewspace-1988862/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值