Oracle® Solaris Cluster Data Service for Oracle WebLogic Server Guide

Exit Print View

Updated: July 2014, E39648–01
 
 

Creating a Resource That Shuts Down Smoothly

The default for the HA for WebLogic Server STOP method kills the WebLogic Server process to shut down the instance. To enable smooth shutdown of the WebLogic Server, set the Smooth_shutdown extension property to TRUE. If this extension property is enabled, the $DOMAIN_DIR/boot.properties file must contain a valid user name and password. The WebLogic Server variables, WLS_USER and WLS_PW do not need to be set in the START script for smooth shutdown. This waiver applies only to WebLogic Server 8.1 or later versions.


Note - Starting with WebLogic Server version 10.3, the boot.properties file must reside in both the $DOMAIN_DIR and $DOMAIN_DIR/servers/server-name/security directories to bypass the need to prompt for user credentials when stopping instances of WebLogic Server. If the $DOMAIN_DIR/servers/server-name/security directory does not exist or does not include a boot.properties file, create the directory and copy the boot.properties file from the $DOMAIN_DIR.

To configure a resource which will shut down smoothly in a failover configuration, use the following commands.:# clresource create -t SUNW.wls \ -g wls-rg \ -p Confdir_list=/global/wls/Oracle/Middleware/wlserver_12.1 \ -p Server_url=http://logical-host-2:7003 \ -p Start_script=/globalwls/Oracle/Middleware/user_projects/domains/wlsd1/bin/startWebLogic.sh \ -p Smooth_shutdown=TRUE \ -p Server_name=dizzy1 \ managed-server

The resource is created in the enabled state.

To configure a resource that will shut down smoothly in a multi-master configuration, use the following commands:

# clresource create -g RG -t SUNW.wls \
-p Confdir_list=/global/wls/Oracle/Middleware/wlserver_12.1 \
-p Server_url{phys-host-1}=http://logical-host-1:port-number1 \
-p Server_url{phys-host-2}=http://logical-host-2:port-number2 \
-p Start_script=/global/wls/Oracle/Middleware/user_projects/domains/
wlsd1/bin/startManagedWebLogic.sh \
-p "Server_name{phys-host-1}"=mgd1 \
-p "Server_name{phys-host-2}"=mgd2 \
-p Smooth_shutdown=true \
-p resource_dependencies=logical-host-1@phys-host-1,logical-host-2@phys-host-2 \
managed-rs 

The resource is created in the enabled state.