博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
How to remove a Data Guard Configuration from Primary Database (文档 ID 733794.1)
阅读量:5911 次
发布时间:2019-06-19

本文共 2656 字,大约阅读时间需要 8 分钟。

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:

 

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;

转载于:https://www.cnblogs.com/liang545621/p/9407167.html

你可能感兴趣的文章
RHEL6入门系列之十五,管理用户和组
查看>>
特斯拉悄悄搞出无人车AI芯片,已经投产测试,而且没带英伟达
查看>>
LVS、Nginx和HAProxy负载均衡器对比总结
查看>>
Samsung_tiny4412(驱动笔记01)----linux 3.5,U-Boot,Busybox,SD卡启动环境搭建
查看>>
爬虫攻略(一)
查看>>
正则表达式语法
查看>>
零元学Expression Blend 4 - Chapter 45 ListBox里的物件不能换行吗?
查看>>
Elasticsearch上手——几个基本概念
查看>>
WebView.简单使用_资料
查看>>
CAN协议栈总体架构
查看>>
python下正则表达式的随笔记录
查看>>
Wp8程序加载运行顺序(菜鸟篇)
查看>>
Socket,SocketImpl与SocketImplFactory的关系
查看>>
【微信开发】—7200s限制,非数据库
查看>>
学习过程中的图形学知识补充用文档
查看>>
C#高级编程阅读笔记一(关于值类型和引用类型)
查看>>
Java内部类学习笔记
查看>>
双机热备份
查看>>
Clean Code – Chapter 3: Functions
查看>>
POJ NOI0113-03 八进制小数(PKU2765)
查看>>