Enabling and Disabling Detail Monitoring for Oracle
To enable detail monitoring, set the DetailMonitor attribute to 1.
hares -modify OracleResource DetailMonitor 1
To disable detail monitoring, set the DetailMonitor attribute to 0.
hares -modify OracleResource DetailMonitor 0
Setting Up Detail Monitoring for Netlsnr
You can enable detail monitoring for Netlsnr by specifying a value for the MonScript attribute. The following example uses the supplied monitor script for Netlsnr, /opt/VRTSvcs/bin/Netlsnr/LsnrTest.pl. The detail monitoring script for the Netlsnr resource uses the Listener command lsnrctl status $Listener to test the Listener process.
-
Make the VCS configuration writable:
haconf -makerw
-
Freeze the service group to avoid automated actions by VCS caused by an incomplete reconfiguration:
hagrp -freeze service_group
-
Enable detail monitoring by entering the following commands:
hares -modify LsnrResource MonScript "./bin/Netlsnr/LsnrTest.pl"
haconf -dump -makero
hagrp -unfreeze service_group
-
Disable detail monitoring by setting the MonScript attribute to an empty string:
haconf -makerw
hagrp -freeze service_group
hares -modify SqlResource MonScript ""
haconf -dump -makero
hagrp -unfreeze
|