Oracle 10203 RAC環境添加新節點(一)準備過程

來源:互聯網
上載者:User

簡單描述一下,在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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.