首页 > 代码库 > 在oracle11g中配置多个DataGuard物理备机
在oracle11g中配置多个DataGuard物理备机
主机配置
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 FAL_CLIENT=‘starbossstby01‘;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 FAL_CLIENT=‘starbossstby02‘;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/‘
在oracle11g中配置多个DataGuard物理备机
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。