您好,登录后才能下订单哦!
小编给大家分享一下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进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。