When installing a RAC clusterware is responsible for starting and stopping required resources automatically and in required order. Under normal circumstances every resource is integrated with one exception: EM Control.
So this is a short guide on how to integrate EM Console startup/shutdown into Clusterware resource control.
First of all you need a startup/shutdown script:
#!/bin/sh case $1 in 'start') /u01/app/oracle/product/11.2.0/db_1/bin/emctl start dbconsole RET=$? ;; 'stop') /u01/app/oracle/product/11.2.0/db_1/bin/emctl stop dbconsole RET=$? ;; 'check') /u01/app/oracle/product/11.2.0/db_1/bin/emctl status dbconsole RET=$? ;; esac exit $RET
After creating the script and placing is under /scripts you need to add the resource:
#crsctl add resource crs_dbconsole type cluster_resource -attr " ACTION SCRIPT= '/scripts/crs_dbconsole.sh' , PLACEMENT= 'restricted' , HOSTING_MEMBERS= 'node1' , CHECK_INTERVAL='30' , START_DEPENDENICES= 'hard(appsvip)' ,STOP_DEPENDENCIES= 'hard(appsvip)' , RESTART_ATTEMPTS='2' "
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12482/viewspace-1033286/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12482/viewspace-1033286/