主机配置
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/‘
时间: 2024-10-15 03:48:02