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

構成に関する要件

この節に示す要件は Sun Cluster HA for Oracle Application Server だけに適用されます。

これらの要件は、/opt/SUNWsc9ias/util 内の構成ファイルと登録ファイルで設定されます。Sun Cluster の構成要素は、これらのファイルを通して Sun Cluster に登録されます。ただし、その際に、適切な依存関係が適用されます。

Sun Cluster HA for Oracle Application Server のリソースを登録する際には、これらのファイルを使用する必要があります。

/opt/SUNWsc9ias/util 内のファイルの接頭辞が 9ias の場合は、これらのファイルを Oracle 9iAS Infrastructure の構成要素向けに使用し、接頭辞が 10gas の場合は、これらのファイルを Oracle 10g AS Infrastructure の構成要素向けに使用するべきです。


注意 – 注意 –

次の要件を満たさないと、データサービスの構成がサポートされない場合があります。


Sun Cluster コンポーネントとその依存性 –

表 5 Oracle 9iAS Infrastructure コンポーネントとその依存性 (-> 記号による指示)

構成要素 

説明 

Oracle Internet Directory Monitor (OIDMON) 

-> SUNW.HAStoragePlus リソース

-> Oracle Database Server リソース

-> Oracle Database Listener リソース

Oracle Internet Directory Process (OIDLDAP) 

-> Oracle Internet Directory Monitor (OIDMON) リソース

Oracle Process Management and Notification (OPMN) 

-> Oracle Internet Directory Process (OIDLDAP) リソース

Enterprise Manager (EM) 

-> Oracle Process Management and Notification (OPMN) リソース

表 6 Oracle 10g AS Infrastructure コンポーネントとその依存性 (-> 記号による指示)

構成要素 

説明 

Oracle Process Management and Notification (OPMN) 

-> SUNW.HAStoragePlus リソース

-> Oracle Database Server リソース

-> Oracle Database Listener リソース

Enterprise Manager (EM) 

-> Oracle Process Management and Notification (OPMN) リソース

これらの依存関係は、/opt/SUNWsc9ias/util 内の Sun Cluster HA for Oracle Application Server 構成ファイルと登録ファイルに定義されます。例 1 は、Oracle 10g AS の構成ファイルと登録ファイルを示しています。


例 1 Sun Cluster 用の Oracle 10g AS Infrastructure 構成ファイルと登録ファイル


# cd /opt/SUNWsc9ias/util
#
# ls -l 
total 24
-rwxr-xr-x   1 root     sys         1516 Jul 14 12:33 10gas_config
-r-xr-xr-x   1 root     sys         2738 Jul 14 12:33 10gas_register
-rwxr-xr-x   1 root     sys         1671 Jul 14 12:33 9ias_config
-r-xr-xr-x   1 root     sys         4383 May 27 09:48 9ias_register
# more 10g*
::::::::::::::
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=

::::::::::::::
10gas_register
::::::::::::::
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
 
. `dirname $0`/10gas_config
 
PORT=10000
OIAS_ADMIN=dummy
OIAS_FQDN=dummy
 
validate_registration()
{
St=$?
RS=$1
RG=$2
ORACLE_HOME=$3
ORACLE_SID=$4
OIAS_LHOST=$5
OIAS_USER=$6
OIAS_ADMIN=$7
OIAS_INFRA=$8
OIAS_FQDN=$9
 
if [ "${St}" -ne 0 ]; then
        echo "Registration of resource ${RS} failed,\
		 please correct the wrong parameters"
        exit 1
else
        echo "Registration of resource ${RS} succeeded"
fi
 
# VALIDATE RESOURCE
 
`dirname $0`/../bin/validate_9ias -R $RS -G $RG \
-O $ORACLE_HOME -S $ORACLE_SID -H $OIAS_LHOST \
-U $OIAS_USER -P $OIAS_ADMIN -E $OIAS_INFRA -D $OIAS_FQDN
 
St=$?
 
if [ "${St}" -ne 0 ]; then
        echo "Validation of resource ${RS} failed, \
		please correct the wrong parameters"
        echo "Removing resource ${RS} from the cluster configuration"
 
        scrgadm -r -j ${RS}
        exit 1
else
        echo "Validation of resource ${RS} succeeded"
fi
}
 
scrgadm -a -j $RS_OPMN -g $RG -t SUNW.gds \
-x Start_command="/opt/SUNWsc9ias/bin/start-opmn \
-R $RS_OPMN -G $RG -O $ORACLE_HOME -S $ORACLE_SID -H $OIAS_LHOST \
-U $OIAS_USER -P $OIAS_ADMIN -E $OIAS_INFRA -D $OIAS_FQDN -C $OIAS_OPMN " \
-x Stop_command="/opt/SUNWsc9ias/bin/stop-opmn \
-R $RS_OPMN -G $RG -O $ORACLE_HOME -S $ORACLE_SID -H $OIAS_LHOST \
-U $OIAS_USER -P $OIAS_ADMIN -E $OIAS_INFRA -D $OIAS_FQDN -C $OIAS_OPMN " \
-x Probe_command="/opt/SUNWsc9ias/bin/probe-opmn \
-R $RS_OPMN -G $RG -O $ORACLE_HOME -S $ORACLE_SID -H $OIAS_LHOST \
-U $OIAS_USER -P $OIAS_ADMIN -E $OIAS_INFRA -D $OIAS_FQDN -C $OIAS_OPMN " \
-y Port_list=$PORT/tcp -y Network_resources_used=$RS_LH \
-x Stop_signal=9 -x Probe_timeout=90 \
-y Resource_dependencies=$RS_HAS,$RS_ORACLE,$RS_ORALSR
 
validate_registration $RS_OPMN $RG \
$ORACLE_HOME $ORACLE_SID $OIAS_LHOST \
$OIAS_USER $OIAS_ADMIN $OIAS_INFRA $OIAS_FQDN $OIAS_OPMN
 
if [ ! -z "$RS_EM" ]; then
 
scrgadm -a -j $RS_EM -g $RG -t SUNW.gds \
-x Start_command="/opt/SUNWsc9ias/bin/start-em \
-R $RS_EM -G $RG -O $ORACLE_HOME -S $ORACLE_SID -H $OIAS_LHOST \
-U $OIAS_USER -P $OIAS_ADMIN -E $OIAS_INFRA -D $OIAS_FQDN " \
-x Stop_command="/opt/SUNWsc9ias/bin/stop-em \
-R $RS_EM -G $RG -O $ORACLE_HOME -S $ORACLE_SID -H $OIAS_LHOST \
-U $OIAS_USER -P $OIAS_ADMIN -E $OIAS_INFRA -D $OIAS_FQDN " \
-x Probe_command="/opt/SUNWsc9ias/bin/probe-em \
-R $RS_EM -G $RG -O $ORACLE_HOME -S $ORACLE_SID -H $OIAS_LHOST \
-U $OIAS_USER -P $OIAS_ADMIN -E $OIAS_INFRA -D $OIAS_FQDN " \
-y Port_list=$PORT/tcp -y Network_resources_used=$RS_LH \
-x Stop_signal=9 \
-y Resource_dependencies=$RS_OPMN
 
validate_registration $RS_EM $RG \
$ORACLE_HOME $ORACLE_SID $OIAS_LHOST \
$OIAS_USER $OIAS_ADMIN $OIAS_INFRA $OIAS_FQDN
 
fi