dgobserver.{ksh|ps1}
In an Oracle Dataguard environment with Fast-Start Failover activated, you should be able to automate the restart of an “Observer”. This exactly what the script performs.
First of all you need to prepare the environment.
Add the ORACLE_SID into the ORATAB
Create under ${DMK_ORA_ADMIN_SID} a “etc” directory
Source DMK to load the new configuration
Copy into “${DMK_ORA_ADMIN_SID}/etc” the dgobserver.cfg template
As highlighted by the above configuration the script tries to reach at least one database instance (regardless of the database role) in order to start/stop the observer and enter in a loop which retries to connect to the database for about 10minutes.
This is especially useful in case of a reboot; mostly the database servers needs more time to complete the boot sequence. Therefore the script loops for 10min before it gives-up.
Syntax
Do not forget to add the script into the “${DMK_HOME}/etc/service_start_stop.cfg” configuration file in order to start/ the observer in case of a reboot.
Last updated