You are on page 1of 2

39.

DATAGURAD BROKER

MACHINE DB31 PROD:


MACHINE DB32 STANDBY:

MACHINE DB31 PROD:


-----------------

SQL> show parameter dg;

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
dg_broker_config_file1 string /u01/app/oracle/product/11.2.0
/dbhome_1/dbs/dr1prod.dat
dg_broker_config_file2 string /u01/app/oracle/product/11.2.0
/dbhome_1/dbs/dr2prod.dat
dg_broker_start boolean FALSE

SQL> alter system set dg_broker_start=true;

System altered.

SQL> show parameter dg;

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
dg_broker_config_file1 string /u01/app/oracle/product/11.2.0
/dbhome_1/dbs/dr1prod.dat
dg_broker_config_file2 string /u01/app/oracle/product/11.2.0
/dbhome_1/dbs/dr2prod.dat
dg_broker_start boolean TRUE

SQL> alter system switch logfile;

System altered.

[oracle@db31 ~]$ dgmgrl

DGMGRL> create configuration my_config as primary database is prod connect


identifier is toprod

DGMGRL> add database standby as connect identifier is tostandby maintained by


physical;

DGMGRL> enable configuration;

DGMGRL> show configuration;

MACHINE DB32 STANDBY:


--------------------

SQL> show parameter dg

SQL> alter system set dg_broker_start=true;

SQL> exit

[oracle@db32 ~]$ dgmgr


DGMGRL> show configuration;

# IN CASE ERROR FIND SET THE PARAMETER FROM STANDBY MACHINE DB32:
----------------------------------------------------------------

1) *.archive_lag_target=0
SQL> alter system set archive_lag_target=0 scope=both;

2)*.log_archive_min_succeed_dest=1
SQL> alter system set log_archive_min_succeed_dest=1 scope=both;

3)*.log_archive_format='%t_%s_%r.arc'
SQL> alter system set log_archive_format='%t_%s_%r.arc' scope=spfile;

4)prod.log_archive_trace=0
SQL> alter system set log_archive_trace=0 scope=both;

SQL> shut immediate

SQL> startup mount

DGMGRL> show configuration;

=================================================================================TH
E END==============================================================================

You might also like