The following example shows how to register Sun Cluster HA for Oracle on a two- node cluster.
Cluster Information Node names: phys-schost-1, phys-schost-2 Logical Hostname: schost-1 Resource group: oracle-rg (failover resource group), Oracle Resources: oracle-server, oracle-listener,Oracle Instances: ora-lsnr (listener), ora-srvr (server) (Add the failover resource group to contain all the resources.) # scrgadm -a -g oracle-rg (Add the logical hostname resource to the resource group.) # scrgadm -a -L -g oracle-rg -l schost-1 (Register the Oracle resource types) # scrgadm -a -t SUNW.oracle_server # scrgadm -a -t SUNW.oracle_listener (Add the Oracle application resources to the resource group.) # scrgadm -a -j oracle-server -g oracle-rg \ -t SUNW.oracle_server -x ORACLE_HOME=/global/oracle \ -x Alert_log_file=/global/oracle/message-log \ -x ORACLE_SID=ora-srvr -x Connect_string=scott/tiger # scrgadm -a -j oracle-listener -g oracle-rg \ -t SUNW.oracle_listener -x ORACLE_HOME=/global/oracle \ -x LISTENER_NAME=ora-lsnr (Bring the resource group online.) # scswitch -Z -g oracle-rg |