--4. Set parameters in standby.
alter system set log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST MANDATORY VALID_FOR=(ALL_LOGFILES,ALL_ROLES)' scope=both;
alter system set log_archive_dest_state_1=enable scope=both;
alter system set log_archive_dest_2='SERVICE=<PRI_TNS> VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) LGWR ASYNC NOAFFIRM DB_UNIQUE_NAME=<Primary Database Unique Name>';
alter system set log_archive_dest_state_2='enable';
alter system set fal_server=<PRI_TNS> scope=both;
alter system set fal_client=<STB_TNS> scope=both;
alter system set standby_file_management=auto scope=both;
alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=<LIS_HOST>)(PORT=<LIS_PORT>))' scope=both;
