运维联盟俱乐部

 找回密码
 立即注册
查看: 1117|回复: 0

[日常管理] remove dataguard configuration from primary

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2023-2-9 11:09:25 | 显示全部楼层 |阅读模式
    1. Put Primary Database in Maximum Performance Mode

    On the Primary database, put the Database in Maximum Performance Mode (if not already):
    SQL> select PROTECTION_MODE,PROTECTION_LEVEL from v$database;
    SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE;

    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>;


    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.      

    To find the location and file names of Data Guard Broker Configuration Files use:

    SQL> show parameter DG_BROKER_CONFIG;
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-17 15:51 , Processed in 0.047259 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表