Oracle 10G RAC+ Redhat 4的詳細配置

來源:互聯網
上載者:User

    時至今日,經過反覆的實驗終於配置RAC成功,現在把詳細的操作步驟貼出來,供大家參考,希望能讓同樣對RAC的配置存在困惑的兄弟少走一些不必要的彎路,也希望朋友們發現有不足之處多多指正,共同進步。

    1.環境:

    VMWARE SERVER 1.7,ORALCE 10G,系統平台為紅帽4企業版,基於RAW裝置的的RAC,磁碟陣列用類比共用儲存替代,節點為兩個。

節點資訊:IP                               PRIVIP                                         VIP                                          HOSTNAME

123.125.17.2                               192.168.100.2                       123.125.17.6                                        RAC-01

123.125.17.4                               192.168.100.3                       123.125.17.8                                         RAC-02

    2.配置系統

    包括安裝,和建立共用儲存步驟省略,只要相應的開發包要裝齊全句OK,相信大家既然能玩RAC,這些肯定不在話下,接下來是系統相關的操作:

    (1)  增加Oracle使用者及其組

    命令:

/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -m -g oinstall -G dba oracle
id oracle

    這裡需要注意的,使用者識別碼 和組 ID 在所有叢集主機上必須相同。

    設定 oracle 帳戶的口令:

# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd:all authentication tokens updated successfully.

    (2)建立掛載點

    以 root 使用者身份執行以下命令:

mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle

    (3)配置核心參數

    以 root 使用者身份登入並在每個主機上配置 Linux 核心參數。

cat >> /etc/sysctl.conf >>EOF
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024     65000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144
EOF
/sbin/sysctl -p

    核心參數具體數值請根據系統內容自行設定,本例為測試環境。

    (4)配置LIMIT

    Oracle 建議對每個 Linux 帳戶可以使用的進程數量和開啟檔案的數量設定限制。要進行這些更改,以 root 使用者身份剪下和粘貼下列命令。

cat >> /etc/security/limits.conf >>EOF
oracle               soft    nproc   2047
oracle               hard    nproc   16384
oracle               soft    nofile  1024
oracle               hard    nofile  65536
EOF

    (5)配置 Hangcheck 計時器所有 RHEL 版本:

modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180
cat >> /etc/rc.d/rc.local >>EOF
modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180
EOF

    (6)配置 /etc/hosts

    有些 Linux 發行版本將主機名稱與傳回位址 (127.0.0.1) 相關聯。 如果出現這種情況,則從傳回位址中刪除主機名稱。

    用於此指南的 /etc/hosts 檔案:

127.0.0.1        localhost.localdomain   localhost
192.168.100.2  rac-priv01
192.168.100.3  rac-priv02   
123.125.17.2    rac-01
123.125.17.4    rac-02
123.125.17.6    rac-vip01    
123.125.17.8    rac-vip02

    此處需要注意的問題是迴環地址中不要出現主機名稱,再一個是原生公網IP必須和VIP在一個網段(也有可能是區域網路),在設定IP時,同網段的IP網關一定要是同一個。

    以上六步操作需要在所有節點上操作。

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.