通过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
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
相关文章推荐
- 蓝桥编程环境遇到问题
- 正确使用Java事件通知
- ListView实现倒计时功能
- git 在linux中的使用
- TCP/IP 网络基础(一)
- 词频统计 (个人项目)
- 常见排序的时间复杂度和空间复杂度
- java中遍历MAP,嵌套map的几种方法
- Debain 错误 "Could not apply changes! Fix broken packages first."
- Http client
- C++快排实现代码
- java中遍历MAP,嵌套map的几种方法
- 76. Minimum Window Substring *HARD*
- S5PV210 一些模块编程常用寄存器
- android-studio下ndk的配置和简单JNI调用遇到的问题
- Java多线程用法解析
- Android 6.0新特性
- TCP三次握手
- 深入分析java.util.concurrent并发包下的CountDownLatch.java
- Java学习(二)