Go to main content

Oracle® Solaris Cluster Data Service for Oracle WebLogic Server Guide

Exit Print View

Updated: July 2016
 
 

How to Register and Configure HA for WebLogic Server as a Failover Data Service (CLI)

Use this procedure to configure HA for WebLogic Server as a failover data service. The following steps assume that you are using the failover configuration that is described in Standard Data Service Configurations and have configured the WebLogic Servers as mentioned in Installing and Configuring the HA for WebLogic Server Application. These steps assume that you have already created resource groups RG1 and RG2 and have also created logical-host-1 and logical-host-2 resources in these resource groups. Refer to How to Prepare the Nodes for a Failover Configuration for procedures to create logical hostname resources. If you are planning a different configuration, you must configure the WebLogic Server resources accordingly.


Note -  Before you start HA for WebLogic Server, if you are using a database, check that your database is accessible.
  1. Add the HA for WebLogic Server resource type.
    # clresourcetype register SUNW.wls
  2. Create a WebLogic Administration Server resource in the RG1 resource group.
    # clresource create -t SUNW.wls \
    -g wls-admin-rg
    -p Confdir_list=/global/wls/Oracle/Middleware/wlserver_12.1 \
    -p Server_url=http://logical-host-1:7001 \
    -p Start_script=/global/wls/Oracle/Middleware/user_projects/domains/wlsd1
    
    /bin/startWebLogic.sh \
    -p Smooth_shutdown=true
    -p Resource_dependencies=logical-host-1
    admin-rs

    The resource is created in the enabled state.


    Note -  This configuration does not enable smooth shutdown. The HA for WebLogic Server stop method forces the shutdown of the WebLogic Administration Server (kills the process). Refer to Creating a Resource That Shuts Down Smoothly for the configuration to enable smooth shutdown. For more information, see STOP Method.
  3. Create a WebLogic Managed Server resource in the RG2 resource group.
    # clresource create -t SUNW.wls \
    -g wls-mgd-rg1
    -p Confdir_list=/global/wls/Oracle/Middleware/wlserver_12.1 \
    -p Server_url=http://logical-host-2:7003 \
    -p Start_script=/global/wls/Oracle/Middleware/user_projects/domains/wlsd1
    /bin/startWebLogic.sh \
    -p Server_name=dizzy1
    -p Smooth_shutdown=true
    -p Resource_dependencies=logical-host-2
    managed-rs

    The resource is created in the enabled state.