12c ADG reinstate database xxx

测试演练一下12C ADG环境,可能因为某些极端情况,比如主库存储异常,只能切换到备库。然后主库存储修复,重新恢复主备。

详见如下操作;
在新主库上操作

<roidb01:orcl:/home/oracle>$dgmgrl /
DGMGRL for Linux: Version 12.1.0.2.0 - 64bit Production

Copyright (c) 2000, 2013, Oracle. All rights reserved.

Welcome to DGMGRL, type "help" for information.
Connected as SYSDG.
DGMGRL>
DGMGRL> show configuration;

Configuration - dg_config

  Protection Mode: MaxPerformance
  Members:
  orcldg - Primary database
    orcl   - Physical standby database 

Fast-Start Failover: DISABLED

Configuration Status:
SUCCESS   (status updated 34 seconds ago)

DGMGRL> validate database orcldg;

  Database Role:    Primary database

  Ready for Switchover:  Yes

DGMGRL> validate database orcl;

  Database Role:     Physical standby database
  Primary Database:  orcldg

  Ready for Switchover:  Yes
  Ready for Failover:    Yes (Primary Running)

DGMGRL> failover to orcl;
Performing failover NOW, please wait...
Failover succeeded, new primary is "orcl"
DGMGRL> show configuration;

Configuration - dg_config

  Protection Mode: MaxPerformance
  Members:
  orcl   - Primary database
    orcldg - Physical standby database (disabled)
      ORA-16661: the standby database needs to be reinstated

Fast-Start Failover: DISABLED

Configuration Status:
SUCCESS   (status updated 71 seconds ago)

##保证原主库为mount状态

DGMGRL> reinstate database orcldg;
Reinstating database "orcldg", please wait...
Reinstatement of database "orcldg" succeeded
DGMGRL> show configuration;

Configuration - dg_config

  Protection Mode: MaxPerformance
  Members:
  orcl   - Primary database
    orcldg - Physical standby database 

Fast-Start Failover: DISABLED

Configuration Status:
SUCCESS   (status updated 6 seconds ago)
DGMGRL> validate database orcl;

  Database Role:    Primary database

  Ready for Switchover:  Yes

DGMGRL> validate database orcldg;

  Database Role:     Physical standby database
  Primary Database:  orcl

  Ready for Switchover:  Yes
  Ready for Failover:    Yes (Primary Running)

DGMGRL> 

原文地址:http://blog.51cto.com/roidba/2089594

时间: 2024-10-12 23:02:24

12c ADG reinstate database xxx的相关文章

zabbix启动报错:Connection to database &#39;xxx&#39; failed解决方法

Zabbix 分布式系统监视系统 zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题. 本文讲解的是zabbix无法启动报错:Connection to database 'xxx' failed: [1045] Access denied for user 'xxx'@'localhost' (using password: NO)

The transaction log for database &#39;XXX&#39; is full due to &#39;ACTIVE_TRANSACTION&#39;.

Msg 9002, Level 17, State 4, Line 4The transaction log for database 'Test' is full due to 'ACTIVE_TRANSACTION'. 本定一个测试库错误,由于此库的LOG文件被设置成不允许自动增长,而在大量输入数据的时候报出此错.此库已经使SIMPLE恢复模式. --数据库当前LOG状态 select log_reuse_wait_desc from sys.databaseswhere name = 'T

IO is frozen on database xxx, No user action is required

最近遇到一起关于"I/O is frozen on database xxx. No user action is required. However, if I/O is not resumed promptly, you could cancel the backup."的案例. 出现问题的时候,我去执行一个非常简单的SQL语句,执行时间非常长,检查没有阻塞.正常情况下,应该是几秒就OK.后面检查错误日志,发现有大量这类消息.而这个点,我们没有备份数据库的作业.后面搜索,了解了一下

Oracle 12c迁移pluggable database到异库

1.源库: SQL> show pdbs CON_ID CON_NAME  OPEN MODE  RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED  READ ONLY  NO 3 PDB  READ WRITE NO 4 TEST  READ WRITE NO 2.目标库: SQL> show pdbs CON_ID CON_NAME  OPEN MODE  RESTRI

12c ADG无法删除备库归档RMAN-08137

一.环境描述12c 变化很大,目前上线的系统越来越多,大家需要不断更新自己的知识库. On : 12.1.0.2 version, RAC? can't delete archivelog? ERROR? -----------------------? RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process? archived log file name=+ARC

12c Oracle ADG日志切换hang

一.环境12c ADG环境 二.现象描述 主库日志切换卡住(hang) SQL> alter system switch logfile; 三.处理过程1.查看日志 <roidb02:orcldg:/u01/app/oracle/diag/rdbms/orcldg/orcldg/trace>$tail -f al*.log Mon Jan 08 21:04:20 2018 ARC0: LGWR is scheduled to archive destination LOG_ARCHIVE

Quick and Easy Installation of Oracle Database 12c on Oracle Linux in Oracle VM VirtualBox

发贴人 Sergio-Oracle 于2018-4-18 23:10:15在Oracle Linux Introduction How Does This Work? Requirements Before You Get Started Steps Clone the vagrant-boxes repository from GitHub Download Oracle Database Installation Files Place the downloaded Database ins

一条命令搞定ADG

最近一直在搭建ORACLE 12C ADG ,其中包括单机到单机的ADG, RAC到RAC的ADG,还有RAC到单机的ADG,遇到不少小问题,在此做一下记录. Oracle 12c R1 RAC 修改启动方式 $srvctl modify database -d orcldg -s nomount  orcldg为数据库名 $srvctl modify database -d orcldg -s mount $srvctl modify database -d orcldg -s open 置完

【翻译自mos文章】将一个失败的primary database 复原为physical standby 库的步骤

将一个失败的primary database 复原为physical standby 库的步骤 参考自: Step by Step Guide on How To Reinstate Failed Primary Database into Physical Standby (文档 ID 738642.1) 适用于: Oracle Database - Enterprise Edition - Version 10.1.0.2 and later Information in this docu