Sun Cluster Data Service for Oracle Application Server Guide for Solaris OS

Registering and Configuring Sun Cluster HA for Oracle Application Server

This section contains the procedures you need to configure Sun Cluster HA for Oracle Application Server.

Some procedures within this section require you to use certain Sun Cluster commands. Refer to the relevant Sun Cluster command man page for more information about these command and their parameters.

The Sun Cluster HA for Oracle Application Server data service

ProcedureHow to Register and Configure Sun Cluster HA for Oracle Application Server

Perform this procedure on one node of the cluster only.

This procedure assumes that you installed the data service packages during your initial Sun Cluster installation.

If you did not install the Sun Cluster HA for Oracle Application Server packages as part of your initial Sun Cluster installation, go to How to Install the Sun Cluster HA for Oracle Application Server Packages.

  1. On a cluster member, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Register the following resource types.


    # clresourcetype register SUNW.HAStoragePlus
    # clresourcetype register SUNW.gds
    
  3. Create a failover resource group for Oracle Application Server.


    # clresourcegroup create -n nodelist oracle-application-server-resource-group
    
  4. Create a resource for the Oracle Application Server Logical Hostname.


    # clreslogicalhostname create -g oracle-application-server-resource-group \
    > -h logical-hostname \
    > logical-hostname-resource
    
  5. Create a resource for the Oracle Application Server Disk Storage.

    1. If a ZFS highly available local file system is being used.


      # clresource create -g oracle-application-server-resource-group \
      > -t SUNW.HAStoragePlus \
      > -p Zpools=oracle-application-zspool \
      > oracle-application-server-hastorage-resource
      
    2. If a cluster file system or a non ZFS highly available local file system is being used.


      # clresource create -g oracle-application-server-resource-group \
      > -t SUNW.HAStoragePlus \
      > -p FilesystemMountPoints=oracle-application-filesystem-mountpoint \
      > oracle-application-server-hastorage-resource
      
  6. Enable the Resource Group.


    # clresourcegroup enable -M oracle-application-server-resource-group
    
  7. Create and register a resource for the Oracle Database and Listener.

    For complete information about creating and registering a cluster resource for the Oracle Database and Listener, refer to Sun Cluster Data Service for Oracle Guide for Solaris OS.

  8. Create and register resources for the Oracle 9iAS Infrastructure.

    To create and register resources for Oracle Application Server 10g Infrastructure, refer to Step 10

    Edit /opt/SUNWsc9ias/util/9ias_config and follow the comments within that file. After you have edited 9ias_config, you must register the resource.


    # cd /opt/SUNWsc9ias/util
    # vi 9ias_config
    # ./9ias_register
    
  9. Enable the Oracle 9iAS Infrastructure resources.


    # clresource enable -g oracle-application-resource-group +
    
  10. Create and register resources for the Oracle Application Server 10g Infrastructure.

    Edit /opt/SUNWsc9ias/util/10gas_config and follow the comments within that file. After you have edited 10gas_config, you must register the resource.


    # cd /opt/SUNWsc9ias/util
    # vi 10gas_config
    # ./10gas_register
    

    The following listing has been taken from the deployment example, Step 4, which can be found in Appendix A, Deployment Example: Installing Oracle Application Server in Zones and shows /opt/SUNWsc9ias/util/10gas_config that has been edited to configure a cluster resource for Oracle Application Server 10g Infrastructure.


    Vigor5# cat > /opt/SUNWsc9ias/util/10gas_config <<-EOF
    RG=oas10g-rg
    RS_OPMN=oas10g-opmn
    RS_EM=oas10g-em
    
    ORACLE_HOME=/ZFSoracle/oraInfra
    ORACLE_SID=orcl
    OIAS_LHOST=oas10g
    OIAS_USER=oracle
    OIAS_ADMIN=dummy
    OIAS_INFRA=/var/opt/oracle
    OIAS_FQDN=dummy
    OIAS_OPMN=all
    
    RS_LH=oas10g-lh
    RS_HAS=oas10g-ZFShas
    RS_ORACLE=oas10g-ora
    RS_ORALSR=oas10g-lsr
    EOF
    Vigor5# /opt/SUNWsc9ias/util/10gas_register
    
  11. Enable the Oracle Application Server 10g Infrastructure resources.


    # clresource enable -g oracle-application-server-resource-group +
    

    The following listing has been taken from the deployment example, Step 4, which can be found in Appendix A, Deployment Example: Installing Oracle Application Server in Zones.


    Vigor5# clresource enable -g oas10g-rg +