Professional Documents
Culture Documents
SALES_LOCAL=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP) 3. Set the initialization parameters for the standby database by start-
(PORT=1521))) ing the Oracle database instance in nomount state on the second-
ary site. Once the instance is started in nomount state, make the
c. Configure the network services by adding the following lines following changes to the parameter file:
to the $ORACLE_HOME/network/admin/tnsnames.ora file on
each node: SQL> startup nomount
SQL> alter system set log_archive_dest_1='LOCATION=
# Primary site /u03/arch arch';
AUSTINnetsvc = SQL> alter system set log_archive_dest_2='service=
(DESCRIPTION = AUSTINnetsvc reopen=15 lgwr sync net_timeout=
(ADDRESS_LIST = 30 max_failure=2 reopen=5';
(ADDRESS = (PROTOCOL = TCP)(HOST = austin1) SQL> alter system set log_archive_dest_state_1=enable;
(PORT = 1521)) SQL> alter system set log_archive_dest_state_2=defer;
(ADDRESS = (PROTOCOL = TCP)(HOST = austin2) SQL> alter system set remote_archive_enable='TRUE';
(PORT = 1521)) SQL> alter system set standby_archive_dest='/u03/arch'
) SQL> alter system set standby_file_management='auto';
(CONNECT_DATA = SQL> alter system set fal_client=DALLASnetsvc;
(SERVICE_NAME = AUSTINdbsvc)) SQL> alter system set fal_server=AUSTINnetsvc;
) SQL> alter system set local_listener=SALES_LOCAL;
# Secondary site SQL> alter system set service_names=DALLASdbsvc;
DALLASnetsvc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = dallas1)
(PORT = 1521))
SQL> startup
On the primary database, this query shows the redo logs archived
and sent. The output from the standby and primary databases
should match.