DataGuard - physical standby failover切换过程

1.failover前检查

#如果有多个standby数据库,查看哪个standby接收的redo最新。
SQL> select * from v$archive_dest_status;

#查看standby库接收到的最新的SCN
SQL> select thread#,sequence#,last_change#,last_time from v$standby_log;

   THREAD#  SEQUENCE# LAST_CHANGE# LAST_TIME
---------- ---------- ------------ --------------
         1       7128    126385274 25-4月 -16
         1          0            0
         1          0            0

SQL>

2.执行failover

#停止MRP(关闭主动应用)
SQL> alter database recover managed standby database cancel;

#重启启动MRP,完成redo应用(手动应用)。如果有gap,finish会fail。执行结束后,保护模式变成最大性能
SQL> alter database recover managed standby database finish;

SQL> alter database commit to switchover to primary with session shutdown;
SQL> alter database open;
时间: 2024-07-30 11:37:19

DataGuard - physical standby failover切换过程的相关文章

DG - logical standby switchover切换过程

从11g起,主库和逻辑备库之间切换不再需要关闭任何数据库实例. 1.检查主数据库是否处于考虑切换状态 SQL> select switchover_status from v$database; 结果为to standby,表明主库已近处在考虑切换状态. 2.在当前主库执行,通知主库数据库角色可能发生变化 SQL> alter database prepare to switchover to logical standby; 3.在备库执行,通知备库角色可能发生变化 SQL> alte

【DATAGUARD】物理dg的failover切换(六)

[DATAGUARD]物理dg的failover切换(六) 一.1 BLOG文档结构图 一.2 前言部分 一.2.1 导读 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~: ① 物理dg的failover切换演练过程 ② 物理dg管理和维护的一些sql ③ 利用duplicate搭建物理dg ④ 注意:本篇BLOG中代码部分需要特别关注的地方我都用***背景和红色字体来表示,比如下边的例子中,thread 1的最大归档日志号为33,thr

Linux Oracle 11g dataguard物理standby 配置过程

这两天研究了下oracle 11g dataguard 物理standby 功能,总体来说这个功能满足公司需求,好了,不多说了,以下是详细的配置过程. 数据库的安装可以参考之前写的六步搞定Linux Oracle 11gR2 配置安装 注意:分别在主库和备库都安装上oracle软件,不装数据库. 主库: IP:192.168.77.5 主机名:nod1 ORACLE_SID=test ORACLE_BASE=/oracle/app/oracle ORACLE_HOME=/oracle/app/o

OCM 11g升级考试第二场搭建DataGuard遇到: prod - Physical standby database (disabled) 错误

转载请注明出处:http://blog.csdn.net/guoyjoe/article/details/43989607 1.**************************DGMGRL DGMGRL> show configuration; Configuration - c1 Protection Mode: MaxPerformance  Databases:    orcl - Primary database    prod - Physical standby database

Oracle 11G DataGuard ORA-16086问题修复详细过程

1,问题描述,standby从库没有应用redo日志Tue Jul 22 09:05:07 2014RFS[8852]: Assigned to RFS process 12956RFS[8852]: Identified database type as 'physical standby': Client is ARCH pid 16028Tue Jul 22 09:05:09 2014RFS[8853]: Assigned to RFS process 12958RFS[8853]: Id

11.2 Data Guard Physical Standby Switchover Best Practices using SQL*Plus (Doc ID 1304939.1)

APPLIES TO: Oracle Database - Enterprise Edition - Version 11.2.0.1 and laterOracle Database Cloud Schema Service - Version N/A and laterOracle Database Exadata Express Cloud Service - Version N/A and laterOracle Database Exadata Cloud Machine - Vers

18c & 19c Physical Standby Switchover Best Practices using SQL*Plus (Doc ID 2485237.1)

APPLIES TO: Oracle Database - Enterprise Edition - Version 18.3.0.0.0 and laterInformation in this document applies to any platform. GOAL This Document explain about switchover steps for 18c and 19c  本文档说明有关18c和19c的切换步骤 SOLUTION Prerequisites  先决条件 L

DGMGR-TO PHYSICAL STANDBY Failed (ORA12514 )解决方法

TO  PHYSICAL STANDBY  Failed  (ORA-12514: )解决方法: ==========DG 环境: DGMGRL> SHOW CONFIGURATION; Configuration - DRSolution Protection Mode: MaxAvailability Databases: PROD1 - Primary database SBDB1 - Physical standby database Fast-Start Failover: DISAB

Oracle创建Physical Standby Database案例

The following is the detail steps of how to create a physical standby database: This case is created, operated and followed on the steps from oracle online help documentation. The configuration of the two sites server as following: Primary Database: