我的编程空间,编程开发者的网络收藏夹
学习永远不晚

[ORACLE DATAGUARD] switchover的过程

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

[ORACLE DATAGUARD] switchover的过程

1.检查主库的状态:

SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;


SWITCHOVER_STATUS

--------------------

TO STANDBY


2.将主库设置为standby role

 alter database commit to switchover to physical standby; 

 shutdown immediate;

 startup mount;

 

3.将standby转为primary

SQL> select NAME ,DB_UNIQUE_NAME ,open_mode,DATABASE_ROLE from v$database; 


NAME  DB_UNIQUE_NAME OPEN_MODE      DATABASE_ROLE

--------- ------------------------------ -------------------- ----------------

ORCL  sty MOUNTED      PHYSICAL STANDBY


SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE; 


SWITCHOVER_STATUS

--------------------

TO PRIMARY



alter database commit to switchover to primary; 

alter database open; 

SQL> select NAME ,DB_UNIQUE_NAME ,open_mode,DATABASE_ROLE from v$database; 


NAME  DB_UNIQUE_NAME OPEN_MODE      DATABASE_ROLE

--------- ------------------------------ -------------------- ----------------

ORCL  sty READ WRITE      PRIMARY

 

4.原来的primary库上执行:

alter database recover managed standby database disconnect from session; 

SQL> select NAME ,DB_UNIQUE_NAME ,open_mode,DATABASE_ROLE from v$database; 


NAME  DB_UNIQUE_NAME OPEN_MODE      DATABASE_ROLE

--------- ------------------------------ -------------------- ----------------

ORCL  pri MOUNTED      PHYSICAL STANDBY


免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

[ORACLE DATAGUARD] switchover的过程

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

ORA-16455: switchover to standby failed ORACLE 报错 故障修复 远程处理

文档解释ORA-16455: switchover to standby failedCause: An attempt to switchover to a physical standby database
ORA-16455: switchover to standby failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-16257: Switchover initiated stop apply successfully completed ORACLE 报错 故障修复 远程处理

文档解释ORA-16257: Switchover initiated stop apply successfully completedCause: SQL Apply was stopped because of a
ORA-16257: Switchover initiated stop apply successfully completed ORACLE 报错 故障修复 远程处理
2023-11-05

Oracle的启动过程

a、先找到初始化文件(spfile或者pfile),此时数据库处在nomount状态;     b、根据初始文件找到控制文件(Control File),此时数据库处于mount状态;mount状态会读取控制文件中的参数     c、根据控制文件(*.ctl)
Oracle的启动过程
2014-06-10

ORA-16751: failed to switchover to physical standby database ORACLE 报错 故障修复 远程处理

文档解释ORA-16751: failed to switchover to physical standby databaseCause: The Data Guard broker failed to switch a
ORA-16751: failed to switchover to physical standby database ORACLE 报错 故障修复 远程处理
2023-11-05

Oracle数据库存储过程的调试过程

目录oracle存储过程调试方法Oracle 存储过程的调试总结oracle存储过编程客栈程调试方法PL/SQL中为我们提供了【调试存储过程】的功能,可以帮助你完成存储过程的预编编程客栈译与测试。点击要调试的存储过程,右键选择TEST如
2022-07-05

ORA-16772: switchover to a standby database failed ORACLE 报错 故障修复 远程处理

文档解释ORA-16772: switchover to a standby database failedCause: The Data Guard broker encountered errors when switching
ORA-16772: switchover to a standby database failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-16409: archive log switchover reference number mismatch ORACLE 报错 故障修复 远程处理

文档解释ORA-16409: archive log switchover reference number mismatchCause: The archive log switchover reference numbers of
ORA-16409: archive log switchover reference number mismatch ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-16217: prepare to switchover has not completed ORACLE 报错 故障修复 远程处理

文档解释ORA-16217: prepare to switchover has not completedCause: An ALTER DATABASE PREPARE TO SWITCHOVER command was
ORA-16217: prepare to switchover has not completed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-16749: switchover to logical standby database failed ORACLE 报错 故障修复 远程处理

文档解释ORA-16749: switchover to logical standby database failedCause: The Data Guard broker failed to switch a logical
ORA-16749: switchover to logical standby database failed ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-16267: Cannot instantiate a Logical Standby during a switchover ORACLE 报错 故障修复 远程处理

文档解释ORA-16267: Cannot instantiate a Logical Standby during a switchoverCause: An instantiation of a Logical Standby has
ORA-16267: Cannot instantiate a Logical Standby during a switchover ORACLE 报错 故障修复 远程处理
2023-11-05

编程热搜

目录