Gridホームを追加した後、RACホームを追加します。
利用するシェルはGridホームの時と同じようにaddnodeというシェルになります。
既存ノードからOracleユーザーで実行します。
[oracle@rac-node01 ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/oui/bin
[oracle@rac-node01 bin]$ pwd
/u01/app/oracle/product/11.2.0/dbhome_1/oui/bin
既存ノードのRACホーム(ORACLE_HOME)配下にaddnodeシェルが存在します。
実際に実行してみましょう。
[oracle@rac-node01 bin]$ ./addNode.sh -silent "CLUSTER_NEW_NODES={rac-node03}"
ノードの追加の事前チェックを実行しています
ノード到達可能性をチェック中...
ノード"rac-node01"からのノード到達可能性チェックに合格しました
ユーザー等価をチェック中...
ユーザー"oracle"のユーザー等価チェックに合格しました
(中略)
インベントリをノードに保存中 (2015年9月25日 0時36分14秒 JST)
. 100%完了しました。
インベントリの保存が完了しました
警告:
次の構成スクリプトは、新しい各クラスタ・ノードでrootユーザーとして実行する必要があります。次のリストの各スクリプトには、ノードのリストが続きます。
/u01/app/oracle/product/11.2.0/dbhome_1/root.sh #On nodes rac-node03
構成スクリプトを実行するには、次のようにします:
1. ターミナル・ウィンドウを開きます
2. rootとしてログインします
3. 各クラスタ・ノードでスクリプトを実行します
/u01/app/oracle/product/11.2.0/dbhome_1のクラスタ・ノードの追加が成功しました。
詳細は'/tmp/silentInstall.log'を確認してください。
シェルの実行が完了したら、今度は新規ノードでroot.shを実行します。
[root@rac-node03 ~]# /u01/app/oracle/product/11.2.0/dbhome_1/root.sh
Performing root user operation for Oracle 11g
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]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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 script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
これで、RACホームの追加は完了です。
次はインスタンスの追加です。
利用するシェルはGridホームの時と同じようにaddnodeというシェルになります。
既存ノードからOracleユーザーで実行します。
[oracle@rac-node01 ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/oui/bin
[oracle@rac-node01 bin]$ pwd
/u01/app/oracle/product/11.2.0/dbhome_1/oui/bin
既存ノードのRACホーム(ORACLE_HOME)配下にaddnodeシェルが存在します。
実際に実行してみましょう。
[oracle@rac-node01 bin]$ ./addNode.sh -silent "CLUSTER_NEW_NODES={rac-node03}"
ノードの追加の事前チェックを実行しています
ノード到達可能性をチェック中...
ノード"rac-node01"からのノード到達可能性チェックに合格しました
ユーザー等価をチェック中...
ユーザー"oracle"のユーザー等価チェックに合格しました
(中略)
インベントリをノードに保存中 (2015年9月25日 0時36分14秒 JST)
. 100%完了しました。
インベントリの保存が完了しました
警告:
次の構成スクリプトは、新しい各クラスタ・ノードでrootユーザーとして実行する必要があります。次のリストの各スクリプトには、ノードのリストが続きます。
/u01/app/oracle/product/11.2.0/dbhome_1/root.sh #On nodes rac-node03
構成スクリプトを実行するには、次のようにします:
1. ターミナル・ウィンドウを開きます
2. rootとしてログインします
3. 各クラスタ・ノードでスクリプトを実行します
/u01/app/oracle/product/11.2.0/dbhome_1のクラスタ・ノードの追加が成功しました。
詳細は'/tmp/silentInstall.log'を確認してください。
シェルの実行が完了したら、今度は新規ノードでroot.shを実行します。
[root@rac-node03 ~]# /u01/app/oracle/product/11.2.0/dbhome_1/root.sh
Performing root user operation for Oracle 11g
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]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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 script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
これで、RACホームの追加は完了です。
次はインスタンスの追加です。









