The HA for WebLogic Server does not probe the database health. If the database is down when the HA for WebLogic Server starts, the data service fails to start. To have the HA for WebLogic Server probe the database, supply your own database probe script to HA for WebLogic Server as an extension property. This database probe must return zero for success and nonzero for failure.
To configure a resource with the DB_probe script extension property set, use the following commands.
# clresource create -g wls-rg -t SUNW.wls \ -p Confdir_list=/global/wls/Oracle/Middleware/wlserver_12.1 \ -p Server_url=http://logical_host1:7001 \ -p Start_script=/global/wls/Oracle/Middleware/user_projects/domains/ /wlsd1/bin/startManagedWebLogic.sh \ -p Smooth_shutdown=TRUE \ -p DB_probe_script=/global/wls/Oracle/Middleware/wlserver_12.1/script/db_probe_script wls-rs
The resource is created in the enabled state.
Following is an example of a DB_probe script:
if [ $? -eq 0 ] then return 0 else return -1 fi