时间:2021-07-01 10:21:17 帮助过:4人阅读
备机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物理备机
标签: