The Cluster Server agent for Oracle comes with a sample configuration file that can be used as reference to directly modify your present configuration file. When you use this method, you must stop and restart VCS to implement the configuration.
The Cluster Server agent for Oracle also includes sample configuration files for ASM configurations in a VCS environment.
To configure the service group using the sample configuration file
# haconf -dump -makero
# hastop -all -force
# cd /etc/VRTSvcs/conf/config # cp main.cf main.cf.orig
You can use the file /etc/VRTSagents/ha/conf/Oracle/sample_main.cf for reference.
Do the following:
Create the Oracle and Netlsnr resources.
For ASM instances and disk groups, create the ASMInst and ASMDG resources.
Edit the default attributes to match the parameters in your configuration.
Assign dependencies to the newly created resources.
See the Cluster Server Administrator’s Guide for more information on assigning dependencies.
# cd /etc/VRTSvcs/conf/config/ # hacf -verify .
# hastart
# hagrp -state
# hagrp -offline service_group -sys system_name # hagrp -state
# hagrp -online service_group -sys system_name # hagrp -state
# hastart
# hagrp -switch service_group -to any
Verify that all Oracle service group resources are brought online on the system:
# hagrp -state
/var/VRTSvcs/log/engine_A.log /var/VRTSvcs/log/Oracle_A.log /var/VRTSvcs/log/Netlsnr_A.log
/var/VRTSvcs/log/ASMInst_A.log /var/VRTSvcs/log/ASMDG_A.log