• 在oracle11g中配置多个DataGuard物理备机


    >> from zhuhaiqing.info

    主机配置

    alter system set DB_UNIQUE_NAME='starboss' scope=spfile;
    alter system set LOG_ARCHIVE_CONFIG='DG_CONFIG=(starboss,starbossstby01,starbossstby02)';
    alter system set LOG_ARCHIVE_DEST_1='LOCATION=/opt/app/oracle/archivelog/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=starboss';
    
    alter system set LOG_ARCHIVE_DEST_2='SERVICE=starbossstby01 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=starbossstby01'; alter system set LOG_ARCHIVE_DEST_3='SERVICE=starbossstby02 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=starbossstby02';
    alter system set LOG_ARCHIVE_DEST_STATE_1='ENABLE'; alter system set LOG_ARCHIVE_DEST_STATE_2='ENABLE'; alter system set LOG_ARCHIVE_DEST_STATE_3='ENABLE'; alter system set LOG_ARCHIVE_FORMAT='%t_%s_%r.arc' scope=spfile; alter system set REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE scope=spfile; alter system set LOG_ARCHIVE_MAX_PROCESSES=30;

    备机01配置

    alter system set DB_UNIQUE_NAME='starbossstby01' scope=spfile;
    alter system set LOG_ARCHIVE_CONFIG='DG_CONFIG=(starbossstby01,starboss)';
    alter system set LOG_ARCHIVE_DEST_1='LOCATION=/opt/app/oracle/archivelog/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=starbossstby01';
    alter system set LOG_ARCHIVE_DEST_2='SERVICE=starboss LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=starboss';
    alter system set LOG_ARCHIVE_DEST_STATE_1='ENABLE';
    alter system set LOG_ARCHIVE_DEST_STATE_2='ENABLE';
    alter system set LOG_ARCHIVE_FORMAT='%t_%s_%r.arc' scope=spfile;
    alter system set REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE scope=spfile;
    
    alter system set FAL_SERVER='starboss';alter system set STANDBY_FILE_MANAGEMENT='AUTO';
    alter system set LOG_FILE_NAME_CONVERT='/stardb_log1/starboss','/stardb_log1/starboss'
    alter system set DB_FILE_NAME_CONVERT='/opt/ora10/oradata/starboss/','/opt/ora10/oradata/starboss/'

    备机02配置

    alter system set DB_UNIQUE_NAME='starbossstby02' scope=spfile;
    alter system set LOG_ARCHIVE_CONFIG='DG_CONFIG=(starbossstby02,starboss)';
    alter system set LOG_ARCHIVE_DEST_1='LOCATION=/opt/app/oracle/archivelog/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=starbossstby02';
    alter system set LOG_ARCHIVE_DEST_2='SERVICE=starboss LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=starboss';
    alter system set LOG_ARCHIVE_DEST_STATE_1='ENABLE';
    alter system set LOG_ARCHIVE_DEST_STATE_2='ENABLE';
    alter system set LOG_ARCHIVE_FORMAT='%t_%s_%r.arc' scope=spfile;
    alter system set REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE scope=spfile;
    
    alter system set FAL_SERVER='starboss';alter system set STANDBY_FILE_MANAGEMENT='AUTO';
    alter system set LOG_FILE_NAME_CONVERT='/stardb_log1/starboss','/stardb_log1/starboss'
    alter system set DB_FILE_NAME_CONVERT='/opt/ora10/oradata/starboss/','/opt/ora10/oradata/starboss/'
  • 相关阅读:
    Identifier expected after this token
    需要整理的
    Context
    SharedPreferences
    一些常规注意事项
    一个点亮屏幕的service
    BroadcastReceiver中调用Service
    BroadcastReceiver
    Service
    微服务简介
  • 原文地址:https://www.cnblogs.com/zhuhaiqing/p/5918542.html
Copyright © 2020-2023  润新知