• 検索結果がありません。

RACのインストール

ドキュメント内 Microsoft Word - 03-RAC11gR2_for_HPUX-install doc (ページ 50-60)

VIPが存在します。:hp02

VIPが存在します。: /hp02-vip/172.168.1.2/255.255.255.0/lan0 root@hp01 # ./srvctl config scan

SCAN name: hp-scan, Network: 1/172.168.1.0/255.255.255.0/lan0 SCAN VIP name: scan1, IP: /hp-scan.hp.com/172.168.1.201 SCAN VIP name: scan2, IP: /hp-scan.hp.com/172.168.1.202 SCAN VIP name: scan3, IP: /hp-scan.hp.com/172.168.1.203 root@hp01 #

スタンバイNICの追加し、確認を行います。

root@hp01 # ./srvctl modify nodeapps -S 172.168.1.0/255.255.255.0/lan0¥|lan4 root@hp01 # ./srvctl config nodeapps -a

VIPが存在します。:hp01

VIPが存在します。: /hp01-vip/172.168.1.1/255.255.255.0/lan0:lan4 VIPが存在します。:hp02

VIPが存在します。: /hp02-vip/172.168.1.2/255.255.255.0/lan0:lan4 root@hp01 # ./srvctl config scan

SCAN name: hp-scan, Network: 1/172.168.1.0/255.255.255.0/lan0:lan4 SCAN VIP name: scan1, IP: /hp-scan.hp.com/172.168.1.201

SCAN VIP name: scan2, IP: /hp-scan.hp.com/172.168.1.202 SCAN VIP name: scan3, IP: /hp-scan.hp.com/172.168.1.203 root@hp01 #

この例では、「セキュリティアップデートをMy Oracle Support経由で受け取ります」のチェックを はずしています。「次へ」をクリックします。

図43 セキュリティ・アップデートの構成

「電子メール」を入力しなかったため以下の警告がでます。問題がない場合は「はい」をクリック します。

図44 警告

今回はデータベースを作成しないでインストールのみを行うため、「データベース・ソフトウェア のみインストール」を選択し、「次へ」をクリックします。

図45インストール・オプションの選択

「Real Application Clustersデータベースのインストール」が選択されていることとインストールす すべてのノードにチェックが入っていることを確認し、「次へ」をクリックします。

図46 Gridインストール・オプション

選択された言語に「日本語」が入っていることを確認し、「次へ」をクリックします。

図47 製品言語の選択

ここではインストール・タイプにEnterprise Editionを選択し、「次へ」をクリックします。

図48 データベース・エディションの選択

Grid Infrastructureのディレクトリとは別の場所のOracleベースのディレクトリを入力し、「次へ」

をクリックします。

図49インストール場所の指定

指定されているUNIXグループを確認し、「次へ」をクリックします。

図50 権限付きオペレーティング・システム・グループ

製品固有の前提条件がチェックされます。

図51製品条件チェックの実行

エラーが発生した場合は、それを修正します。エラーがなければ以下の画面になりますので、「終 了」をクリックします。

図52 サマリー

インストールが開始します。

図53 インストール画面

次の画面が表示されたら、別ターミナルからrootユーザーになり、すべてのノードでroot.shを実行 します。root.shの実行は、各ノードで順番に実行し、同時に実行しないように注意します。

図54構成スクリプトの実行

<ノードhp01での作業>

root@hp01 # /u01/app/oracle/product/11.2.0/dbhome_1/root.sh Running Oracle 11g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/usr/local/bin]: [enter]

The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

root@hp01 #

<ノードhp02での作業>

root@hp02 # /u01/app/oracle/product/11.2.0/dbhome_1/root.sh Running Oracle 11g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/usr/local/bin]: [enter]

The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

root@hp02 #

スクリプトの実行が終了したら、「OK」をクリックします。

図55構成スクリプトの実行

次の画面で、「終了」をクリックしてインストールを終了します。

図56 終了

インストーラのログは以下の場所にあるので、エラーがないことも確認します。

<oraInventory>/logs/installActions*.log

$ORACLE_HOME/install/make.log

環境変数の設定

<全ノード(hp01、hp02)での作業>

gridユーザーに必要な主な環境変数は以下のとおりです。これらを.profile等のファイルに設定し、

ログインしなおします。以下、POSIXシェルを利用している場合の例で、網掛け部分を追加してい ます。ここでは、各ノードごとに異なるASMインスタンスのSIDをORACLE_SIDに指定していま す。

root # su - grid

grid $ chmod u+w .profile grid $ vi .profile

grid $ chmod u-w .profile grid $ exit

root #

oracleユーザーに必要な主な環境変数は以下のとおりです。なお、各ノードでORACLE_SIDの値は 異なります。これらを.profile等のファイルに設定し、ログインしなおします。以下、POSIXシェル を利用している場合の例で、網掛け部分を追加しています。

root # su - oracle

oracle $ chmod u+w .profile oracle $ vi .profile

# Grid Infrastructure environmental variables LANG=ja_JP.SJIS

export LANG

ORACLE_BASE=/u01/app/grid export ORACLE_BASE

ORACLE_HOME=/u01/app/11.2.0/grid export ORACLE_HOME

ORACLE_SID=+ASM1 export ORACLE_SID

ORA_NLS10=$ORACLE_HOME/nls/data export ORA_NLS10

NLS_LANG=Japanese_Japan.JA16SJIS export NLS_LANG

PATH=$ORACLE_HOME/bin:$PATH export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib export LD_LIBRARY_PATH

umask 022

oracle $ chmod u-w .profile oracle $ exit

root #

ドキュメント内 Microsoft Word - 03-RAC11gR2_for_HPUX-install doc (ページ 50-60)

関連したドキュメント