Sun Cluster Data Service for Oracle Application Server ガイド (Solaris OS 版)

Procedureフェイルオーバーサービスとしての Sun Cluster HA for Oracle Application Server の登録と構成方法

この手順は、Sun Cluster の初回のインストール時にこのデータサービスパッケージをインストールしている場合を想定しています。

Sun Cluster の初回のインストールで Sun Cluster HA for Oracle Application Server パッケージをインストールしなかった場合は、scinstall ユーティリティーを使用して Sun Cluster HA for Oracle Application Server パッケージをインストールする」に進んでください。

手順
  1. Sun Cluster をホストするクラスタノードの 1 つで、スーパーユーザーになります。

  2. SUNW.gds というリソースタイプを登録します。


    # scrgadm -a -t SUNW.gds
    
  3. SUNW.HAStoragePlus リソースタイプを登録します。


    # scrgadm -a -t SUNW.HAStoragePlus
    
  4. SUNW.oracle_server というリソースタイプと SUNW.oracle_listener というリソースタイプを登録します。


    # scrgadm -a -t SUNW.oracle_server
    # scrgadm -a -t SUNW.oracle_listener
    
  5. フェイルオーバーリソースグループを作成します。


    # scrgadm -a -g Sun Cluster-failover-resource-group
    
  6. Sun Cluster ディスク記憶装置に対応するリソースを作成します。


    # scrgadm -a -j Sun Cluster-has-resource  \
    -g Sun Cluster-failover-resource-group   \
    -t SUNW.HAStoragePlus  \
    -x FilesystemMountPoints=Sun Cluster -Infrastructure instance-mount-points
    
  7. Sun Cluster 論理ホストのリソースを作成します。


    # scrgadm -a -L -j Sun Cluster-lh-resource  \
    -g Sun Cluster-failover-resource-group  \
    -l Sun Cluster-logical-hostname
    
  8. Sun Cluster ディスク記憶装置と 論理ホスト名のリソースが組み込まれたフェイルオーバーリソースグループを有効にします。


    # scswitch -Z -g Sun Cluster-failover-resource-group
    
  9. Sun Cluster Oracle Database のリソースを作成します。


    注 –

    Sun Cluster HA for Oracle についての詳細は、『Sun Cluster データサービスのインストールと構成』を参照してください。



    # 
    scrgadm -a -j Sun Cluster-ORACLE-resource \
    -t SUNW.oracle_server  \
    -g  Sun Cluster-failover-resource-group\
    -x Connect_string=<user/passwd>\
    -x ORACLE_SID=<Oracle 9iAS instance>\
    -x ORACLE_HOME=<Oracle 9iAS Infrastructure directory>  \
    -x Alert_log_file=<$ORACLE_HOME alert log file>
     
    #
    # scswitch -e -j Sun Cluster-ORACLE-resource
    
  10. Sun Cluster Oracle リスナーに対応するリソースを作成します。


    注 –

    Sun Cluster HA for Oracle についての詳細は、『Sun Cluster データサービスのインストールと構成』を参照してください。



    # scrgadm -a -j Sun Cluster-ORALSR-resource \
    -t SUNW.oracle_listener  \
    -g  Sun Cluster-failover-resource-group\
    -x Listener_name=<Instance>\
    -x ORACLE_HOME=<Oracle 9iAS Infrastructure directory>\
    
    #
    # scswitch -e -j Sun Cluster-ORALSR-resource
    
  11. Oracle 9iAS Infrastructure リソース (複数) を作成します。


    注 –

    Oracle 10g AS Infrastructure については、手順 13 を参照してください。


    9ias_config ファイルのコメントに従ってファイルを編集します。次はその例です。


    #
    # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
    # Use is subject to license terms.
    #
    # This file will be sourced in by 9ias_register and the parameters
    # listed below will be used.
    #
    # These parameters can be customized in (key=value) form
    #
    #            RG - name of the SC resource group containing the resources
    #     RS_OIDMON - name of the SC Oracle Internet Directory Monitor resource
    #    RS_OIDLDAP - name of the SC Oracle Internet Directory resource
    #       RS_OPMN - name of the SC Oracle Process Monitor Notification resource
    #         RS_EM - name of the SC Enterprise Manager Web site resource
    #
    #       Note: Only one Enterprise Manager is required if multiple
    #               infrastructure instances are being deployed.
    #
    #             Omit the value to RS_EM if you do not require a SC resource
    #               for the Enterprise Manager.
    #
    #   ORACLE_HOME - name of the Oracle home directory
    #    ORACLE_SID - name of the Oracle SID
    #    OIAS_LHOST - name of the Oracle 9iAS Infrastructure logical hostname
    #     OIAS_USER - name of the Oracle 9iAS Infrastructure userid
    #    OIAS_ADMIN - name of the Oracle 9iAS Internet Directory Admin password
    #    OIAS_INFRA - name of the Oracle 9iAS Infrastructure /var/opt/oracle
    #     OIAS_FQDN - name of the Oracle 9iAS fully qualified domainname
    #     OIAS_OPMN - name of the Oracle 9iAS OPMN instance names to start
    #               e.g. OIAS_OPMN=ohs,OC4J_DAS or ALL
    #       ALL indicates all instance names in $ORACLE_HOME/opmn/conf/opmn.xml
    #
    #         RS_LH - name of the SC Logical Hostname resource
    #        RS_HAS - name of the SC Oracle 9iAS HAStoragePlus resource
    #     RS_ORACLE - name of the SC Oracle resource
    #     RS_ORALSR - name of the SC Oracle Listener resource
    #
     
    RG=
    RS_OIDMON=
    RS_OIDLDAP=
    RS_OPMN=
    RS_EM=
     
    ORACLE_HOME=
    ORACLE_SID=
    OIAS_LHOST=
    OIAS_USER=
    OIAS_ADMIN=
    OIAS_INFRA=
    OIAS_FQDN=
    OIAS_OPMN=
     
    RS_LH=
    RS_HAS=
    RS_ORACLE=
    RS_ORALSR=

    次に、Sun Cluster for Oracle 9iAS Infrastructure の例を示します。


    RG=9ias-infra-rg
    RS_OIDMON=9ias-oidmon-res
    RS_OIDLDAP=9ias-oidldap-res
    RS_OPMN=9ias-opmn-res
    RS_EM=9ias-em-res
     
    ORACLE_HOME=/global/ora9ias/infra
    ORACLE_SID=iasdb
    OIAS_LHOST=ora9ias
    OIAS_USER=oraprod
    OIAS_ADMIN=1as_admin
    OIAS_INFRA=/var/opt/oracle or 
    		/var/opt/oracle_infra if the  middle tier is also installed and
    			 /var/opt/oracle was renamed to /var/opt/oracle_infra
     OIAS_FQDN=ora9ias.com
    OIAS_OPMN=ohs/oc4j_das or 
    		all if all components are required
    RS_LH=9ias-lhs-res
    RS_HAS=9ias-has-res
    RS_ORACLE=9ias-oracle-res
    RS_ORALSR=9ias-oralsr-res
    

    # ./9ias_register
    
  12. それぞれの Oracle 9iAS Infrastructure リソースを使用可能にします。


    # scstat
    #
    # scswitch -e -j Sun Cluster-OIDMON-resource
    # scswitch -e -j Sun Cluster-OIDLDAP-resource
    # scswitch -e -j Sun Cluster-OPMN-resource
    # scswitch -e -j Sun Cluster-EM-resource
    
  13. Oracle 10g AS Infrastructure リソースを作成します。


    注 –

    Oracle 9iAS Infrastructure については、手順 11 を参照してください。


    10gas_config ファイルのコメントに従ってファイルを編集します。次はその例です。


    #
    # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
    # Use is subject to license terms.
    #
    # This file will be sourced in by 10gas_register and the parameters
    # listed below will be used.
    #
    # These parameters can be customized in (key=value) form
    #
    #            RG - name of the SC resource group containing the resources
    #       RS_OPMN - name of the SC Oracle Process Monitor Notification resource
    #         RS_EM - name of the SC Enterprise Manager Web site resource
    #
    #   ORACLE_HOME - name of the Oracle home directory
    #    ORACLE_SID - name of the Oracle SID
    #    OIAS_LHOST - name of the Oracle 10gAS Infrastructure logical hostname
    #     OIAS_USER - name of the Oracle 10gAS Infrastructure userid
    #    OIAS_ADMIN - name of the Oracle 10gAS Internet Directory Admin password
    #    OIAS_INFRA - name of the Oracle 10gAS Infrastructure /var/opt/oracle
    #     OIAS_FQDN - name of the Oracle 10gAS fully qualified domainname
    #     OIAS_OPMN - name of the Oracle 10gAS ias-components
    #               e.g. OIAS_OPMN=OID/HTTP_Server/OC4J or OIAS_OPMN=all
    #
    #       ALL indicates all the installed ias-components
    #
    #         RS_LH - name of the SC Logical Hostname resource
    #        RS_HAS - name of the SC Oracle 10gAS HAStoragePlus resource
    #     RS_ORACLE - name of the SC Oracle resource
    #     RS_ORALSR - name of the SC Oracle Listener resource
    #
     
    RG=
    RS_OPMN=
    RS_EM=
     
    ORACLE_HOME=
    ORACLE_SID=
    OIAS_LHOST=
    OIAS_USER=
    OIAS_ADMIN=
    OIAS_INFRA=
    OIAS_FQDN=
    OIAS_OPMN=
     
    RS_LH=
    RS_HAS=
    RS_ORACLE=
    RS_ORALSR=

    次は、Sun Cluster for Oracle 10g AS Infrastructure の例です。


    注 –

    OIAS_ADMIN OIAS_FQDN の値は Sun Cluster HA for Oracle Application Server for Oracle 10g AS で使用されませんが、登録スクリプト用に値を指定する必要があります。このため、値 dummy を指定できます。



    RG=10gas-infra-rg
    RS_OPMN=10gas-opmn-res
    RS_EM=10gas-em-res
     
    ORACLE_HOME=/global/ora10gas/infra
    ORACLE_SID=iasdb
    OIAS_LHOST=ora10gas
    OIAS_USER=oraprod
    OIAS_ADMIN=dummy
    OIAS_INFRA=/var/opt/oracle or 
    		/var/opt/oracle_infra if the  middle tier is also installed and
    			 /var/opt/oracle was renamed to /var/opt/oracle_infra
    OIAS_FQDN=dummy
    OIAS_OPMN=OID/HTTP_Server/OC4J or 
    		all if all components are required
    RS_LH=10gas-lhs-res
    RS_HAS=10gas-has-res
    RS_ORACLE=10gas-oracle-res
    RS_ORALSR=10gas-oralsr-res
    

    # ./10gas_register
    
  14. それぞれの Oracle 10g AS Infrastructure リソースを使用可能にします。


    # scstat
    #
    # scswitch -e -j Sun Cluster-OPMN-resource
    # scswitch -e -j Sun Cluster-EM-resource