簡單描述一下,在Oracle 10203 for Solaris sparc的RAC雙節點環境中,新增一個節點的過程。共用儲存已經在第三個節點上配置完成,這裡主要介紹作業系統上和Oracle上的配置。
這一篇介紹準備過程。
首先是將主機的IP地址,調整到RAC伺服器IP地址附近,方便管理。修改目標主機IP地址到172.25.198.226。
# ifconfig ce0 172.25.198.226 netmask 255.255.0.0 broadcast 172.25.255.255
然後修改/etc/hosts檔案中的IP地址。
下面將主機名稱也修改為配套的主機名稱資訊racnode3:
# hostname
supingsol
# hostname racnode3
利用hostname設定主機名稱後,還要分別修改/etc/hosts、/ect/nodename、/etc/hostname.ce0、/etc/net/ticlts/hosts、/etc/net/ticots/hosts、/etc/net/ticotsord/hosts這6個檔案:
# more /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
172.25.198.226 racnode3 loghost
192.168.192.109 rw
# more /etc/nodename
racnode3
# more /etc/hostname.ce0
racnode3
# more /etc/net/ticlts/hosts
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)hosts 1.3 03/12/07SMI"
#
# NOTE: This file is no longer consulted and may be removed from a future
# release of Solaris.
#
racnode3
# more /etc/net/ticots/hosts
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)hosts 1.3 03/12/07 SMI"
#
# NOTE: This file is no longer consulted and may be removed from a future
# release of Solaris.
#
racnode3
# more /etc/net/ticotsord/hosts
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)hosts 1.3 03/12/07 SMI"
#
# NOTE: This file is no longer consulted and may be removed from a future
# release of Solaris.
#
racnode3
查看本欄目更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/
下面添加使用者和組資訊,根據RAC節點的組資訊和使用者資訊在當前節點建立使用者和組:
# groupadd -g 100 oinstall
# groupadd -g 101 dba
# mkdir /export/home/oracle
# useradd -u 100 -g oinstall -G dba -d /export/home/oracle oracle
# chown oracle:oinstall /export/home/oracle
# mkdir /data
# chown -R oracle:oinstall /data
# id nobody
uid=60001(nobody) gid=60001(nobody)
# passwd oracle
用Oracle使用者登陸,設定環境變數:
# su - oracle
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ vi .profile
".profile"[新檔案]
umask 022
ORACLE_SID=testrac3
export ORACLE_SID
ORACLE_BASE=/data/oracle