alter system set db_unique_name=dg1 scope=spfile;
alter system set log_archive_config=‘DG_CONFIG=(dg1,dg2)‘ scope=spfile;
alter system set log_archive_dest_1=‘LOCATION=/oracle/arc/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=dg1‘ scope=spfile;
alter system set log_archive_dest_2=‘SERVICE=dg2 LGWR SYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=dg2‘ scope=spfile;
alter system set fal_server=dg2 scope=spfile;
alter system set fal_client=dg1 scope=spfile;
alter system set standby_file_management=auto scope=spfile;
alter database add standby logfile group 4 (‘/oracle/db/oradata/orcl/sredo41.log‘,‘/oracle/db/oradata/orcl/sredo42.log‘) size 50M; alter database add standby logfile group 5 (‘/oracle/db/oradata/orcl/sredo51.log‘,‘/oracle/db/oradata/orcl/sredo52.log‘) size 50M; alter database add standby logfile group 6 (‘/oracle/db/oradata/orcl/sredo61.log‘,‘/oracle/db/oradata/orcl/sredo62.log‘) size 50M;