APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2]
Oracle Database - Enterprise Edition - Version 11.2.0.4 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.
***Checked for relevance on 10-Dec-2015***

GOAL

How to remove a Data Guard Configuration from the Primary Database after Standby Database is no longer present or activated to work as new/separate Primary (including the Steps for the Data Guard Broker).

In case you may want or need more about your current topic - please also access the Data Guard Community of Customers and Oracle Specialists directly via:
https://communities.oracle.com/portal/server.pt/community/high_availability_data_guard/302

SOLUTION

1. Put Primary Database in Maximum Performance Mode

On the Primary database, put the Database in Maximum Performance Mode (if not already):

SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE;

or if using the Data Guard Broker:

DGMGRL> EDIT CONFIGURATION SET PROTECTION MODE AS MAXPERFORMANCE;

2. Remove Data Guard Broker Configuration

If you are using the Data Guard Broker, remove the Data Guard Broker Configuration:

DGMGRL> REMOVE CONFIGURATION;

3. Unset Data Guard-specific Initialization Parameters

Unset/Remove following Initialization Parameters from the (S)PFILE of the Primary Database:

LOG_ARCHIVE_CONFIG 
DB_FILE_NAME_CONVERT 
LOG_FILE_NAME_CONVERT 
LOG_ARCHIVE_DEST_n pointing to the Standby Database and valid for STANDBY_LOGFILES
LOG_ARCHIVE_DEST_STATE_n 
DG_BROKER_START 
DG_BROKER_CONFIG_FILE1 
DG_BROKER_CONFIG_FILE2 
STANDBY_ARCHIVE_DEST 
STANDBY_FILE_MANAGEMENT 
FAL_SERVER 
FAL_CLIENT

4. Drop Standby Redologs from the Primary Database

Use following Query to check for Standby Redolog Groups:

SQL> SELECT GROUP# FROM V$STANDBY_LOG;

Use following Command to Drop the Standby Redo logs:

SQL> ALTER DATABASE DROP STANDBY LOGFILE GROUP <GROUP_NUMBER>; 
e.g. 
SQL> alter database drop standby logfile group 3;

Drop all Standby Redolog Groups using above Command.

5. Drop the Data Guard Broker Configuration Files if used.

DG_BROKER_CONFIG_FILE1 and DG_BROKER_CONFIG_FILE2 Parameters define the Name and Location of the Data Guard Broker Configuration Files.

In Unix the default Values for DG_BROKER_CONFIG_FILE1 and DG_BROKER_CONFIG_FILE2 are: 
$ORACLE_HOME/dbs/dr1<ORACLE_SID>.dat and 
$ORACLE_HOME/dbs/dr2<ORACLE_SID>.dat 
In Windows the default Values for DG_BROKER_CONFIG_FILE1 and DG_BROKER_CONFIG_FILE2 are: 
$ORACLE_HOME/database/dr1<ORACLE_SID>.dat and 
$ORACLE_HOME/database/dr2<ORACLE_SID>.dat.                                                                                                                                                                                                                           Or you could find the location and file names of Data Guard Broker Configuration Files by 
SQL> show parameter DG_BROKER_CONFIG;

最新文章

  1. Sencha ExtJS 6 Widget Grid 入门
  2. Qt qml treeview 树控件
  3. 关于ViewPager、ViewFilpper、ViewFlow三种实现水平向滑动方式的比较
  4. --with-http_realip_module选项(后台Nginx服务器记录原始客户端的IP地址 )
  5. printf(&quot;&quot;); 输出小题目
  6. UIViewController的生命周期
  7. Simple colum formatting in Yii 2 GridView
  8. Oracle创建主外键
  9. communicate with other processes, regardless of where they are running
  10. fzuoj Problem 2182 水题
  11. VBS_For Each...Next
  12. PropertyPlaceholderConfigurer的用法(使用spring提供的类读取数据库配置信息.properties)
  13. nodejs原生模块简介
  14. Android:设置背景图和标题
  15. Android 7.0 安装器安装过程分析 (com.android.packageinstaller)
  16. C++17剖析:string在Modern C++中的实现
  17. 开源流媒体服务器SRS学习笔记(4) - Cluster集群方案
  18. 关于asp.net页面缓存
  19. taro 不支持render中,使用函数多条件渲染
  20. Linux 查看登录日志及登录失败用户的ip-lastb

热门文章

  1. ZOJ 3175 Number of Containers 分块
  2. JAVA学习(一)——基本语法
  3. 判断控件的CGRect是否重合,获取控件的最大XY值
  4. wangEditor - 轻量级web富文本编辑器(可带图片上传)
  5. 代码正常,junit却报错原因及解决方法
  6. Netty In Action中文版 - 第七章:编解码器Codec
  7. 转:向IOS设备发送推送通知
  8. Split Shape by Plane in OpenCASCADE
  9. 深入解析开源项目之Universal-Image-Loader(二)内存---缓存篇
  10. elasticsearch index 之 engine