您的位置:首页 > 其它

通过Broker进行Switchover

2016-03-16 19:24 399 查看
在已配置好Broker的情况下进行Switchover是很方便的操作

DGMGRL> show configuration

Configuration - KING

Protection Mode: MaxPerformance

Databases:

king_pri - Primary database

king_std - (*) Physical standby database

Fast-Start Failover: ENABLED

Configuration Status:

SUCCESS

-----------查看switchover用法

DGMGRL> help switchover

Switches roles between a primary and standby database

Syntax:

SWITCHOVER TO <standby database name>;

DGMGRL> switchover to king_std

Performing switchover NOW, please wait...

New primary database "king_std" is opening...

Operation requires shutdown of instance "king" on database "king_pri"

Shutting down instance "king"...

ORACLE instance shut down.

Operation requires startup of instance "king" on database "king_pri"

Starting instance "king"...

ORACLE instance started.

Database mounted.

Database opened.

Switchover succeeded, new primary is "king_std"

-----------switchover之后再次查看

DGMGRL> show configuration

Configuration - KING

Protection Mode: MaxPerformance

Databases:

king_std - Primary database

king_pri - (*) Physical standby database

Fast-Start Failover: ENABLED

Configuration Status:

SUCCESS
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: