您好,登錄后才能下訂單哦!
小編給大家分享一下Redhat 6中Oracle 11g RAC安裝注意事項有哪些,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!
1、SWAP一定要>=16G,否則在預檢中報錯。修改方式
mkdir -p /home/swap
dd if=/dev/zero of=/home/swap/swapfile bs=1024 count=16777216
mkswap /home/swap/swapfile
swapon /home/swap/swapfile
編輯/etc/fstab
/home/swap/swapfile swap swap defaults 0 0
2、設置主機名 /etc/hosts,名稱不要設置過長,最好<5個字符,否則安裝時報計算機名稱重復
# vi /etc/hosts
127.0.0.1 localhost
192.168.172.58 rac1 rac1-pub
10.0.0.58 rac1-priv
192.168.172.56 rac1-vip
192.168.172.59 rac2 rac2-pub
10.0.0.59 rac2-priv
192.168.172.117 rac2-vip
192.168.172.55 rac-scan
3、設置IP,檢查注意ONBOOT=YES,以便IP能隨機啟動
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=3398bf27-74b9-4e77-89e4-da0e33896cfe
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
4、幾個需要注意的內核參數
kernel.shmmax 設置值必須大于SGA
kernel.shmmni = 8192 在110204版本中,如果設置為4K,在第二臺機器執行root.sh時會報內存溢出
net.ipv4.ip_local_port_range = 9000 65000 不能設為1024 65000
fs.file-max = 6815744
fs.aio-max-nr = 1048576
5、多路徑配置,udev模式
1)使用multipath
根據下面的顯示,找到datalun對應的DM_UUID
[root@rac2 ~]# for i in datalun datalunp1 datalunp2 datalunp3; do printf "%s %s\n" "$i" "$(udevadm info --query=all --name=/dev/mapper/$i |grep -i dm_uuid)"; done
datalun E: DM_UUID=mpath-36001438009b064ce0000500000160000
datalunp1 E: DM_UUID=part1-mpath-36001438009b064ce0000500000160000
datalunp2 E: DM_UUID=part2-mpath-36001438009b064ce0000500000160000
datalunp3 E: DM_UUID=part3-mpath-36001438009b064ce0000500000160000
undefined
for i in datalunp1 datalunp2 datalunp3; do printf "%s %s\n" "$i" "$(ls -ll /dev/mapper/$i)"; done
datalunp1 lrwxrwxrwx. 1 root root 7 Dec 21 21:08 /dev/mapper/datalunp1 -> ../dm-3
datalunp2 lrwxrwxrwx. 1 root root 7 Dec 21 21:08 /dev/mapper/datalunp2 -> ../dm-4
datalunp3 lrwxrwxrwx. 1 root root 7 Dec 21 21:08 /dev/mapper/datalunp3 -> ../dm-5
undefined99-oracle-asmdevices.rules文件,undefined
undefined
KERNEL=="dm-3",ENV{DM_UUID}=="part1-mpath-36001438009b064ce0000500000160000",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-4",ENV{DM_UUID}=="part2-mpath-36001438009b064ce0000500000160000",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="dm-5",ENV{DM_UUID}=="part3-mpath-36001438009b064ce0000500000160000",OWNER="grid",GROUP="asmadmin",MODE="0660"
undefined
undefined
undefined
undefined
undefined
undefined
2)emcpower
因為emcpower已經配置好了多路徑,直接給權限即可,定義如下:
fdisk -l 看定義的分區,然后創建文件50-udev.rules
[root@pos1 ~]# cat /etc/udev/rules.d/50-udev.rules
SUBSYSTEM=="block", KERNEL=="emcpowera", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowerb", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowerc", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowerd", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowere", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowerf", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowerg", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowerh", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpoweri", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowerj", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowerk", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowerl", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowerm", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowern", GROUP="asmadmin", OWNER="grid", MODE="0660"
啟動ude
# start_udev
正在啟動 udev:[確定]
查看udev定義情況
[root@pos1 ~]# ls -l /dev/emcpower*
brw-rw---- 1 grid asmadmin 120, 0 Jul 23 15:46 /dev/emcpowera
brw-rw---- 1 grid asmadmin 120, 16 Jul 23 15:46 /dev/emcpowerb
brw-rw---- 1 grid asmadmin 120, 32 Jul 23 15:46 /dev/emcpowerc
brw-rw---- 1 grid asmadmin 120, 48 Jul 23 15:46 /dev/emcpowerd
brw-rw---- 1 grid asmadmin 120, 64 Jul 23 15:46 /dev/emcpowere
brw-rw---- 1 grid asmadmin 120, 80 Jul 23 15:46 /dev/emcpowerf
brw-rw---- 1 grid asmadmin 120, 96 Jul 22 20:41 /dev/emcpowerg
brw-rw---- 1 grid asmadmin 120, 112 Jul 23 15:46 /dev/emcpowerh
brw-rw---- 1 grid asmadmin 120, 128 Jul 23 15:46 /dev/emcpoweri
brw-rw---- 1 grid asmadmin 120, 144 Jul 23 15:46 /dev/emcpowerj
brw-rw---- 1 grid asmadmin 120, 160 Jul 23 15:46 /dev/emcpowerk
brw-rw---- 1 grid asmadmin 120, 176 Jul 23 15:46 /dev/emcpowerl
brw-rw---- 1 grid asmadmin 120, 192 Jul 23 15:46 /dev/emcpowerm
brw-rw---- 1 grid asmadmin 120, 208 Jul 23 15:46 /dev/emcpowern
這樣就OK了
6、配置Xmanager
Redhat6的配置Xmanager方法如下
1)編輯custom.conf文件
# vi /etc/gdm/custom.conf
[xdmcp]
Enable=true
2)啟動GDM
RHEL6:先init2再init5
# init 2
# init 5
7、安裝CRS時,如果機器沒有配置DNS或GNS,在選擇GNS時不要選中
8、執行root.sh腳本
11201有一個bug,第二個服務器執行腳本會報錯,解決方法如下:
在執行root.sh腳本時出現Adding daemon to inittab的時候,在另一個窗口使用root立即下面執行命令,直到執行成功為止
/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
(這是11201的Bug)
如果想重新執行root.sh,先執行roothas.pl,再執行root.sh
./app/grid/crs/install/roothas.pl -deconfig -force –verbose
9、自動重啟后,一個節點不能自動啟動,ohasd進程沒有啟動
解決方法如下:
1) 檢查進程
#ps –ef | grep d.bin
#ps –ef | grep ohasd
2) 手工啟動
#/etc/init.d/init.ohasd run
3)在/etc/inittab中,增加
h2:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1
4)在/etc/rc.d/rc.loacl,增加
以上是“Redhat 6中Oracle 11g RAC安裝注意事項有哪些”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。