Sun Cluster Data Service for Oracle RAC Guide for Solaris OS

ProcedureHow to Create an Oracle CRS Resource for Interoperation With Sun Cluster

Oracle CRS resources are similar to Sun Cluster resources. Oracle CRS resources represent items that the CRS manage in a similar way to how Sun Cluster resources represent items that the Sun Cluster RGM manages.

Depending on your configuration, some Oracle components that are represented as CRS resources might depend on file systems and global devices that Sun Cluster manages. For example, if you are using file systems and global devices for Oracle files, the Oracle RAC database and the Oracle listener might depend on these file systems and global devices.

Create an Oracle CRS resource for each Sun Cluster resource for scalable device groups and scalable file-system mount points on which Oracle components depend. The Oracle CRS resources that you create track the status of their associated Sun Cluster resources. The Oracle CRS resources also ensure the orderly startup of Oracle CRS resources.

Perform this task on each cluster node where Sun Cluster Support for Oracle RAC is to run.


Note –

Some steps in this procedure require you to use Oracle CRS commands. In these steps, the syntax of the command for Oracle release 10g R2 is provided. If you are you are using a version of Oracle other than 10g R2, see your Oracle documentation for the correct command syntax.


  1. On the node where you are performing this task, become superuser.

  2. If the /var/cluster/ucmm/profile directory does not exist, create it.

    Profiles for CRS resources are created in this directory.


    # mkdir -p /var/cluster/ucmm/profile
    
  3. Create a profile for the Oracle CRS resource.


    # crs-home/bin/crs_profile \
    -create sun.node.sc-rs \
    -t application -d  "description "  \
    -dir /var/cluster/ucmm/profile \
    -a /opt/SUNWscor/dsconfig/bin/scproxy_crs_action \
    -p restricted -h node -f -o st=1800
    
  4. Register the Oracle CRS resource for which you created a profile in Step 3.


    # crs-home/bin/crs_register sun.node.sc-rs \
    -dir /var/cluster/ucmm/profile
    
  5. Ensure that the Sun Cluster resource for which the Oracle CRS resource is a proxy is online.

    1. Obtain the state of the Sun Cluster resource.


      # clresource status sc-rs
      
    2. If the state of the Sun Cluster resource is not online, bring online the resource group that contains the Sun Cluster resource.

      If the state of the Sun Cluster resource is online, omit this step.


      # clresourcegroup -emM sc-rg
      
  6. Start the Oracle CRS resource that you registered in Step 4.


    # crs-home/bin/crs_start sun.node.sc-rs
    
  7. Add the Oracle CRS resource that you registered in Step 4 to the list of resources that the dependent Oracle CRS resource requires.

    1. If the dependent Oracle CRS resource is the Oracle RAC database instance, obtain the name of the instance.


      # crs-home/bin/srvctl config database -d db-name | grep node
      
    2. Obtain the list of resources that the dependent Oracle CRS resource requires.


      # crs-home/bin/crs_stat -p depend-crs-rs | grep REQUIRED_RESOURCES
      
    3. Append the name of the Oracle CRS resource to the list that you obtained in Step b.


      # crs-home/bin/crs_register depend-crs-rs \
      -update -r "existing-list sun.node.sc-rs"