DGbroker主备切换

1.检查DG是否正常

DGMGRL> show configuration;

Configuration - dgc

  Protection Mode: MaxProtection
  Databases:
    atest1 - Primary database
    atest2 - Physical standby database

Fast-Start Failover: DISABLED

Configuration Status:
SUCCESS

2.如果DG无异常,则可以开始进行切换

DGMGRL> switchover to atest1;
Performing switchover NOW, please wait...
Operation requires a connection to instance "atest" on database "atest1"
Connecting to instance "atest"...
Connected.
Operation requires startup of instance "atest" on database "atest2"
Starting instance "atest"...
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
Database mounted.
Database opened.
Operation requires shutdown of instance "atest" on database "atest1"
Shutting down instance "atest"...
Unable to connect to database
ORA-12545: Connect failed because target host or object does not exist

Failed.
Warning: You are no longer connected to ORACLE.

Please complete the following steps to finish switchover:
    shut down instance "atest" of database "atest1"
    start up instance "atest" of database "atest1"

如提示,需要对数据库信息手动的启动或者重启

转载于:https://www.cnblogs.com/vijayfly/p/5065074.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值