Sun Cluster Data Service for WebLogic Server Guide for Solaris OS

Creating a Resource That Probes the Database

The Sun Cluster HA for BEA WebLogic Server does not probe the database health. If the database is down when Sun Cluster HA for BEA WebLogic Server starts, the data service fails to start. To have the Sun Cluster HA for BEA WebLogic Server probe the database, supply your own database probe script to Sun Cluster HA for BEA 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 bea-rg -t SUNW.wls \
-p Confdir_list=/global/bea/beahome/weblogic700 \
-p Server_url=http://logical_host1:7001 \
-p Start_script=/global/bea/beahome/user_projects/petstore/startWebLogic.sh \
-p Server_name=petstore1 \
-p Smooth_shtudown=TRUE \
-p DB_probe_script=/global/bea/script/db_probe_script bea-rs

The resource is created in the enabled state.