Escolar Documentos
Profissional Documentos
Cultura Documentos
Version 1.0
News International
News International
An Over view
The walkthrough begins with a single database that will become the primary of a Data Guard configuration. For this build, we will use a single physical standby database. FSFO can also be used with logical standbys and an FSFO-enabled configuration may have multiple standbys with a mix of physical and logical, but only one standby can be the failover target at any given time.
Conventions used
Database hosts are referred to as unixpgtest1" and unixpgtest3" hosts and the databases themselves are referred to as the "DB1_WA" and "DB1_PB" databases. Names used in the examples: Database name Database unique names DB1_WB Domain name mydomain.com unixpgtest3(primary node) Hostnames unixpgtest1(standby node) DB1 DB1_WA
ORACLE DATA GUARD BROKER CONFIGURATIO PLAN Oracle Data guard Broker Configuration
This task related to Oracle 11g Dataguard Broker Configuration with observer in Unix/Linux Environment
Task Name:
Short Description
3.
Configure listeners
4.
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome) ) )
5.
ADR_BASE_LISTENER = /u01/app/oracle
6.
DB1 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = unixpgtest3.ds.newsint)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DB1) ) ) DB1_WA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = unixpgtest3.ds.newsint)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DB1) ) ) DB1_PB = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = unixpgtest1.ds.newsint)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DB1) ) ) DB1PRIMARY = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = unixpgtest3.ds.newsint)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DB1_WA_DGMGRL.mydomain.com) ) ) DB1STANDBY = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = unixpgtest1.ds.newsint)(PORT = 1521))
DB1 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = unixpgtest1.ds.newsint)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DB1) ) ) DB1_WA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = unixpgtest3.ds.newsint)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DB1) ) ) DB1_PB = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = unixpgtest1.ds.newsint)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DB1) ) ) DB1PRIMARY = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = unixpgtest3.ds.newsint)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DB1_WA_DGMGRL.mydomain.com) ) ) DB1STANDBY = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = unixpgtest1.ds.newsint)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = DB1_PB_DGMGRL.mydomain.com) ) )
8.
9.
10. Setup the Local_Listener parameter on both the Primary and Standby databases SQL> alter system set local_listener='(address=(host=unixpgtest1.ds.newsint)(port=1521)(protocol=tcp))'; System altered. SQL> alter system set local_listener='(address=(host=unixpgtest3.ds.newsint)(port=1521)(protocol=tcp))';
System altered.
11. Setup the Broker configuration : The broker configuration files are automatically created when the broker is started using ALTER SYSTEM SET DG_BROKER_START=TRUE. The default destination can be modified using the parameters DG_BROKER_CONFIG_FILE1 and DG_BROKER_CONFIG_FILE2 On Primary:
On Standby:
12.
Add the standby to the configuration and check it DGMGRL> ADD DATABASE DB1_PB AS
CONNECT IDENTIFIER IS DB1STANDBY MAINTAINED AS PHYSICAL;
13.
Verify
17. Edit Database Properties LogXptMode Broker will set the primary to use asynchronous log transport by default. For Maximum Availability environments, change this to synchronous.
These commands will succeed only if database is configured with standby redo logs. DGMGRL> EDIT DATABASE Property "LogXptMode" DGMGRL> EDIT DATABASE Property "LogXptMode" DB1_WA SET PROPERTY 'LogXptMode'='SYNC'; updated DB1_PB SET PROPERTY 'LogXptMode'='SYNC'; updated
18. Enable Fast-Start Failover This is a good time to enable FSFO to make sure that all of the prerequisites have been met. Broker will verify that the configuration meets all prerequisites before enabling FSFO and will report any problems it finds. The most common problems are mismatched Data Guard protection modes and LogXptMode properties and forgetting to enable Flashback Database on the primary or standby.
Specify the FastStartFailoverTarget property
Now Check :
19.
Verify connectivity to the primary and standby from Third Node (UNIWAORADBR01-observer )
20.
Start the observer Start the observer from a third server
8. Click Next. 9. Click Finish. 10. Verify the Installation by Using the Command : Select Server property(product version)